Esempio n. 1
0
 public void Setup()
 {
     var printer = new TimPrinter(_corePrinter);
         _corePrinter.PrintShouldReturn(valueFromCorePrinter);
         for (int i = 0; i <= 99; i++)
         {
             _returnValues[i] = printer.Print();
         }
 }
Esempio n. 2
0
        public void Setup()
        {
            var printer = new TimPrinter(_corePrinter);

            _corePrinter.PrintShouldReturn(valueFromCorePrinter);
            for (int i = 0; i <= 99; i++)
            {
                _returnValues[i] = printer.Print();
            }
        }
Esempio n. 3
0
 private string DecideValue()
 {
     if (_counter.IsTim)
     {
         return(_timPrinter.Print());
     }
     if (_counter.IsPex)
     {
         return(_pexPrinter.Print());
     }
     if (_counter.IsTimpex)
     {
         return(_timpexPrinter.Print());
     }
     return(_counter.IntegerValue);
 }
Esempio n. 4
0
        private string DecideValue()
        {
            if (ErDeleligMed3Og5)
            {
                return(_timpexPrinter.Print());
            }
            if (ErDeleligMed3)
            {
                return(_timPrinter.Print());
            }

            if (ErDeleligMed5)
            {
                return(_pexPrinter.Print());
            }

            return(_counter.ToString());
        }