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

            game.GetCell(0, 2);
        }
示例#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));
        }
示例#3
0
        public void TestGetCellinvalidUnderflow2()
        {
            game = new Game(2);
            game.Map = new bool[,] {
                { true, true },
                { false,false}
            };

            game.GetCell(-1, 0);
        }