public void ResettingSweetShouldGetProperCaloriesForLarge() { Tyrannotea t = new Tyrannotea(); t.Size = Size.Large; t.AddSugar(); t.RemoveSugar(); Assert.Equal <uint>(32, t.Calories); }
public void ResettingSweetShouldGetProperCaloriesForMedium() { Tyrannotea t = new Tyrannotea(); t.Size = Size.Medium; t.AddSugar(); t.RemoveSugar(); Assert.Equal <uint>(16, t.Calories); }
public void RemoveSugarShouldNotifyOfSpecialPropertyChange() { Tyrannotea t = new Tyrannotea(); Assert.PropertyChanged(t, "Special", () => { t.AddSugar(); t.RemoveSugar(); }); }
public void ResettingSweetShouldGetProperIngredients() { Tyrannotea t = new Tyrannotea(); t.AddSugar(); t.RemoveSugar(); Assert.Contains <string>("Water", t.Ingredients); Assert.Contains <string>("Tea", t.Ingredients); Assert.Equal <int>(2, t.Ingredients.Count); }