Beispiel #1
0
        public void TestGetCellinvalidOverflow1()
        {
            game = new Game(2);
            game.Map = new bool[,] {
                { true, true },
                { false,false}
            };

            game.GetCell(0, 2);
        }
Beispiel #2
0
        public void TestGetCellValid()
        {
            game = new Game(2);
            game.Map = new bool[,] {
                { true, true },
                { false,false}
            };

            Assert.IsTrue(game.GetCell(0, 0));
            Assert.IsTrue(game.GetCell(0, 1));
            Assert.IsFalse(game.GetCell(1, 0));
            Assert.IsFalse(game.GetCell(1, 1));
        }
Beispiel #3
0
        public void TestGetCellinvalidUnderflow2()
        {
            game = new Game(2);
            game.Map = new bool[,] {
                { true, true },
                { false,false}
            };

            game.GetCell(-1, 0);
        }