예제 #1
0
            public void TransferMinFundsFailAll([Values(200)] int a, [Values(0, 20)] int b, [Values(190, 345)] int c)
            {
                CUSTOMER source = new CUSTOMER();

                source.Deposit(a);
                CUSTOMER destination = new CUSTOMER();

                destination.Deposit(b);
                destination = source.TransferMinFunds(destination, c);
            }
예제 #2
0
            public void TransferNegativeAmount(int a, int b, int c)
            {
                CUSTOMER source = new CUSTOMER();

                source.Deposit(a);
                CUSTOMER destination = new CUSTOMER();

                destination.Deposit(b);

                destination = source.TransferMinFunds(destination, c);
            }
예제 #3
0
            public void TransferMinFunds(int a, int b, int c)
            {
                CUSTOMER source = new CUSTOMER();

                source.Deposit(a);
                CUSTOMER destination = new CUSTOMER();

                destination.Deposit(b);

                source.TransferMinFunds(destination, c);
                Assert.AreEqual(c, destination.Balance);
            }