public void FormTag_toPlainTextStringTest() { var targrt = new FormTagStub(new List <Node> { new Node("A"), new Node("B"), new Node("C") } ); var actual = targrt.toPlainTextString(); Assert.AreEqual("ABC", actual); }
public void FormTag_toHTML() { var targrt = new FormTagStub( "AAA", "/action_page.php", "BBB", new List <Node> { new Node("A"), new Node("B"), new Node("C") }, new Dictionary <string, string>() ); var actual = targrt.toHTML(); var expected = "<FORM METHOD=\"AAA\" ACTION=\"/action_page.php\" NAME=\"BBB\"><br>" + "<A><br>" + "<B><br>" + "<C>" + "</FORM>"; Assert.AreEqual(expected, actual); }