public void MotorMovesNorth() { var initialLocation = new Location(9266, 90210, ORIENTATION.NORTH); var newLocation = motor.Move(initialLocation); Assert.That(newLocation.Coordinate.X, Is.EqualTo(9266)); Assert.That(newLocation.Coordinate.Y, Is.EqualTo(90210 + 1)); Assert.That(newLocation.Orientation, Is.EqualTo(ORIENTATION.NORTH)); }
public void MotorMovesWest() { var initialLocation = new Location(9266, 90210, ORIENTATION.WEST); var newLocation = motor.Move(initialLocation); Assert.That(newLocation.Coordinate.X, Is.EqualTo(9266 - 1)); Assert.That(newLocation.Coordinate.Y, Is.EqualTo(90210)); Assert.That(newLocation.Orientation, Is.EqualTo(ORIENTATION.WEST)); }