Beispiel #1
0
        public void GeneratesEmptyRowByDefault()
        {
            var row     = new DashboardTableRow();
            var element = row.ToXmlFragment()?.FirstChild;

            Assert.IsNotNull(element);
            Assert.AreEqual("tr", element.LocalName);
            Assert.AreEqual(0, element.ChildNodes.Count);
        }
Beispiel #2
0
        public void AddCellsGeneratesRowWithAppropriateCells()
        {
            var row = new DashboardTableRow();

            row.AddCells("hello", "world", "new", "cells");
            var element = row.ToXmlFragment()?.FirstChild;

            Assert.IsNotNull(element);
            Assert.AreEqual("tr", element.LocalName);
            Assert.AreEqual(4, element.ChildNodes.Count);
        }
Beispiel #3
0
        public void AddCellGeneratesRowWithOneCell()
        {
            var row = new DashboardTableRow();

            row.AddCell("hello");
            var element = row.ToXmlFragment()?.FirstChild;

            Assert.IsNotNull(element);
            Assert.AreEqual("tr", element.LocalName);
            Assert.AreEqual(1, element.ChildNodes.Count);
        }