Beispiel #1
0
        public void ShouldSetSweetPropertyToTrue()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddCaneSugar();
            Assert.True(tea.sweet);
        }
Beispiel #2
0
        public void ShouldHaveCorrectIngredientsAddSweet()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddCaneSugar();
            Assert.Contains <string>("Water", tea.Ingredients);
            Assert.Contains <string>("Tea", tea.Ingredients);
            Assert.Contains <string>("Cane Sugar", tea.Ingredients);
        }
Beispiel #3
0
        public void ShouldHaveCorrectCaloriesAfterAddingSweetLarge()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddCaneSugar();
            tea.Size = Size.Medium;
            tea.Size = Size.Large;
            Assert.Equal <uint>(64, tea.Calories);
        }
Beispiel #4
0
        public void ShouldHaveCorrectCaloriesAfterAddingSweetSmall()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddCaneSugar();
            tea.Size = Size.Large;
            tea.Size = Size.Small;
            Assert.Equal <uint>(16, tea.Calories);
        }
Beispiel #5
0
        public void ShouldResultInCorrectCaloriesAfterSettingSweetFromTrueToFalseLarge()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddCaneSugar();
            tea.Sweet = false;
            tea.Size  = Size.Medium;
            tea.Size  = Size.Large;
            Assert.Equal <uint>(32, tea.Calories);
        }