Exemplo n.º 1
0
 public void CoordinateToIndexTest_87()
 {
     Board target = new Board();
     Point point = new Point(8, 7);  // (8,7) should be the 65th (Index: 64) which is outside list range therefore an exception is expected (using default board width/height of 8)
     int actual;
     actual = target.CoordinateToIndex(point);
 }
Exemplo n.º 2
0
 public void CoordinateToIndexTest_12()
 {
     Board target = new Board();
     Point point = new Point(1, 2);
     int expected = 17; // (1,2) should be the 18th (Index: 17) element in the list (using default board width/height of 8)
     int actual;
     actual = target.CoordinateToIndex(point);
     Assert.AreEqual(expected, actual);
 }