public void Setup() { var printer = new TimPrinter(_corePrinter); _corePrinter.PrintShouldReturn(valueFromCorePrinter); for (int i = 0; i <= 99; i++) { _returnValues[i] = printer.Print(); } }
private string DecideValue() { if (_counter.IsTim) { return(_timPrinter.Print()); } if (_counter.IsPex) { return(_pexPrinter.Print()); } if (_counter.IsTimpex) { return(_timpexPrinter.Print()); } return(_counter.IntegerValue); }
private string DecideValue() { if (ErDeleligMed3Og5) { return(_timpexPrinter.Print()); } if (ErDeleligMed3) { return(_timPrinter.Print()); } if (ErDeleligMed5) { return(_pexPrinter.Print()); } return(_counter.ToString()); }