public void CanRedeemGiftCard() { var x = new GiftCard(100, Currency.EUR); Assert.IsTrue(x.IsRedeemed == false); x.Redeem(); Assert.IsTrue(x.IsRedeemed == true); }
public void CannotRedeemGiftCardTwice() { var x = new GiftCard(100, Currency.EUR); Assert.IsTrue(x.IsRedeemed == false); x.Redeem(); Assert.IsTrue(x.IsRedeemed == true); try { x.Redeem(); Assert.Fail(); } catch { } }
public void CanCreateGiftCard() { var x = new GiftCard(100, Currency.EUR); Assert.IsTrue(x.IsRedeemed == false); }