示例#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);
            }