public void ShouldHaveCorrectCaloriesForSize(Size size, uint cal) { AretinoAppleJuice aj = new AretinoAppleJuice(); aj.Size = size; Assert.Equal(cal, aj.Calories); }
public void ShouldReturnCorrectToStringBasedOnSize(Size size, string name) { AretinoAppleJuice aj = new AretinoAppleJuice(); aj.Size = size; Assert.Equal(name, aj.ToString()); }
public void ShouldHaveCorrectPriceForSize(Size size, double price) { AretinoAppleJuice aj = new AretinoAppleJuice(); aj.Size = size; Assert.Equal(price, aj.Price); }
public void ShouldHaveCorrectCaloriesForSize(Size size, uint cal) { CandlehearthCoffee coffee = new CandlehearthCoffee(); coffee.Size = size; Assert.Equal(cal, coffee.Calories); }
public void ShouldHaveCorrectPriceForSize(Size size, double price) { CandlehearthCoffee coffee = new CandlehearthCoffee(); coffee.Size = size; Assert.Equal(price, coffee.Price); }
public void ShouldReturnCorrectToStringBasedOnSize(bool decaf, Size size, string name) { CandlehearthCoffee coffee = new CandlehearthCoffee(); coffee.Decaf = decaf; coffee.Size = size; Assert.Equal(name, coffee.ToString()); }
/// <summary> /// Sets the size for the selected drink. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void SelectSize(object sender, RoutedEventArgs e) { if (DataContext is Drink) { Size size = SizeSelectionMethod.DrinkSizeSelection(this, sender); soda.Size = size; } else { throw new NotImplementedException("Invalid type"); } }