public void ShouldHaveCorrectCaloriesAfterSettingLargeAndSweetToUnsweet() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Large; tea.AddSweetener(); tea.AddSweetener(); Assert.Equal <uint>(32, tea.Calories); }
public void ShouldBeAbleToAddSweetener() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); Assert.True(tea.Sweet); }
public void ShouldHaveCorrectSweetTeaCaloriesForSmall() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); Assert.Equal <uint>(16, tea.Calories); }
public void ShouldHaveCorrectDescriptionMethodIncludingSweetener() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); Assert.Equal($"{tea.Size} Sweet Tyrannotea", tea.Description); }
public void AddSweetenerShouldMakeSweet() { Tyrannotea t = new Tyrannotea(); t.AddSweetener(); Assert.True(t.Sweet); Assert.Contains("Cane Sugar", t.Ingredients); }
public void SweetShouldDoubleCaloriesForLarge() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Large; tt.AddSweetener(); Assert.Equal <uint>(64, tt.Calories); }
public void SweetShouldDoubleCaloriesForMediumm() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Medium; tt.AddSweetener(); Assert.Equal <uint>(32, tt.Calories); }
public void SweetShouldDoubleCaloriesForSmall() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Small; tt.AddSweetener(); Assert.Equal <uint>(16, tt.Calories); }
public void ShouldHaveCorrectCaloriesAfterSettingSmallAndSweet() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Small; tea.AddSweetener(); Assert.Equal <uint>(16, tea.Calories); }
public void ShouldHaveCorrectCaloriesForSmallWithSweetener() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); tea.Size = Size.Small; Assert.Equal <uint>(16, tea.Calories); }
public void ShouldHaveCorrectCaloriesWhenMediumAndSweet() { Tyrannotea t = new Tyrannotea(); t.AddSweetener(); t.Size = Size.Medium; Assert.Equal <uint>(32, t.Calories); }
public void ShouldHaveCorrectCaloriesWhenLargeAndSweet() { Tyrannotea t = new Tyrannotea(); t.AddSweetener(); t.Size = Size.Large; Assert.Equal <uint>(64, t.Calories); }
public void ShouldHaveCorrectSweetTeaCaloriesForLarge() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Large; tea.AddSweetener(); Assert.Equal <uint>(64, tea.Calories); }
public void ShouldHaveCorrectCaloriesWhenSmallAndSweet() { Tyrannotea t = new Tyrannotea(); t.AddSweetener(); t.Size = Size.Small; Assert.Equal <uint>(16, t.Calories); }
public void SweetPropertyResultsInCorrectCaloriesForSmall() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Small; tea.AddSweetener(); Assert.Equal <uint>(16, tea.Calories); }
public void AddSweetenerShouldAddSugar() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); Assert.True(tea.Sweet); Assert.Contains <string>("Cane Sugar", tea.Ingredients); }
public void ShouldHaveCorrectSweetTeaCaloriesForMedium() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Medium; tea.AddSweetener(); Assert.Equal <uint>(32, tea.Calories); }
public void SweetPropertyResultsInCorrectCaloriesForLarge() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Large; tea.AddSweetener(); Assert.Equal <uint>(64, tea.Calories); }
public void SweetPropertyResultsInCorrectCaloriesForMedium() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Medium; tea.AddSweetener(); Assert.Equal <uint>(32, tea.Calories); }
public void SpecialShouldAddSweetner() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); Assert.Collection <string>(tea.Special, item => { Assert.Equal("Add Sweetener", item); }); }
public void ShouldHaveCorrectCaloriesAfteterRemovingSweetnerForSmall() { Tyrannotea tea = new Tyrannotea(); tea.AddSweetener(); tea.RemoveSweetener(); Assert.Equal <uint>(8, tea.Calories); }
public void ShouldHaveCorrectCaloriesAfteterRemovingSweetnerForLarge() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Large; tea.AddSweetener(); tea.RemoveSweetener(); Assert.Equal <uint>(32, tea.Calories); }
public void RemoveSweetShouldResultInCorrectCaloriesForLarge() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Large; tt.AddSweetener(); tt.RemoveSweetener(); Assert.Equal <uint>(32, tt.Calories); }
public void AddSweetenerShouldNotifyIngredientsChange() { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, "Ingredients", () => { tea.AddSweetener(); }); }
public void AddSweetenerShouldSpecialChange() { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, "Special", () => { tea.AddSweetener(); }); }
public void TyrannoteaAddSweetenerShouldNotifyPropertyDescription() { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, "Description", () => { tea.AddSweetener(); }); }
public void AddSweetenerShouldNotifyPropertyChange(string propertyName) { Tyrannotea t = new Tyrannotea(); Assert.PropertyChanged(t, propertyName, () => { t.AddSweetener(); }); }
public void RemoveSweetShouldResultInCorrectCaloriesForMedium() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Medium; tt.AddSweetener(); tt.RemoveSweetener(); Assert.Equal <uint>(16, tt.Calories); }
public void ShouldHaveCorrectIngredientsAfterAddingSweetener() { Tyrannotea t = new Tyrannotea(); t.AddSweetener(); Assert.Contains <string>("Water", t.Ingredients); Assert.Contains <string>("Tea", t.Ingredients); Assert.Contains <string>("Cane Sugar", t.Ingredients); Assert.Equal <int>(3, t.Ingredients.Count); }
public void ShouldHaveCorrectCaloriesForSmall() { Tyrannotea tea = new Tyrannotea(); tea.Size = Size.Medium; tea.Size = Size.Small; Assert.Equal <double>(8, tea.Calories); tea.AddSweetener(); Assert.Equal <double>(16, tea.Calories); }