platform/angel_container_generator/test/reflector.dart

22 lines
452 B
Dart
Raw Normal View History

2018-08-21 16:09:37 +00:00
@GenerateReflector(types: [Artist])
library angel_container_generator_test;
import 'package:angel_container/angel_container.dart';
2018-08-21 16:44:54 +00:00
import 'package:test/test.dart';
2018-08-21 16:09:37 +00:00
2018-08-21 16:44:54 +00:00
part 'reflector.reflector.g.dart';
void main() {
var reflector = const AngelContainerGeneratorTestReflector();
group('reflectClass', () {
var mirror = reflector.reflectClass(Artist);
2018-08-21 16:09:37 +00:00
2018-08-21 16:44:54 +00:00
test('name', () {
expect(mirror.name, 'Artist');
});
});
2018-08-21 16:09:37 +00:00
}
2018-08-21 16:44:54 +00:00
class Artist {}