Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void Given_ColorfulPrinterType_When_Print_Then_ItShouldBeColorful()
 {
     var print=new Print(new ColorfullPrinter());
     string printedText = print.print();
     Assert.IsTrue(printedText.Contains("colorfull"));
 }
Exemplo n.º 3
0
 public void Given_BlackAndWhitePrinterType_When_Print_Then_ItShouldNotBeColorful()
 {
     var print = new Print(new BlackAndWhitePrinter());
     string printedText = print.print();
     Assert.IsFalse(printedText.Contains("colorfull"));
 }