public void TestAge() { Recipe testRecipe = new Recipe(); FermVessel testFermVessel = new FermVessel(); int starting = testRecipe.time; testFermVessel.Add(testRecipe.output, testRecipe.brewQty, testRecipe.time); testFermVessel.Age(1); Assert.AreEqual(starting - 1, testFermVessel.timeRemaining); }
public void TestEmpty() { Recipe testRecipe = new Recipe(); FermVessel testFermVessel = new FermVessel(); int starting = testRecipe.time; testFermVessel.Add(testRecipe.output, testRecipe.brewQty, testRecipe.time); testFermVessel.Empty(); Assert.IsTrue(testFermVessel.isEmpty()); }
public void TestAdd() { Recipe testRecipe = new Recipe(); FermVessel testFermVessel = new FermVessel(); // Able to add recipe successfully? bool success = testFermVessel.Add(testRecipe.output, testRecipe.brewQty, testRecipe.time); Assert.IsTrue(success); Assert.AreEqual(testRecipe.output, testFermVessel.storedBrew); }