예제 #1
0
 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); });
 }
예제 #2
0
        public void Equals()
        {
            BankAcount otherAccount = new BankAcount(initialAmount);

            Assert.AreNotSame(account, otherAccount);
        }
예제 #3
0
 public void BankAccountInitializer()
 {
     account        = new BankAcount(initialAmount);
     expectedAmount = initialAmount - (int)(withdrawSum1 * 1.05);
 }