public void IndexToCoordinateTest_neg1() { Board target = new Board(); int index = -1; Point actual; //IndexOutOfRangeException is expected actual = target.IndexToCoordinate(index); }
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); }