예제 #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);
 }
예제 #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"));
 }
예제 #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"));
 }