platform/angel_container_generator/test/reflector_test.dart

22 lines
437 B
Dart
Raw Normal View History

2018-11-30 05:32:49 +00:00
import 'package:angel_container_generator/angel_container_generator.dart';
import 'package:test/test.dart';
import 'reflector_test.reflectable.dart';
void main() {
var reflector = const GeneratedReflector();
initializeReflectable();
group('reflectClass', () {
var mirror = reflector.reflectClass(Artist);
test('name', () {
expect(mirror.name, 'Artist');
});
});
}
@contained
class Artist {
String name;
}