public static HtmlHr HtmlhrInput() { HtmlHr Hr = new HtmlHr(); Hr.Color = HtmlBuilder.Program.ReadString("Enter the Colour of the Horizontal Line"); return(Hr); }
public void Check_if_HR_tag_returns_correct_html() { HtmlHr hr = new HtmlHr(); hr.Color = "blue"; string genHtml = hr.GetHtmlString(); string expectedHtml = "<hr style='border-color:blue'>"; Assert.IsInstanceOfType(hr, typeof(IHtmlElement)); Assert.AreEqual(expectedHtml, genHtml); }