import 'package:flutter_test/flutter_test.dart';
import 'package:clx_map_navigation/core/clx_map_navigation.dart';
import 'package:clx_map_navigation/core/clx_map_navigation_platform_interface.dart';
import 'package:clx_map_navigation/core/clx_map_navigation_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockClxMapNavigationPlatform 
    with MockPlatformInterfaceMixin
    implements ClxMapNavigationPlatform {

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

void main() {
  final ClxMapNavigationPlatform initialPlatform = ClxMapNavigationPlatform.instance;

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

  test('getPlatformVersion', () async {
    ClxMapNavigation clxMapNavigationPlugin = ClxMapNavigation();
    MockClxMapNavigationPlatform fakePlatform = MockClxMapNavigationPlatform();
    ClxMapNavigationPlatform.instance = fakePlatform;
  
    expect(await clxMapNavigationPlugin.getPlatformVersion(), '42');
  });
}