Skip to content

Commit 4c101c3

Browse files
committed
test: 更新单元测试
1 parent fbf8488 commit 4c101c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/UnitTest/Services/BluetoothServiceTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public async Task RequestDevice_Ok()
2929
var val = await device.ReadValue("battery_service", "battery_level");
3030
Assert.Equal([0x31], val);
3131

32+
var v = await device.GetBatteryValue();
33+
Assert.Equal(0x31, v);
34+
3235
var mi = device.GetType().GetMethod("OnError");
3336
Assert.NotNull(mi);
3437
mi.Invoke(device, ["test"]);

0 commit comments

Comments
 (0)