import 'package:flutter_test/flutter_test.dart';
import 'package:im_log_sdk/im_log_sdk_platform_interface.dart';
import 'package:im_log_sdk/im_log_sdk_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockImLogSdkPlatform
    with MockPlatformInterfaceMixin
    implements ImLogSdkPlatform {
  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

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

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

  test('getPlatformVersion', () async {
    MockImLogSdkPlatform fakePlatform = MockImLogSdkPlatform();
    ImLogSdkPlatform.instance = fakePlatform;
  });
}
