コード例 #1
0
        [Test] public void two_mediums_for_20_bucks_special()
        {
            var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext();

            Console.WriteLine(@"When customer orders 2 medium cheese pizzas");
            contextPriceCalculatorTestContext.When_customer_orders_quantity_size_pizzaType_pizzas(2, @"medium", @"cheese");
            Console.WriteLine(@"Grand Total should be $20");
            contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$20");
        }
コード例 #2
0
        [Test] public void _10__discount_if_ordering_5_or_more_pizzas()
        {
            var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext();

            Console.WriteLine(@"When customer orders 5 large cheese pizzas");
            contextPriceCalculatorTestContext.When_customer_orders_quantity_size_pizzaType_pizzas(5, @"large", @"cheese");
            Console.WriteLine(@"Grand total should be $67.50");
            contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$67.50");
        }
コード例 #3
0
ファイル: Generated.cs プロジェクト: heinrichbreedt/storevil
 public void _10__discount_if_ordering_5_or_more_pizzas()
 {
     var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext();
        Console.WriteLine(@"When customer orders 5 large cheese pizzas");
     contextPriceCalculatorTestContext.When_customer_orders_quantity_size_pizzaType_pizzas(5, @"large", @"cheese");
        Console.WriteLine(@"Grand total should be $67.50");
     contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$67.50");
 }
コード例 #4
0
ファイル: Generated.cs プロジェクト: heinrichbreedt/storevil
 public void two_mediums_for_20_bucks_special()
 {
     var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext();
        Console.WriteLine(@"When customer orders 2 medium cheese pizzas");
     contextPriceCalculatorTestContext.When_customer_orders_quantity_size_pizzaType_pizzas(2, @"medium", @"cheese");
        Console.WriteLine(@"Grand Total should be $20");
     contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$20");
 }