public void Given_Resolver_When_Print_Then_ItShouldFindAppropriateType() { var resolver=new Resolver(); var print = new Print(resolver.ResolvePrinterType()); string printedText = print.print(); Assert.Pass(printedText); }
public void Given_ColorfulPrinterType_When_Print_Then_ItShouldBeColorful() { var print=new Print(new ColorfullPrinter()); string printedText = print.print(); Assert.IsTrue(printedText.Contains("colorfull")); }
public void Given_BlackAndWhitePrinterType_When_Print_Then_ItShouldNotBeColorful() { var print = new Print(new BlackAndWhitePrinter()); string printedText = print.print(); Assert.IsFalse(printedText.Contains("colorfull")); }