public void TestChangedirection() { Cursor point = new Cursor(); for (int i = 0; i < 8; i++) { point.ChangeToNextClockWiseDirection(); } Assert.AreEqual(Direction.DownRight, point.Direction); }
public void TestNextMovesCursor() { Cursor pointer = new Cursor(); pointer.MoveCursor(); pointer.MoveCursor(); pointer.Direction = Direction.Down; pointer.MoveCursor(); pointer.MoveCursor(); Assert.AreEqual(4, pointer.Row); Assert.AreEqual(2, pointer.Column); Assert.AreEqual(Direction.Down, pointer.Direction); }