示例#1
0
        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>");
        }
示例#2
0
 public void default_display_is_just_a_span()
 {
     theGenerator.DisplayFor(x => x.Name, profile: ElementConstants.Templates)
     .ToString().ShouldEqual("<span data-fld=\"Name\">{{Name}}</span>");
 }