public void b_BlockedMovementTest_Left() { Point expectedPoint, actualPoint, theseusPoint; expectedPoint = new Point(0, 1); Game aGame = new Game(); Theseus theseus = aGame.GetTheseus(); theseusPoint = new Point(0, 1); aGame.SetTestMap(1); aGame.GetTheseus().Coordinate = theseusPoint; /* .___.___.___. | 0 1 2 | . . . . | T | . . . . | 2 | .___.___.___. */ aGame.GetTheseus().Move(Direction.Left); actualPoint = aGame.GetTheseusPosition(); Assert.AreEqual(expectedPoint, actualPoint, "Theseus was not stopped by the block. Superman?"); }
public void a_BasicMovementTest_Right() { Point expectedPoint, actualPoint; expectedPoint = new Point(2, 1); Game aGame = new Game(); Theseus theseus = aGame.GetTheseus(); aGame.SetTestMap(1); /* .___.___.___. | 0 1 2 | . . . .___. | 1 T E | M | . . . .___. | 2 | .___.___.___. */ aGame.GetTheseus().Move(Direction.Right); actualPoint = aGame.GetTheseusPosition(); Assert.AreEqual(expectedPoint, actualPoint, "Theseus was not on the expected Tile"); }