Пример #1
0
        public void MakeMoneyInAnyState()
        {
            var machine = new СopyingMachine();

            machine.MakeMoney(10);
            machine.SelectMedia("USBflash");
            machine.MakeMoney(10);
            machine.SelectDocument("1.txt");
            machine.MakeMoney(10);
            machine.PrintDocument();
            machine.MakeMoney(10);
            machine.GiveDelivery();
        }
Пример #2
0
        public void ReturnInInitialStateAfterGettingDelivery()
        {
            var machine = new СopyingMachine();

            machine.MakeMoney(10);
            machine.SelectMedia("USBflash");
            machine.GiveDelivery();

            machine.MakeMoney(50);
            machine.SelectMedia("USBflash");
            machine.SelectDocument("1.txt");
            machine.GiveDelivery();

            machine.GiveDelivery();
        }
Пример #3
0
        public void RightWorkWhenIncorrectUse()
        {
            var machine = new СopyingMachine();

            machine.MakeMoney(10);
            machine.SelectMedia("USBflash");
            machine.PrintDocument();
            machine.SelectDocument("1.txt");
            machine.SelectMedia("wi-fi");
            machine.PrintDocument();
            machine.GiveDelivery();
        }