コード例 #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);
        }