public void CheckReadCommand1Test()
        {
            DemountSimulatorPlcCommunication privateTarget = DemountSimulatorPlcCommunication.Create();
            DemountSimulatorPlcCommunication_Accessor target = new DemountSimulatorPlcCommunication_Accessor(new PrivateObject(privateTarget, new PrivateType(typeof(DemountSimulatorPlcCommunication))));

            Assert.AreEqual<bool>(true, target.CheckForErrorReadCommand("\u000500FFCR000120260C", out errorCode));
            Assert.AreEqual<int>(-1, errorCode);
        }
        public void CheckWriteCommand4Test()
        {
            DemountSimulatorPlcCommunication privateTarget = DemountSimulatorPlcCommunication.Create();
            DemountSimulatorPlcCommunication_Accessor target = new DemountSimulatorPlcCommunication_Accessor(new PrivateObject(privateTarget, new PrivateType(typeof(DemountSimulatorPlcCommunication))));

            Assert.AreEqual<bool>(false, target.CheckForErrorWriteCommand("\u000500FFCR000146015555E1", out errorCode));
            Assert.AreEqual<int>(0x6, errorCode);
        }
        public void InitializeMemory1Test()
        {
            DemountSimulatorPlcCommunication privateTarget = DemountSimulatorPlcCommunication.Create();
            DemountSimulatorPlcCommunication_Accessor target = new DemountSimulatorPlcCommunication_Accessor(new PrivateObject(privateTarget, new PrivateType(typeof(DemountSimulatorPlcCommunication))));

            Assert.AreEqual<ushort>(3, target._memory._memory[0x145]);

            Assert.AreEqual<bool>(true, SimulatorHelper.CheckValuesInArray(target._memory._memory, 0x120, 0x129, 0));
            Assert.AreEqual<bool>(true, SimulatorHelper.CheckValuesInArray(target._memory._memory, 0x130, 0x134, 0));
            Assert.AreEqual<bool>(true, SimulatorHelper.CheckValuesInArray(target._memory._memory, 0x140, 0x144, 0));
        }