Ejemplo n.º 1
0
        public void TestWithdraw()
        {
            BankAccount account = new BankAccount();
            account.Withdraw(500m);

            Assert.AreEqual(-500m, account.Balance);
        }
Ejemplo n.º 2
0
        public void TestMethod1()
        {
            BankAccount account = new BankAccount();
            account.Number = 1;

            decimal saldo = account.Balance;

            account.Deposit(1000m);

            Assert.AreEqual(1000m, account.Balance);
        }