public void IgredientsList_FifteenIngredients_FifteenListElements() { CocktailDrink testDrink = new CocktailDrink() { StrIngredient1 = "a", StrIngredient2 = "a", StrIngredient3 = "a", StrIngredient4 = "a", StrIngredient5 = "a", StrIngredient6 = "a", StrIngredient7 = "a", StrIngredient8 = "a", StrIngredient9 = "a", StrIngredient10 = "a", StrIngredient11 = "a", StrIngredient12 = "a", StrIngredient13 = "a", StrIngredient14 = "a", StrIngredient15 = "a" }; int expectedElementCount = 15; int actualElementCount = testDrink.Ingredients.Count; Assert.AreEqual(expectedElementCount, actualElementCount); }
public void IgredientsList_NoIngredients_EmptyList() { CocktailDrink testDrink = new CocktailDrink(); int expectedElementCount = 0; int actualElementCount = testDrink.Ingredients.Count; Assert.AreEqual(expectedElementCount, actualElementCount); }
public void IgredientsList_OneIngredients_OneListElements() { CocktailDrink testDrink = new CocktailDrink() { StrIngredient1 = "a" }; int expectedElementCount = 1; int actualElementCount = testDrink.Ingredients.Count; Assert.AreEqual(expectedElementCount, actualElementCount); }
public void IgredientsList_FourIngredients_FourListElements() { CocktailDrink testDrink = new CocktailDrink() { StrIngredient1 = "a", StrIngredient2 = "a", StrIngredient3 = "a", StrIngredient4 = "a" }; int expectedElementCount = 4; int actualElementCount = testDrink.Ingredients.Count; Assert.AreEqual(expectedElementCount, actualElementCount); }
public void IgredientsList_NineIngredients_NineListElements() { CocktailDrink testDrink = new CocktailDrink() { StrIngredient1 = "a", StrIngredient2 = "a", StrIngredient3 = "a", StrIngredient4 = "a", StrIngredient5 = "a", StrIngredient6 = "a", StrIngredient7 = "a", StrIngredient8 = "a", StrIngredient9 = "a" }; int expectedElementCount = 9; int actualElementCount = testDrink.Ingredients.Count; Assert.AreEqual(expectedElementCount, actualElementCount); }