Exemplo n.º 1
0
        public void InsertCss_JustificationLeftTest()
        {
            _instance.CellsMatrix = new CellState[, ] {
            };
            var cssData = _instance.AsCssData();

            _instance.Jusitification = TableRowAlignmentValues.Left;
            Assert.IsFalse(cssData[""]["." + _instance.ClsName].ContainsKey("margin"));
        }
Exemplo n.º 2
0
        public void Build_Css3X3Test()
        {
            _table = TableSimple.Build3x3();
            BuildGrid();
            var result   = _grid.AsCssData();
            var expected = new CssData();

            expected.AddAttribute(".demo", "display", "grid");
            AddGridCols(expected, 1000, 2000, 3000);
            foreach (var c in BuildExpectedCell3X3())
            {
                c.SetCssData(expected, "demo");
            }

            Assert.AreEqual(expected, result);
        }