Esempio n. 1
0
        public void TestInBound()
        {
            game = new Game(2);
            game.Map = new bool[,] {
                { true, true },
                { false,false}
            };

            Assert.IsTrue(game.InBound(0, 0));
            Assert.IsTrue(game.InBound(1, 1));
            Assert.IsFalse(game.InBound(2, 2));
            Assert.IsFalse(game.InBound(-1, -1));
        }