Ejemplo n.º 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); });
 }
Ejemplo n.º 2
0
        public void Equals()
        {
            BankAcount otherAccount = new BankAcount(initialAmount);

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