public void NegativeTestZeroingAccount() { var account = new CumulativeAccount("acc1", "client1", 100M); account.ZeroingAccount(); account.CloseAccount(); var result = account.ZeroingAccount(); Assert.AreEqual(false, result); Assert.AreEqual(0M, account.AccountBalance); }
public void PositiveTestZeroingAccount() { var account = new CumulativeAccount("acc1", "client1", 100M); account.AddFunds(100M); var result1 = account.ZeroingAccount(); var result2 = account.ZeroingAccount(); Assert.AreEqual(true, result1); Assert.AreEqual(true, result2); Assert.AreEqual(0M, account.AccountBalance); }
public void PositiveTestCloseAccount() { var account = new CumulativeAccount("acc1", "client1", 100M); account.ZeroingAccount(); var result = account.CloseAccount(); Assert.AreEqual(true, result); }
public void NegativeTestCloseAccount() { var account = new CumulativeAccount("acc1", "client1", 100M); var result1 = account.CloseAccount(); account.ZeroingAccount(); account.CloseAccount(); var result2 = account.CloseAccount(); Assert.AreEqual(false, result1); Assert.AreEqual(false, result2); }
public void NegativeTestAddFunds() { var account = new CumulativeAccount("acc1", "client1", 100M); var result1 = account.AddFunds(-50M); Assert.AreEqual(false, result1); Assert.AreEqual(100M, account.AccountBalance); account.ZeroingAccount(); account.CloseAccount(); var result2 = account.AddFunds(50M); Assert.AreEqual(false, result2); Assert.AreEqual(0M, account.AccountBalance); }
public void NegativeTestInterestsCapitalization() { var account = new CumulativeAccount("acc1", "client1", 100M); account.ZeroingAccount(); var result = account.InterestsCapitalization(); Assert.AreEqual(false, result); Assert.AreEqual(0.00M, account.AccountBalance); account.CloseAccount(); var result2 = account.InterestsCapitalization(); Assert.AreEqual(false, result2); Assert.AreEqual(0.00M, account.AccountBalance); }