public void TestSingleMotorVibrateCmd() { var expected = new List <(byte[], uint)>() { (new byte[] { 0x03, 0xff }, (uint)VibratissimoBluetoothInfo.Chrs.TxMode), (new byte[] { 0x80, 0x00 }, (uint)VibratissimoBluetoothInfo.Chrs.TxSpeed), }; testUtil.TestDeviceMessage(new SingleMotorVibrateCmd(4, 0.5), expected, false); testUtil.TestDeviceMessageNoop(new SingleMotorVibrateCmd(4, 0.5)); expected = new List <(byte[], uint)>() { (new byte[] { 0x03, 0xff }, (uint)VibratissimoBluetoothInfo.Chrs.TxMode), (new byte[] { 0xff, 0x00 }, (uint)VibratissimoBluetoothInfo.Chrs.TxSpeed), }; testUtil.TestDeviceMessage(new SingleMotorVibrateCmd(4, 1), expected, false); }