public void Cancel_AmoutRefunded() { // Arrange ParkingMachine machine = new ParkingMachine(20); // Act machine.InsertMoney(100); int refund = machine.Cancel(); // Assert Assert.AreEqual(100, refund); }
public void Cancel_CurrentTotal_Zeroed() { // Arrange ParkingMachine machine = new ParkingMachine(20); // Act machine.InsertMoney(100); int refund = machine.Cancel(); // Assert Assert.AreEqual(0, machine.CurrentTotal); }