예제 #1
0
        public void SearchName_Name_ReturnRecipeFromDatabase()
        {
            //Arrange
            Recipe testRecipe = new Recipe("Pot Pie", "Microwave it");

            testRecipe.Save();

            //Act
            List <Recipe> output = Recipe.SearchName("Pot Pie");
            List <Recipe> verify = new List <Recipe> {
                testRecipe
            };

            //Assert
            Assert.Equal(verify, output);
        }