public void NavbarWithBrandLink() { var output = new StringBuilder(); var writer = new StringBuilderWriter(output); using (var navbar = new Navbar(writer)) { writer.Write(navbar.Brand("BootstrapComponents", "https://github.com/jordanwallwork/bootstrapcomponents")); } Assert.AreEqual("<nav class=\"navbar navbar-default\" role=\"navigation\"><div class=\"container\">" + "<a class=\"navbar-brand\" href=\"https://github.com/jordanwallwork/bootstrapcomponents\">BootstrapComponents</a>" + "</div></nav>", output.ToString()); }
public void NavbarWithBrand() { var output = new StringBuilder(); var writer = new StringBuilderWriter(output); using (var navbar = new Navbar(writer)) { using (navbar.Header()) { writer.Write(navbar.Brand("BootstrapComponents")); } } Assert.AreEqual("<nav class=\"navbar navbar-default\" role=\"navigation\"><div class=\"container\">" + "<div class=\"navbar-header\">" + toggleHtml + "<p class=\"navbar-brand\">BootstrapComponents</p>" + "</div>" + "</div></nav>", output.ToString()); }