Exemple #1
0
        public void TestMakeBatchWaitForFinish()
        {
            PLCController plc      = new PLCController("PLCFullTankMixStarted.txt");
            Batch         newBatch = BatchController.MakeBatch_EmptyTank(plc, _type4);

            BatchController.MakeBatchWaitForFinish(plc, newBatch);

            Assert.IsFalse(plc.CheckMotorIsOn());
            Assert.IsFalse(plc.CheckFurnaceIsOn());
            Assert.IsTrue(plc.CheckMainTankIsEmpty());
            Assert.IsFalse(plc.CheckDischargeGateIsOpen());
            Assert.IsFalse(plc.CheckIsFinishedAcknowledged());
        }
Exemple #2
0
 public void TestIsFinishedAcknowledged()
 {
     Assert.IsFalse(_plc.CheckIsFinishedAcknowledged());
 }