Example #1
0
        public void Table_Quando_Crio_Com_Uma_Linha_Sem_Celular()
        {
            XControl table = new Table(new TR());

            Assert.AreEqual("<table><tr></tr></table>", table.ToString());
        }
Example #2
0
        public void Table_Quando_Crio_Sem_Linhas()
        {
            XControl table = new Table();

            Assert.AreEqual("<table></table>", table.ToString());
        }
Example #3
0
        public void Table_Quando_Crio_Com_THead_Uma_Linha_TBody_Uma_Linha_E_Uma_Celula_E_TFoot()
        {
            XControl table = new Table(new THead(new TR(new TH())), new TBody(new TR(new TD())), new TFoot(new TR(new TD())));

            Assert.AreEqual("<table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody><tfoot><tr><td></td></tr></tfoot></table>", table.ToString());
        }