コード例 #1
0
 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());
 }
コード例 #2
0
 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());
 }
コード例 #3
0
 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());
 }