Exemplo n.º 1
0
        public void Check_if_Html_Table1_return_correct_HtmlException()
        {
            HtmlTable table = new HtmlTable();

            table.Rows    = 2;
            table.Columns = 2;
            table.FillData("Abd", "hgjh", "Def", "gsfg", "dfgsdg");

            string genHtml = table.GetHtmlString();
        }
Exemplo n.º 2
0
        public void Check_if_Html_Table_return_correct_HtmlException()
        {
            HtmlTable table = new HtmlTable();

            table.Rows    = 2;
            table.Columns = 2;
            table.FillData("Abd", "hgjh", "Def", "gsfg");

            string genHtml      = table.GetHtmlString();
            string expectedHtml = "<table border='1'><tr><td>Abd</td><td>hgjh</td></tr><tr><td>Def</td><td>gsfg</td></tr></table>";

            Assert.AreEqual(expectedHtml, genHtml);
        }