public void CoffeeReportsCorrectPrice() { // Arrange coffee.Size = CoffeeSize.LARGE; coffee.Sugars = 1; coffee.Creams = 1; // Act decimal price = coffee.GetPrice(); // Assert Assert.True(price == (LARGE_PRICE + SUGAR_PRICE + CREAM_PRICE)); }
private void Start() { if (!IsShowOnStart) { return; } Debug.Log("<color=brown><b> DECORATOR START </b></color>"); Debug.Log(_coffeeWithMilkAndChocolate.GetDescription() + "| price : " + _coffeeWithMilkAndChocolate.GetPrice()); Debug.Log(_coffeeWithMilk.GetDescription() + "| price : " + _coffeeWithMilk.GetPrice()); Debug.Log("<color=brown><b> DECORATOR FINISH </b></color>"); }
public int GetPrice() { return(_coffee.GetPrice() + _price); }
public decimal GetPrice() { return(coffee.GetPrice() + 0.5m); }
public double GetPrice() { return(_coffee.GetPrice()); }
public int GetPrice() { return(_coffee.GetPrice() + _priceOfChocolate); }