Exemplo n.º 1
0
        //TEST PASSED
        public void GetMealByNumberTest()
        {
            // Arrange
            List <string> pbjIngredients = new List <string>()
            {
                "peanut butter", "wheat bread", "jelly"
            };
            Meal peanutbutter = new Meal(5, "Peanut Butter and Jelly Sandwich", "Childhood classic with elevated ingredients", pbjIngredients, 2.56);

            _repo.AddItemToMenu(peanutbutter);

            // Act
            Meal testContent = _repo.GetMealByNumber(5);

            // Assert
            Assert.AreEqual(peanutbutter, testContent);
        }