Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Created Unassigned: Actual Values when using @Html.DisplayNameFor [155]

$
0
0
Hi,

First off thanks for your all your work on this project :)

Was just wondering what the recommended approach is to testing Razor views that use @Html.DisplayNameFor to test that the view is receiving and rendering correct model data items.

For example:

@Html.DisplayNameFor(model => model.FirstName)

In the test rendered html [ using .RenderAsHtml(model); ]

<placeholder>f4e161d2-7cd2-4fe7-a6f8-0c8aa2a12a60</placeholder>

I understand the design reasoning about rendering of partial views etc, just wondered if there's any plans for future version to enhance @Html.DisplayNameFor testing?

Thanks again,
Jason.

ps.

test project using
<package id="RazorGenerator.Testing" version="2.2.7" targetFramework="net451" />

And RazorGenerator extension v1.6.4

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>