Пример #1
0
        // public void fncWithdrawalTest()
        public void fncDepositTestPA_ValidDeposit_ChangesBalance()
        {
            // arrange
            double currentBalance = 2999.0;
            double deposit        = 100.0;
            double expected       = 3099.0;
            // clsUnpaidAccount(double vBalance, string vNumber, string vType)
            var account = new clsPaidAccount(currentBalance, "PA1PA1", "PaidAccount");

            // act
            account.fncDeposit(deposit);
            double actual = account.vBalance;

            // assert
            Assert.AreEqual(expected, actual);
        }
        public void TestfncDeposit_inPaidAccount_Deposit_IncreaseBalance()
        {
            // ARRANGE
            double currentBalance = 2999.0;
            double deposit        = 100.0;
            double expected       = 3099.0;
            // Obj
            var account = new clsPaidAccount(currentBalance, "PA1PA1", "PaidAccount");

            // ACT
            account.fncDeposit(deposit);
            double actual = account.vBalance;

            // ASSERT
            Assert.AreEqual(expected, actual);
        }