コード例 #1
0
        public void order_greek_pizza()
        {
            var console    = new ConsoleStub();
            var pizzaStore = new PizzaStore(console);

            pizzaStore.OrderPizza("greek");

            var outPut = console.GetAllConsole();

            outPut.ShouldContain("Order Greek Pizza");
        }
コード例 #2
0
        public void order_cheese_pizza()
        {
            var console    = new ConsoleStub();
            var pizzaStore = new PizzaStore(console);

            pizzaStore.OrderPizza("cheese");

            var outPut = console.GetAllConsole();

            outPut.ShouldContain("Order Cheese Pizza");
            outPut.ShouldContain("Prepare Pizza");
            outPut.ShouldContain("Bake Pizza");
            outPut.ShouldContain("Cut Pizza");
            outPut.ShouldContain("Box Pizza");
        }