Esempio n. 1
0
        public void RemoveSweetnerShouldNotifyIngredientChange()
        {
            Tyrannotea tea = new Tyrannotea();

            Assert.PropertyChanged(tea, "Ingredients", () =>
            {
                tea.RemoveSweetner();
            });
        }
Esempio n. 2
0
        public void RemoveSweetnerShouldNotifyCalorieChange()
        {
            Tyrannotea tea = new Tyrannotea();

            Assert.PropertyChanged(tea, "Calories", () =>
            {
                tea.RemoveSweetner();
            });
        }
Esempio n. 3
0
        public void RemovingSweetnerShouldReturnToDefaultCaloriesForLarge()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.Size = Size.Large;
            tea.AddSweetner();
            tea.RemoveSweetner();
            Assert.Equal <uint>(32, tea.Calories);
        }