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)
24
var html = helper.
Value
("StringProperty", format: null);
39
var html = helper.
Value
("StringProperty", format: null);
53
var html = helper.
Value
("Prefix.StringProperty", format: null);
68
var html = helper.
Value
("StringProperty", format: null);
82
var html = helper.
Value
("StringProperty", format: null);
97
var html = helper.
Value
("StringProperty", format: null);
111
var html = helper.
Value
("StringProperty", format: null);
126
var html = helper.
Value
("StringProperty", format: null);
174
Assert.Equal("StringPropertyRawValue", helper.
Value
("StringProperty", format: null));
189
Assert.Equal(expectedModelValue, helper.
Value
(expression: string.Empty, format: null));
190
Assert.Equal(expectedModelValue, helper.
Value
(expression: null, format: null)); // null is another alias for current model
207
Assert.Equal(expectedObjectPropertyValue, helper.
Value
("ObjectProperty", "-{0}-"));
229
Assert.Equal("<ViewDataValue <\"\">>", helper.
Value
("StringProperty", "<{0}>"));