Formatting
This commit is contained in:
parent
3f12f4d581
commit
99b1630caa
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ void testReflector(Reflector reflector) {
|
||||||
test('newInstance works', () {
|
test('newInstance works', () {
|
||||||
var type = container.reflector.reflectType(Pokemon);
|
var type = container.reflector.reflectType(Pokemon);
|
||||||
var instance =
|
var instance =
|
||||||
type.newInstance('changeName', [blaziken, 'Charizard']).reflectee as Pokemon;
|
type.newInstance('changeName', [blaziken, 'Charizard']).reflectee
|
||||||
|
as Pokemon;
|
||||||
print(instance);
|
print(instance);
|
||||||
expect(instance.name, 'Charizard');
|
expect(instance.name, 'Charizard');
|
||||||
expect(instance.type, PokemonType.fire);
|
expect(instance.type, PokemonType.fire);
|
||||||
|
|
Loading…
Reference in a new issue