public void Print_ForOnePrinterAndNumberWithoutOutput_ShouldReturnOutput() { const int NumberUnderTest = 1; const int OtherNumber = 2; const string Output = "Fizz"; var printer = CreatePrinter(OtherNumber, Output); var compositePrinter = new CompositePrinter(new[] { printer }); Assert.AreEqual(NumberUnderTest.ToString(), compositePrinter.Print(NumberUnderTest)); }
public void Print_ForTwoPrintersAndNumberWithoutOutputInBothPrinters_ShouldReturnOutput() { const int NumberUnderTest = 1; const int OtherNumber = 2; const string Output1 = "Fizz"; const string Output2 = "Buzz"; var printer1 = CreatePrinter(OtherNumber, Output1); var printer2 = CreatePrinter(OtherNumber, Output2); var compositePrinter = new CompositePrinter(new[] { printer1, printer2 }); Assert.AreEqual(NumberUnderTest.ToString(), compositePrinter.Print(NumberUnderTest)); }