public void TestMakeBatchStartMixing() { PLCController plc = new PLCController("PLCFullTank2.txt"); BatchController.MakeBatchStart(plc); Assert.IsTrue(plc.CheckMotorIsOn()); Assert.IsTrue(plc.CheckFurnaceIsOn()); }
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()); }
public void TestCheckMotorIsOn() { Assert.IsFalse(_plc.CheckMotorIsOn()); }