Esempio n. 1
0
        public void Draw_ResetEndToNotNull_DrawNothing()
        {
            var grid = new TableGrid(ROWS, COLUMNS);
            var components = FillGrid(grid);

            grid.EndIndex = null;
            grid.EndIndex = new TableIndex(0, 0);
            grid.Draw();

            foreach (var component in components)
                Assert.IsFalse(component.WasDrawn);

        }
Esempio n. 2
0
        public void Draw_EndIndexNull_DrawAll()
        {
            var grid = new TableGrid(ROWS, COLUMNS);
            var components = FillGrid(grid);

            grid.EndIndex = null;
            grid.Draw();

            foreach (var component in components)
                Assert.IsTrue(component.WasDrawn);
            
        }