public void CardEnsurePropertiesWork() { // Object Initializer syntax Ingredient ingredient = new Ingredient { IngredientName = "Carrot", IngredientId = 4}; Assert.AreEqual("Carrot", ingredient.IngredientName); Assert.AreEqual(4, ingredient.IngredientId); }
public void CardEnsureICanCreateInstance() { Ingredient ingredient = new Ingredient(); Assert.IsNotNull(ingredient); }