public void BankAccountNegativeTest() { // Write a test that check that exception is thrown when you instantiate BankAccount with negative money Assert.Throws(typeof(ArgumentException), () => { BankAcount aaa = new BankAcount(-111); }); }
public void Equals() { BankAcount otherAccount = new BankAcount(initialAmount); Assert.AreNotSame(account, otherAccount); }
public void BankAccountInitializer() { account = new BankAcount(initialAmount); expectedAmount = initialAmount - (int)(withdrawSum1 * 1.05); }