Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
        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);
        }