public void RecipeByNameCommandBadTest() { var actualResult = new RecipeByNameCommand(database) .Execute(new string[] { "молоко" }).Code; Assert.AreEqual(BotCode.Bad, actualResult); }
public void RecipeByNameCommandGoodTest() { var actualResult = new RecipeByNameCommand(database) .Execute(new string[] { "КЕКС" }); Assert.AreEqual(BotCode.Good, actualResult.Code); Assert.AreEqual(fakeRecipes.ElementAt(1).GetPrintableView(), actualResult.Result); }