25 lines
629 B
Dart
25 lines
629 B
Dart
import 'package:flutter/services.dart';
|
|
import 'package:icdevicemanager_flutter/ic_bluetooth_sdk_method_channel.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
|
|
void main() {
|
|
MethodChannelIcBluetoothSdk platform = MethodChannelIcBluetoothSdk();
|
|
const MethodChannel channel = MethodChannel('ic_bluetooth_sdk');
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
setUp(() {
|
|
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
|
return '42';
|
|
});
|
|
});
|
|
|
|
tearDown(() {
|
|
channel.setMockMethodCallHandler(null);
|
|
});
|
|
|
|
test('getPlatformVersion', () async {
|
|
});
|
|
}
|