public void getCommandCountTest() { CNCRMsgRequestCommands target = new CNCRMsgRequestCommands(128); int expected = 128; int actual; actual = target.getCommandCount(); Assert.AreEqual(expected, actual); }
public void CNCRMsgRequestCommandsConstructorTest2() { byte commandCount = 128; CNCRMsgRequestCommands target = new CNCRMsgRequestCommands(commandCount); Assert.AreEqual(CNCRMSG_TYPE.REQUEST_COMMAND, target.getMessageType()); Assert.AreEqual(0x30, target.getMsgTypeByte()); Assert.AreEqual(commandCount, target.getCommandCount()); }
public void CNCRMsgRequestCommandsConstructorTest() { byte[] msgBytes = { 0x30, 0xFF, 0xCF }; // TODO: Initialize to an appropriate value CNCRMsgRequestCommands target = new CNCRMsgRequestCommands(msgBytes); Assert.AreEqual(CNCRMSG_TYPE.REQUEST_COMMAND, target.getMessageType()); Assert.AreEqual(0x30, target.getMsgTypeByte()); Assert.AreEqual(128, target.getCommandCount()); }