public void CNCRMsgStartQueueConstructorTest() { CNCRMsgStartQueue target = new CNCRMsgStartQueue(false); Assert.AreEqual(CNCRMSG_TYPE.START_QUEUE, target.getMessageType()); Assert.AreEqual(0x40, target.getMsgTypeByte()); }
public void toSerialTest() { CNCRMsgStartQueue target = new CNCRMsgStartQueue(false); byte[] expected = { 0x41, 0x41 }; byte[] actual; actual = target.toSerial(); Assert.AreEqual(expected.Length, actual.Length); Assert.AreEqual(expected[0], actual[0]); Assert.AreEqual(expected[1], actual[1]); }