상속: BootstrapComponents.Core.HtmlContainer
 public void DefaultButtonGroup()
 {
     var buttonGroup = new ButtonGroup(new Button("Left"), new Button("Middle"), new Button("Right"));
     Assert.AreEqual("<div class=\"btn-group\"><button class=\"btn btn-default\">Left</button>"
                     + "<button class=\"btn btn-default\">Middle</button>"
                     + "<button class=\"btn btn-default\">Right</button></div>",
                     buttonGroup.ToHtmlString());
 }
        public void DefaultButtonToolbar()
        {
            var buttonGroup = new ButtonGroup(new Button("Left"), new Button("Middle"), new Button("Right"));
            var html = "<div class=\"btn-group\"><button class=\"btn btn-default\">Left</button>"
                       + "<button class=\"btn btn-default\">Middle</button>"
                       + "<button class=\"btn btn-default\">Right</button></div>";
            var toolbar = new ButtonToolbar(buttonGroup, buttonGroup, buttonGroup);

            Assert.AreEqual(string.Format("<div class=\"btn-toolbar\">{0}{0}{0}</div>", html),
                            toolbar.ToHtmlString());
        }
 public void VerticalButtonGroup()
 {
     var buttonGroup = new ButtonGroup(
             new ButtonGroupSettings { Vertical = true},
             new Button("Left"), new Button("Middle"), new Button("Right")
         );
     Assert.AreEqual("<div class=\"btn-group-vertical\"><button class=\"btn btn-default\">Left</button>"
                     + "<button class=\"btn btn-default\">Middle</button>"
                     + "<button class=\"btn btn-default\">Right</button></div>",
                     buttonGroup.ToHtmlString());
 }
 public void LargeButtonGroup()
 {
     var buttonGroup = new ButtonGroup(
             new ButtonGroupSettings { Size = Size.Lg },
             new Button("Left"), new Button("Middle"), new Button("Right")
         );
     Assert.AreEqual("<div class=\"btn-group btn-group-lg\"><button class=\"btn btn-default\">Left</button>"
                     + "<button class=\"btn btn-default\">Middle</button>"
                     + "<button class=\"btn btn-default\">Right</button></div>",
                     buttonGroup.ToHtmlString());
 }