public void CheckBalance_Should_Return_Balance_Of_0() { Atm sut = new Atm(); int actualBalance = sut.CheckBalance(); Assert.Equal(0, actualBalance); }
public void Deposit_Should_Increase_Balance_by_50_Dollars() { Atm sut = new Atm(200); sut.Deposit(); int actualBalance = sut.CheckBalance(); Assert.Equal(250, actualBalance); }
public void Withdraw_Should_Reduce_Balance_by_10_Dollars() { Atm sut = new Atm(200); sut.Withdraw(); int actualBalance = sut.CheckBalance(); Assert.Equal(190, actualBalance); }
public void CheckBalance_Should_Return_Balance_Of_0() { // Arrange Atm underTest = new Atm(); // Act int actualBalance = underTest.CheckBalance(); // Assert Assert.Equal(0, actualBalance); }
public void Withdraw_Should_Reduce_Balance_by_10_Dollars() { // Arrange Atm underTest = new Atm(200); // Act underTest.Withdraw(); int actualBalance = underTest.CheckBalance(); // Assert Assert.Equal(190, actualBalance); }