Exemplo n.º 1
0
        public void TestStrenghtFlatWhite()
        {
            //Arrange
            FlatWhite flatWhite = new FlatWhite(5);

            //Act
            string actualStrenght = flatWhite.Strength();

            //Assert
            Assert.AreEqual("Medium", actualStrenght);
        }
        public void StrengthTestForAllCoffee()
        {
            Latte       latte       = new Latte(1, CoffeeType.Akmel);
            Cortado     cortado     = new Cortado(1, CoffeeType.Akmel);
            BlackCoffee blackCoffee = new BlackCoffee(1, CoffeeType.Akmel);
            FlatWhite   flatWhite   = new FlatWhite(1, CoffeeType.Akmel);

            string strengthOfLatte       = latte.Strength();
            string strengthOfCortado     = cortado.Strength();
            string strengthOfBlackCoffee = blackCoffee.Strength();
            string strengthOfFlatWhite   = flatWhite.Strength();

            Assert.AreEqual(strengthOfLatte, "Weak");
            Assert.AreEqual(strengthOfCortado, "Medium");
            Assert.AreEqual(strengthOfBlackCoffee, "Strong");
            Assert.AreEqual(strengthOfFlatWhite, "Medium");
        }