public void ShouldHaveCorrectCaloriesForSize(Size size, uint cal) { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Size = size; Assert.True(size == drink.Size); Assert.True(cal == drink.Calories); }
public void ShouldReturnCorrectToStringBasedOnSize(bool decaf, Size size, string name) { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Size = size; drink.Decaf = decaf; Assert.Equal(drink.ToString(), name); }
public void ShouldHaveCorrectPriceForSize(Size size, double price) { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Size = size; Assert.True(size == drink.Size); Assert.True(price == drink.Price); }
public void ShouldHaveCorrectSpecialInstructions(bool includeIce, bool includeCream) { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Ice = includeIce; drink.RoomForCream = includeCream; if (drink.Ice) { Assert.Contains <string>("Add ice", drink.SpecialInstructions); } if (drink.RoomForCream) { Assert.Contains <string>("Add cream", drink.SpecialInstructions); } }
public void ShouldBeAbleToSetSize() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Size = Size.Medium; Assert.False(drink.Size == Size.Small); }
public void ShouldBeAbleToSetRoomForCream() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.RoomForCream = true; Assert.True(drink.RoomForCream); }
public void ShouldBeAbleToSetDecaf() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Decaf = true; Assert.True(drink.Decaf); }
public void ShouldBeAbleToSetIce() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); drink.Ice = true; Assert.True(drink.Ice); }
public void ShouldBeSmallByDefault() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); Assert.True(drink.Size == Size.Small); }
public void ShouldNotHaveRoomForCreamByDefault() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); Assert.False(drink.RoomForCream); }
public void ShouldNotBeDecafByDefault() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); Assert.False(drink.Decaf); }
public void ShouldNotIncludeIceByDefault() { Data.Drinks.CandlehearthCoffee drink = new Data.Drinks.CandlehearthCoffee(); Assert.False(drink.Ice); }