public void test_cortado() { Cortado ins = new Cortado(7); string strenght = ins.Strength(); Assert.AreEqual("Medium", strenght); }
public void StrengthTestCortado() { //Arrange var cortado = new Cortado(); //Act string strength = cortado.Strength(); //Assert Assert.AreSame("Medium", strength); }
public void TestCortadoStrength() { //Arrange Cortado cortado = new Cortado(0, Coffee.SpiceBlendEnum.ESPRESSO); //Act string strength = cortado.Strength(); //Assert Assert.AreEqual("Medium", strength); }
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"); }