public void IceTeaNoToppingsCostTest() { //Arrange var hotTea = new HotTea(false); //Act var cost = hotTea.Cost(); //Assert Assert.AreEqual(1.0, cost, nameof(hotTea.Cost)); }
public void HotTeaWithToppingsCostTest() { //Arrange var hotTea = new HotTea(true); hotTea.HasMilk = true; //Act var cost = hotTea.Cost(); //Assert Assert.AreEqual(2.0, cost, nameof(hotTea.Cost)); }