Ejemplo n.º 1
0
        public void CNCRMsgEStopConstructorTest()
        {
            CNCRMsgEStop target = new CNCRMsgEStop();

            Assert.AreEqual(CNCRMSG_TYPE.E_STOP, target.getMessageType());
            Assert.AreEqual(0x20, target.getMsgTypeByte());
        }
Ejemplo n.º 2
0
        public void toSerialTest()
        {
            CNCRMsgEStop target = new CNCRMsgEStop(); // TODO: Initialize to an appropriate value

            byte[] expected = { 0x21, 0x21 };         // TODO: Initialize to an appropriate value
            byte[] actual;
            actual = target.toSerial();
            Assert.AreEqual(expected.Length, actual.Length);
            Assert.AreEqual <byte>(expected[0], actual[0]);
            Assert.AreEqual <byte>(expected[1], actual[1]);
        }