public void ShouldRemoveSweet() { Tyrannotea tea = new Tyrannotea(); tea.RemoveSweet(); Assert.False(tea.Sweet); Assert.Equal <double>(8, tea.Calories); }
public void FalseSweetPropertyToRightCaloriesForSizeLarge() { Tyrannotea tea = new Tyrannotea(); tea.AddSweet(); tea.RemoveSweet(); tea.Size = Size.Large; Assert.Equal <uint>(32, tea.Calories); }
public void FalseSweetPropertyToRightCaloriesForSizeMedium() { Tyrannotea tea = new Tyrannotea(); tea.AddSweet(); tea.RemoveSweet(); tea.Size = Size.Medium; Assert.Equal <uint>(16, tea.Calories); }
public void SweetToUnsweetShouldHaveCorrectCaloriesForLarge() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Large; tt.AddSweet(); tt.RemoveSweet(); Assert.Equal <uint>(32, tt.Calories); }
public void SweetToUnsweetShouldHaveCorrectCaloriesForMedium() { Tyrannotea tt = new Tyrannotea(); tt.Size = Size.Medium; tt.AddSweet(); tt.RemoveSweet(); Assert.Equal <uint>(16, tt.Calories); }
public void RemoveSweetShouldNotifyOfPropertyChanged(string propertyName) { Tyrannotea tea = new Tyrannotea(); Assert.PropertyChanged(tea, propertyName, () => { tea.RemoveSweet(); }); }
public void RemoveSweetShouldNotifyDescriptionChange() { Tyrannotea tt = new Tyrannotea(); Assert.PropertyChanged(tt, "Description", () => { tt.RemoveSweet(); }); }
public void RemovingSweetPropertyShouldDecreaseCalories() { Tyrannotea tea = new Tyrannotea(); tea.AddSweet(); tea.RemoveSweet(); Assert.Equal <uint>(8, tea.Calories); tea.Size = Size.Medium; Assert.Equal <uint>(16, tea.Calories); tea.Size = Size.Large; Assert.Equal <uint>(32, tea.Calories); }