Ejemplo n.º 1
0
 public void InitAccount()
 {
     source = new CUSTOMER();
     source.Deposit(300);
     destination = new CUSTOMER();
     destination.Deposit(100);
 }
Ejemplo n.º 2
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);
            }
Ejemplo n.º 3
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);
            }
Ejemplo n.º 4
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);
            }