public void Subtract_From_Filled_Wallet_Result_Is_Remainder() { SimpleWallet wallet = new SimpleWallet(); wallet.Add(20); wallet.Subtract(10); Assert.IsTrue(wallet.GetBalance() > 0); }
public void Subtract_From_Filled_Wallet_Result_Is_0() { SimpleWallet wallet = new SimpleWallet(); wallet.Add(20); wallet.Subtract(20); Assert.That(wallet.GetBalance().Equals(0)); }
public void Subtract_From_Wallet_Result_Is_Correct(decimal initialValue, decimal finalValue, decimal result) { SimpleWallet wallet = new SimpleWallet(); wallet.Add(initialValue); wallet.Subtract(finalValue); Assert.That(result.Equals(wallet.GetBalance())); }