|
|
@ -13,10 +13,10 @@ namespace Exercice2 |
|
|
|
|
|
|
|
ISweetener sugar = new Erythriol(0.5); |
|
|
|
tea.Sweeten(sugar); |
|
|
|
Debug.Assert(tea.GetSweetenersList().Count == 1, "We put a single sweetener type"); |
|
|
|
|
|
|
|
IBeverage coffee = new Coffee(CoffeeType.ColdBrew); |
|
|
|
Debug.Assert(coffee.GetTemperature() < (float)5, "Coldbrew coffee temperature needs be below 5C"); |
|
|
|
Debug.Assert(tea.GetSweetenersList().Count == 2, "We put a single sweetener type"); |
|
|
|
|
|
|
|
p">/*IBeverage coffee = new Coffee(CoffeeType.ColdBrew); |
|
|
|
Debug.Assert(coffee.GetTemperature() <= (float)5, "Coldbrew coffee temperature needs be below 5C"); |
|
|
|
|
|
|
|
IBeverage horror = new Mix(tea, coffee); |
|
|
|
Debug.Assert(horror.GetTemperature() < (float)55, "Horror temperature needs be average of tea and coffee"); |
|
|
@ -24,7 +24,7 @@ namespace Exercice2 |
|
|
|
|
|
|
|
ISweetener coffeeSugar = new Erythriol(0.5); |
|
|
|
coffee.Sweeten(coffeeSugar); |
|
|
|
Debug.Assert(horror.GetSweetenersList().Count == 1, "We put a single sweetener type, just more of it"); |
|
|
|
Debug.Assert(horror.GetSweetenersList().Count == 1, "We put a single sweetener type, just more of it");*/ |
|
|
|
} |
|
|
|
} |
|
|
|
} |