public static bool WasBuiltByFakeDisplayBuilder(HtmlTag tag)
 {
     return tag.HasClass("fake");
 }
            public void Adds960GridClass()
            {
                var tag = new HtmlTag("div");
                tag.Grid(12);
                tag.HasClass("grid_12").ShouldBeTrue();

                tag.Grid();
                tag.HasClass("grid").ShouldBeTrue();
            }
 public void Adds960GridClass()
 {
     var tag = new HtmlTag("div");
     tag.Suffix(12);
     tag.HasClass("suffix_12").ShouldBeTrue();
 }
 public void Adds960GridClassAndtextboxonrightClass()
 {
     var tag = new HtmlTag("label");
     tag.TextBoxOnRight();
     tag.HasClass("grid").ShouldBeTrue();
     tag.HasClass("textbox-on-right").ShouldBeTrue();
 }
        public void write_with_children()
        {
            theItem.Children = new MenuItemToken[]{
                new MenuItemToken{Key = "a", Text = "a-text"}, 
                new MenuItemToken{Key = "b", Text = "b-text"}, 
                new MenuItemToken{Key = "c", Text = "c-text"} 
            };

            theLinkTag.Attr("data-toggle").ShouldEqual("dropdown");
            theLinkTag.Children[1].ToString().ShouldEqual("<b class=\"caret\"></b>");

            ul = theResultingTag.Children.Last();
            ul.HasClass("dropdown-menu").ShouldBeTrue();

            ul.Children.ShouldHaveTheSameElementsAs(theItem.Children.Select(x => new MenuItemTag(x)));
        }