public void Should_NotBeAbleToMakePaymentWith_InsufficentFunds() { var card = new PaymentCard(); card.TopUp(10); Assert.Throws <Exception>(() => card.MakePayment(20)); }
public void Should_BeAbleToTopUp_PaymentCard() { var card = new PaymentCard(); card.TopUp(10); Assert.That(card.Balance, Is.EqualTo(10)); }
public void Should_OnlyAcceptMinimumPayment_OfTenPoundsOnTopUp() { var card = new PaymentCard(); Assert.Throws <Exception>(() => card.TopUp(5)); }