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(); } }
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(); } }
private void Act() { var printer = new AdvancedTimpexPrinter(_timPrinter, _pexPrinter, _timpexPrinter, Counter); _returnedValue = printer.PrintLine(); }