Beispiel #1
0
 public void IndexToCoordinateTest_neg1()
 {
     Board target = new Board();
     int index = -1;
     Point actual;   //IndexOutOfRangeException is expected
     actual = target.IndexToCoordinate(index);
 }
Beispiel #2
0
 public void IndexToCoordinateTest_0()
 {
     Board target = new Board();
     int index = 0;
     Point expected = new Point(0, 0); // Index 0 gives the point (0,0)
     Point actual;   //Point (0,0) is expected
     actual = target.IndexToCoordinate(index);
     Assert.AreEqual(expected, actual);
 }