Exemplo n.º 1
0
        public void SpeicalShouldHaveSweet()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.Sweeten();
            Assert.Collection <string>(tea.Special,
                                       item =>
            {
                Assert.Equal("Add Cane Sugar", item);
            });
        }
Exemplo n.º 2
0
        public void ShouldHaveCorrectIngredients()
        {
            Tyrannotea tea = new Tyrannotea();

            Assert.Contains <string>("Water", tea.Ingredients);
            Assert.Contains <string>("Tea", tea.Ingredients);
            tea.AddLemon();
            Assert.Contains <string>("Lemon", tea.Ingredients);
            tea.Sweeten();
            Assert.Contains <string>("Cane Sugar", tea.Ingredients);
        }