Beispiel #1
0
        public void Given_ColorfulPrinterType_When_Print_Then_ItShouldBeColorful()
        {
            var    print       = new Print(new ColorfullPrinter());
            string printedText = print.print();

            Assert.IsTrue(printedText.Contains("colorfull"));
        }
Beispiel #2
0
        public void Given_BlackAndWhitePrinterType_When_Print_Then_ItShouldNotBeColorful()
        {
            var    print       = new Print(new BlackAndWhitePrinter());
            string printedText = print.print();

            Assert.IsFalse(printedText.Contains("colorfull"));
        }
Beispiel #3
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);
 }
Beispiel #4
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);
        }
Beispiel #5
0
 public void Given_ColorfulPrinterType_When_Print_Then_ItShouldBeColorful()
 {
     var print=new Print(new ColorfullPrinter());
     string printedText = print.print();
     Assert.IsTrue(printedText.Contains("colorfull"));
 }
Beispiel #6
0
 public void Given_BlackAndWhitePrinterType_When_Print_Then_ItShouldNotBeColorful()
 {
     var print = new Print(new BlackAndWhitePrinter());
     string printedText = print.print();
     Assert.IsFalse(printedText.Contains("colorfull"));
 }