public void ReturnSmallPizzaWithOneTierTwoToppingCost_WhenGetCostIsCalled() { var expectedCost = 5.5; var smallPizza = new SmallPizza(); var toppingDecorator = new ToppingDecorator(smallPizza, Toppings.SmokedBacon); var actualCost = toppingDecorator.GetCost(); actualCost.Should().Be(expectedCost); }
public void ReturnSmallPizzaWithOneTierOneToppingCost_WhenGetCostIsCalled() { var expectedCost = 5.25; var smallPizza = new SmallPizza(); var toppingDecorator = new ToppingDecorator(smallPizza, Toppings.BlackOlives); var actualCost = toppingDecorator.GetCost(); actualCost.Should().Be(expectedCost); }
public void ReturnSmallPizzaWithTwoTierOneToppingsCost_WhenGetCostIsCalled() { var expectedCost = 5.5; var smallPizza = new SmallPizza(); var toppingDecoratorOne = new ToppingDecorator(smallPizza, Toppings.BlackOlives); var toppingDecoratorTwo = new ToppingDecorator(toppingDecoratorOne, Toppings.Mushrooms); var actualCost = toppingDecoratorTwo.GetCost(); actualCost.Should().Be(expectedCost); }