Beispiel #1
0
        public void CardEnsurePropertiesWork()
        {
            // Object Initializer syntax
            Ingredient ingredient = new Ingredient { IngredientName = "Carrot", IngredientId = 4};

            Assert.AreEqual("Carrot", ingredient.IngredientName);
            Assert.AreEqual(4, ingredient.IngredientId);
        }
Beispiel #2
0
 public void CardEnsureICanCreateInstance()
 {
     Ingredient ingredient = new Ingredient();
     Assert.IsNotNull(ingredient);
 }