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