Beispiel #1
0
        public void DeleteItemFromMenu_ShouldGetCorrectCount()
        {
            MenuItem milkshake = new MenuItem();

            milkshake.MealName   = "Milkshake";
            milkshake.MealNumber = 12;

            repo.AddMenuItemToMenu(milkshake);
            int count = repo.GetWholeMenu().Count;

            repo.DeleteMenuItemFromMenu(milkshake);
            int reCount = repo.GetWholeMenu().Count;

            Assert.AreNotEqual(count, reCount);
        }