platform/angel_container_generator/test/reflector_test.dart
2018-11-30 00:32:49 -05:00

21 lines
437 B
Dart

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;
}