public void test_strenght_latte()
        {
            Latte ins = new Latte(0);

            string strenght = ins.Strength();

            Assert.AreEqual("Weak", strenght);
        }
Exemple #2
0
        public void StrengthTestLatte()
        {
            //Arrange
            var latte = new Latte();
            //Act
            string strength = latte.Strength();

            //Assert
            Assert.AreSame("Weak", strength);
        }
        public void TestStrenghtLatte()
        {
            //Arrange
            Latte latte = new Latte(5);

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

            //Assert
            Assert.AreEqual("Weak", 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");
        }