contants_select_test.dart 1.1 KB
// import 'package:flutter_test/flutter_test.dart';
// import 'package:contants_select/contants_select.dart';
// import 'package:contants_select/contants_select_platform_interface.dart';
// import 'package:contants_select/contants_select_method_channel.dart';
// import 'package:plugin_platform_interface/plugin_platform_interface.dart';

// class MockContantsSelectPlatform
//     with MockPlatformInterfaceMixin
//     implements ContantsSelectPlatform {

//   @override
//   Future<String?> getPlatformVersion() => Future.value('42');
// }

// void main() {
//   final ContantsSelectPlatform initialPlatform = ContantsSelectPlatform.instance;

//   test('$MethodChannelContantsSelect is the default instance', () {
//     expect(initialPlatform, isInstanceOf<MethodChannelContantsSelect>());
//   });

//   test('getPlatformVersion', () async {
//     ContantsSelect contantsSelectPlugin = ContantsSelect();
//     MockContantsSelectPlatform fakePlatform = MockContantsSelectPlatform();
//     ContantsSelectPlatform.instance = fakePlatform;

//     expect(await contantsSelectPlugin.getPlatformVersion(), '42');
//   });
// }