예제 #1
0
        public void RecipeByIngredientsCommandBadTest()
        {
            var actualResult = new RecipeByIngredientsCommand(database)
                               .Execute(new string[] { "вода" });

            Assert.AreEqual(BotCode.Bad, actualResult.Code);
        }
예제 #2
0
        public void RecipeByIngredientsCommandGoodTest()
        {
            var actualResult = new RecipeByIngredientsCommand(database)
                               .Execute(new string[] { "хлеб" });

            Assert.AreEqual(BotCode.Good, actualResult.Code);
            Assert.AreEqual(fakeRecipes.ElementAt(0).GetPrintableView(), actualResult.Result);
        }