Implemented interface member:
method
Value
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.Value(System.String, System.String)
13 references to Value
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
Rendering\HtmlHelperValueTest.cs (13)
24var html = helper.Value("StringProperty", format: null); 39var html = helper.Value("StringProperty", format: null); 53var html = helper.Value("Prefix.StringProperty", format: null); 68var html = helper.Value("StringProperty", format: null); 82var html = helper.Value("StringProperty", format: null); 97var html = helper.Value("StringProperty", format: null); 111var html = helper.Value("StringProperty", format: null); 126var html = helper.Value("StringProperty", format: null); 174Assert.Equal("StringPropertyRawValue", helper.Value("StringProperty", format: null)); 189Assert.Equal(expectedModelValue, helper.Value(expression: string.Empty, format: null)); 190Assert.Equal(expectedModelValue, helper.Value(expression: null, format: null)); // null is another alias for current model 207Assert.Equal(expectedObjectPropertyValue, helper.Value("ObjectProperty", "-{0}-")); 229Assert.Equal("<ViewDataValue <\"\">>", helper.Value("StringProperty", "<{0}>"));