public void TestInvalidVibrateCmd() { testUtil.TestInvalidDeviceMessage(RotateCmd.Create(4, 1, 0.5, true, 0)); testUtil.TestInvalidDeviceMessage(RotateCmd.Create(4, 1, 0.5, true, 2)); testUtil.TestInvalidDeviceMessage( new VibrateCmd(4, new List <VibrateCmd.VibrateSubcommand>() { new VibrateCmd.VibrateSubcommand(0xffffffff, 0.5), })); }
public void TestInvalidVibrateCmd() { foreach (var name in _deviceNames) { testUtil = new BluetoothDeviceTestUtils <VorzeSABluetoothInfo>(); testUtil.SetupTest(name); testUtil.TestInvalidDeviceMessage(RotateCmd.Create(4, 1, 0.5, false, 0)); testUtil.TestInvalidDeviceMessage(RotateCmd.Create(4, 1, 0.5, false, 2)); testUtil.TestInvalidDeviceMessage( new RotateCmd(4, new List <RotateCmd.RotateSubcommand>() { new RotateCmd.RotateSubcommand(0xffffffff, 0.5, true), })); } }
public void TestInvalidVectorCmdTooManyFeatures() { var msg = LinearCmd.Create(4, 0, 500, 0.75, 2); testUtil.TestInvalidDeviceMessage(msg); }