public void Rover_Should_Move_North_Once() { // Arrange var myRover = new RoverVehicle(); // Act myRover.Move(); // Assert Assert.Equal("N", myRover.Rotation.GetDirection()); Assert.Equal(0, myRover.Rotation.Degree); Assert.Equal(1, myRover.Coordinate.Y); Assert.Equal($"{myRover.Name} - 0 1 N", myRover.ToString()); }
public void Rover_Should_Move_East_Once() { // Arrange var myRover = new RoverVehicle(); // Act myRover.Rotate(RotationDirection.R); myRover.Move(); // Assert Assert.Equal("E", myRover.Rotation.GetDirection()); Assert.Equal(90, myRover.Rotation.Degree); Assert.Equal(1, myRover.Coordinate.X); Assert.Equal($"{myRover.Name} - 1 0 E", myRover.ToString()); }