Exemplo n.º 1
0
 public void TestLegal()
 {
     IGrid grid = new StandardGrid();
     grid.InitiGrid(4, 4);
     Assert.IsTrue(grid.IsValidLocation(new Point(1, 1)));
 }
Exemplo n.º 2
0
 public void TestIllegalPositiveYLocation()
 {
     IGrid grid = new StandardGrid();
     grid.InitiGrid(4, 4);
     Assert.IsFalse(grid.IsValidLocation(new Point(1, 5)));
 }