public void Should_Rotate_Right_With_No_Location_Change() { // Arrange _machine.CurrentLocation = new Location() { X = 0, Y = 0 }; _machine.direction = Direction.North; // Act _machine.RotateRight(); // Assert Assert.AreEqual(_machine.direction, Direction.East); Assert.AreEqual(_machine.CurrentLocation.X, 0); Assert.AreEqual(_machine.CurrentLocation.Y, 0); }
public void Execute(ILawnMowerMachine machine) { machine.RotateRight(); }