public void MakeDrink_CoffeeWithMilk_ReturnsCorrectString() // Testa metoden för kaffe med mjölk. Uppgift 2(b)
 {
     // Arrange
     var coffeemaker = new CoffeeMaker();
     var coffeeWithMilk = new Coffee(true, false));
     // Act
     var resultString = coffeemaker.MakeDrink(coffeeWithMilk);
     // Assert
     StringAssert.Contains("Coffee with milk", resultString);
 }
Exemplo n.º 2
0
    public void Test_MakeCoffeeWithMilk_Succeeds()
    {
        // Arrange
        var coffemaker = new CoffeeMaker();

        // Act
        string res = coffemaker.MakeDrink(new Coffee(true, false));

        // Assert
        StringAssert.Contains("Coffee with milk", res);
    }