public void TestInitialize() { mockGrid = new Mock<IGrid>(); startingPosition = new Coordinate(1, 2); startingRotation = DirectionRotations.North; rover = new Rover(startingPosition, startingRotation, mockGrid.Object); }
public void TurnRightDecreasesRotationByNinety() { rover = new Rover(startingPosition, DirectionRotations.North, mockGrid.Object); rover.TurnRight(); Assert.AreEqual(DirectionRotations.East, rover.Rotation); }