Initial commit

This commit is contained in:
2022-01-25 20:43:07 +01:00
commit d565c764e2
45 changed files with 1895 additions and 0 deletions

23
test/moxdns_test.dart Normal file
View File

@@ -0,0 +1,23 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:moxdns/moxdns.dart';
void main() {
const MethodChannel channel = MethodChannel('moxdns');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await Moxdns.platformVersion, '42');
});
}