@@ -42,15 +42,15 @@ public void TestStopDeviceCmd()
42
42
var expected =
43
43
new List < ( byte [ ] , uint ) > ( )
44
44
{
45
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
45
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
46
46
} ;
47
47
48
48
testUtil . TestDeviceMessage ( new SingleMotorVibrateCmd ( 4 , 0.5 ) , expected , false ) ;
49
49
50
50
expected =
51
51
new List < ( byte [ ] , uint ) > ( )
52
52
{
53
- ( new byte [ ] { 0x0f , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
53
+ ( new byte [ ] { 0x0f , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
54
54
} ;
55
55
56
56
testUtil . TestDeviceMessage ( new StopDeviceCmd ( 4 ) , expected , false ) ;
@@ -62,7 +62,7 @@ public void TestSingleMotorVibrateCmd()
62
62
var expected =
63
63
new List < ( byte [ ] , uint ) > ( )
64
64
{
65
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
65
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
66
66
} ;
67
67
68
68
testUtil . TestDeviceMessage ( new SingleMotorVibrateCmd ( 4 , 0.5 ) , expected , false ) ;
@@ -74,7 +74,7 @@ public void TestVibrateCmd()
74
74
var expected =
75
75
new List < ( byte [ ] , uint ) > ( )
76
76
{
77
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
77
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
78
78
} ;
79
79
80
80
testUtil . TestDeviceMessage ( VibrateCmd . Create ( 4 , 1 , 0.5 , 1 ) , expected , false ) ;
@@ -119,15 +119,15 @@ public void TestStopDeviceCmd()
119
119
var expected =
120
120
new List < ( byte [ ] , uint ) > ( )
121
121
{
122
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
122
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
123
123
} ;
124
124
125
125
testUtil . TestDeviceMessage ( new SingleMotorVibrateCmd ( 4 , 0.5 ) , expected , false ) ;
126
126
127
127
expected =
128
128
new List < ( byte [ ] , uint ) > ( )
129
129
{
130
- ( new byte [ ] { 0x0f , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
130
+ ( new byte [ ] { 0x0f , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
131
131
} ;
132
132
133
133
testUtil . TestDeviceMessage ( new StopDeviceCmd ( 4 ) , expected , false ) ;
@@ -139,7 +139,7 @@ public void TestSingleMotorVibrateCmd()
139
139
var expected =
140
140
new List < ( byte [ ] , uint ) > ( )
141
141
{
142
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
142
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x88 , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
143
143
} ;
144
144
145
145
testUtil . TestDeviceMessage ( new SingleMotorVibrateCmd ( 4 , 0.5 ) , expected , false ) ;
@@ -151,10 +151,10 @@ public void TestVibrateCmd()
151
151
var expected =
152
152
new List < ( byte [ ] , uint ) > ( )
153
153
{
154
- ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x4B , 0x00 , 0x03 , 0x00 , 0x00 } , testUtil . NoCharacteristic ) ,
154
+ ( new byte [ ] { 0x0f , 0x03 , 0x00 , 0x4B , 0x00 , 0x03 , 0x00 , 0x00 } , ( uint ) WeVibeBluetoothInfo . Chrs . Tx ) ,
155
155
} ;
156
156
157
- testUtil . TestDeviceMessage ( VibrateCmd . Create ( 4 , 1 , new double [ ] { 0.25 , 0.75 } , 2 ) , expected , false ) ;
157
+ testUtil . TestDeviceMessage ( VibrateCmd . Create ( 4 , 1 , new [ ] { 0.25 , 0.75 } , 2 ) , expected , false ) ;
158
158
}
159
159
160
160
[ Test ]
0 commit comments