public void Should_NotBeAbleToTravel_IfBalanceIsUnderMinimumRequired() { var oysterCard = new OysterCard(); Assert.Throws <Exception>(() => oysterCard.Deduct(5)); }
public void Should_HaveZeroBalance_OnInstantiation() { var oysterCard = new OysterCard(); Assert.That(oysterCard.Balance, Is.EqualTo(0)); }
public void Should_NotBeAbleTo_PutMoreMoneyOnTheCardThanMaximumBalance() { var oysterCard = new OysterCard(); Assert.Throws <Exception>(() => oysterCard.TopUp(1000)); }