Esempio n. 1
0
        public void OneColOneRowReturnsOneCell()
        {
            var slicer = new Slicer(1, 1);
            var slices = slicer.Slice();

            Assert.That(slices.Count, Is.EqualTo(1));
            Assert.IsTrue(slices[0][0]);
        }
Esempio n. 2
0
        public void OneColTwoRowsReturnsThreeCells()
        {
            var slicer = new Slicer(1, 2);
            var slices = slicer.Slice();

            Assert.That(slices.Count, Is.EqualTo(3));

            Assert.IsTrue(slices[0][0]);
            Assert.IsFalse(slices[0][1]);

            Assert.IsFalse(slices[1][0]);
            Assert.IsTrue(slices[1][1]);

            Assert.IsTrue(slices[2][0]);
            Assert.IsTrue(slices[2][1]);
        }