public void CNCRMsgCmdAckConstructorTest1() { byte[] msgBytes = { 0x12, 0xFF, 0xED }; CNCRMsgCmdAck target = new CNCRMsgCmdAck(msgBytes); Assert.AreEqual(true, target.getError()); Assert.AreEqual(127, target.getFirmware()); }
public void CNCRMsgCmdAckConstructorTest_ErrBadFW() { bool isError = true; byte firmware = 128; CNCRMsgCmdAck target = new CNCRMsgCmdAck(isError, firmware); Assert.AreEqual(isError, target.getError()); Assert.AreEqual(firmware, target.getFirmware()); }
public void getFirmwareTest() { CNCRMsgCmdAck target = new CNCRMsgCmdAck(true, 127); // TODO: Initialize to an appropriate value byte expected = 127; // TODO: Initialize to an appropriate value byte actual; actual = target.getFirmware(); Assert.AreEqual<byte>(expected, actual); }
public void CNCRMsgCmdAckConstructorTest_valid() { bool isError = false; byte firmware = 0; CNCRMsgCmdAck target = new CNCRMsgCmdAck(isError, firmware); Assert.AreEqual(isError, target.getError()); Assert.AreEqual(firmware, target.getFirmware()); }