Пример #1
0
        public void Setup()
        {
            _timPrinter.PrintShouldReturn(valueFromTimPrinter);
                _pexPrinter.PrintShouldReturn(valueFromPexPrinter);
                _timpexPrinter.PrintShouldReturn(valueFromTimpexPrinter);

                var printer=new AdvancedTimpexPrinter(_timPrinter,_pexPrinter,_timpexPrinter);
                for (int i = 0; i <= 99; i++)
                {
                    _returnValues[i] = printer.PrintLine();
                }
        }
Пример #2
0
        public void Setup()
        {
            _timPrinter.PrintShouldReturn(valueFromTimPrinter);
            _pexPrinter.PrintShouldReturn(valueFromPexPrinter);
            _timpexPrinter.PrintShouldReturn(valueFromTimpexPrinter);

            var printer = new AdvancedTimpexPrinter(_timPrinter, _pexPrinter, _timpexPrinter);

            for (int i = 0; i <= 99; i++)
            {
                _returnValues[i] = printer.PrintLine();
            }
        }
Пример #3
0
        private void Act()
        {
            var printer = new AdvancedTimpexPrinter(_timPrinter, _pexPrinter, _timpexPrinter, Counter);

            _returnedValue = printer.PrintLine();
        }
Пример #4
0
 private void Act()
 {
     var printer = new AdvancedTimpexPrinter(_timPrinter, _pexPrinter, _timpexPrinter, Counter);
     _returnedValue = printer.PrintLine();
 }