Implemented interface member:
method
ValueFor<TResult>
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>.ValueFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>, System.String)
6 references to ValueFor
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
Rendering\HtmlHelperValueTest.cs (6)
141
var html = helper.
ValueFor
(m => m.StringProperty, format: null);
175
Assert.Equal("StringPropertyRawValue", helper.
ValueFor
(m => m.StringProperty, format: null));
191
Assert.Equal(expectedModelValue, helper.
ValueFor
(m => m, format: null));
208
Assert.Equal(expectedObjectPropertyValue, helper.
ValueFor
(m => m.ObjectProperty, "-{0}-"));
230
Assert.Equal("<ModelStringPropertyValue <\"\">>", helper.
ValueFor
(m => m.StringProperty, "<{0}>"));
231
Assert.Equal("ObjectPropertyRawValue <\"\">", helper.
ValueFor
(m => m.ObjectProperty, format: null));