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)
141var html = helper.ValueFor(m => m.StringProperty, format: null); 175Assert.Equal("StringPropertyRawValue", helper.ValueFor(m => m.StringProperty, format: null)); 191Assert.Equal(expectedModelValue, helper.ValueFor(m => m, format: null)); 208Assert.Equal(expectedObjectPropertyValue, helper.ValueFor(m => m.ObjectProperty, "-{0}-")); 230Assert.Equal("<ModelStringPropertyValue <\"\">>", helper.ValueFor(m => m.StringProperty, "<{0}>")); 231Assert.Equal("ObjectPropertyRawValue <\"\">", helper.ValueFor(m => m.ObjectProperty, format: null));