public void build_the_display() { theGenerator.DisplayFor(x => x.Name).ToString().ShouldEqual("<span id=\"Name\"></span>"); theTarget.Name = "Shiner"; theGenerator.DisplayFor(x => x.Name).ToString().ShouldEqual("<span id=\"Name\">Shiner</span>"); }
public void default_display_is_just_a_span() { theGenerator.DisplayFor(x => x.Name, profile: ElementConstants.Templates) .ToString().ShouldEqual("<span data-fld=\"Name\">{{Name}}</span>"); }