Пример #1
0
        public void toSerialTest_Z()
        {
            CNCRMsgSetSpeed target = new CNCRMsgSetSpeed(false, false, true, 300);

            byte[] expected = { 0x53, 0x00, 0x2D, 0x05, 0x7B };
            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]);
            }
        }