public void When_Customer_orders_a_large_pizza_with_3_toppings_Grand_Total_should_be__21() { var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext(); Console.WriteLine(@"When Customer orders a large pizza with 3 toppings"); contextPriceCalculatorTestContext.When_Customer_Orders_a_size_Pizza(@"large").With_toppingCount_Toppings(3); Console.WriteLine(@"Grand Total should be $21"); contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$21"); }
public void When_Customer_orders_a_small_pizza_with_3_toppings_Grand_Total_should_be__13_50() { var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext(); Console.WriteLine(@"When Customer orders a small pizza with 3 toppings"); contextPriceCalculatorTestContext.When_Customer_Orders_a_size_Pizza(@"small").With_toppingCount_Toppings(3); Console.WriteLine(@"Grand Total should be $13.50"); contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$13.50"); }
[Test] public void When_Customer_orders_a_small_pizza_with_3_toppings_Grand_Total_should_be__13_50() { var contextPriceCalculatorTestContext = new Pizza.TestContext.PriceCalculatorTestContext(); Console.WriteLine(@"When Customer orders a small pizza with 3 toppings"); contextPriceCalculatorTestContext.When_Customer_Orders_a_size_Pizza(@"small").With_toppingCount_Toppings(3); Console.WriteLine(@"Grand Total should be $13.50"); contextPriceCalculatorTestContext.Grand_Total.ShouldBe(@"$13.50"); }