Наследование: BootstrapComponents.Core.CloseableHtml
 public void ExplicitTabs()
 {
     var output = new StringBuilder();
     var writer = new StringBuilderWriter(output);
     using (var nav = new Nav(writer, Nav.Settings.Tabs()))
     {
         writer.Write(nav.Link("Home", "#"));
         writer.Write(nav.Link("Profile", "#"));
     }
     Assert.AreEqual("<ul class=\"nav nav-tabs\">" +
                         "<li><a href=\"#\">Home</a></li>" +
                         "<li><a href=\"#\">Profile</a></li>" +
                     "</ul>", output.ToString());
 }
 public void IndicateActiveWithExplicitIdentifier()
 {
     var output = new StringBuilder();
     var writer = new StringBuilderWriter(output);
     using (var nav = new Nav(writer, "HomeLink", Nav.Settings.Pills()))
     {
         writer.Write(nav.Link("Home", "#", "HomeLink"));
         writer.Write(nav.Link("Profile", "#", "ProfileLink"));
     }
     Assert.AreEqual("<ul class=\"nav nav-pills\">" +
                         "<li class=\"active\"><a href=\"#\">Home</a></li>" +
                         "<li><a href=\"#\">Profile</a></li>" +
                     "</ul>", output.ToString());
 }
 public void DisabledLinks()
 {
     var output = new StringBuilder();
     var writer = new StringBuilderWriter(output);
     using (var nav = new Nav(writer))
     {
         writer.Write(nav.Link("Home", "#", new {@class="disabled"}));
         writer.Write(nav.Link("Profile", "#"));
     }
     Assert.AreEqual("<ul class=\"nav nav-tabs\">" +
                         "<li class=\"disabled\"><a href=\"#\">Home</a></li>" +
                         "<li><a href=\"#\">Profile</a></li>" +
                     "</ul>", output.ToString());
 }