public void CNCRMsgPingConstructorTest() { CNCRMsgPing target = new CNCRMsgPing(); Assert.AreEqual(CNCRMSG_TYPE.PING, target.getMessageType()); Assert.AreEqual(0x00, target.getMsgTypeByte()); }
public void toSerialTest() { CNCRMsgPing target = new CNCRMsgPing(); // TODO: Initialize to an appropriate value byte[] expected = { 0x00, 0x00 }; // TODO: Initialize to an appropriate value byte[] actual; actual = target.toSerial(); Assert.AreEqual(expected.Length, actual.Length); for (int i = 0; i < expected.Length; i++) { Assert.AreEqual <byte>(expected[i], actual[i]); } }