| 123456789101112131415161718192021222324252627 |
- import 'package:flutter_test/flutter_test.dart';
- import 'package:sensor/sensor.dart';
- import 'package:plugin_platform_interface/plugin_platform_interface.dart';
- // class MockSensorPlatform
- // with MockPlatformInterfaceMixin
- // implements SensorPlatform {
- //
- // @override
- // Future<String?> getPlatformVersion() => Future.value('42');
- // }
- //
- // void main() {
- // final SensorPlatform initialPlatform = SensorPlatform.instance;
- //
- // test('$MethodChannelSensor is the default instance', () {
- // expect(initialPlatform, isInstanceOf<MethodChannelSensor>());
- // });
- //
- // test('getPlatformVersion', () async {
- // Sensor sensorPlugin = Sensor();
- // MockSensorPlatform fakePlatform = MockSensorPlatform();
- // SensorPlatform.instance = fakePlatform;
- //
- // expect(await sensorPlugin.getPlatformVersion(), '42');
- // });
- // }
|