public void RemoveSweetnerShouldNotifyIngredientChange() { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, "Ingredients", () => { tea.RemoveSweetner(); }); }
public void RemoveSweetnerShouldNotifyCalorieChange() { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, "Calories", () => { tea.RemoveSweetner(); }); }
public void RemovingSweetnerShouldReturnToDefaultCaloriesForLarge() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Large; tea.AddSweetner(); tea.RemoveSweetner(); Assert.Equal <uint>(32, tea.Calories); }