public void CNCRMsgToolCmdConstructorTest() { bool toolOn = false; // TODO: Initialize to an appropriate value CNCRMsgToolCmd target = new CNCRMsgToolCmd(toolOn); Assert.AreEqual(CNCRMSG_TYPE.TOOL_CMD, target.getMessageType()); Assert.AreEqual(0x70, target.getMsgTypeByte()); Assert.AreEqual(toolOn, target.isToolOn()); }
public void isToolOnTest_Off() { bool toolOn = false; CNCRMsgToolCmd target = new CNCRMsgToolCmd(toolOn); bool expected = false; bool actual; actual = target.isToolOn(); Assert.AreEqual(expected, actual); }
public void toSerialTest_ToolOff() { bool toolOn = false; CNCRMsgToolCmd target = new CNCRMsgToolCmd(toolOn); byte[] expected = { 0x71, 0x71 }; byte[] actual; actual = target.toSerial(); Assert.AreEqual(expected.Length, actual.Length); Assert.AreEqual(expected[0], actual[0]); Assert.AreEqual(expected[1], actual[1]); }