import 'package:angel_framework/angel_framework.dart'; import 'package:test/test.dart'; class Foo { String name; Foo(String this.name); } main() { group('Utilities', () { Angel app; setUp(() { app = new Angel(); }); tearDown(() async { await app.close(); app = null; }); test('can use app.properties like members', () { app.configuration['hello'] = 'world'; app.configuration['foo'] = () => 'bar'; app.configuration['Foo'] = new Foo('bar'); expect(app.hello, equals('world')); expect(app.foo(), equals('bar')); expect(app.Foo.name, equals('bar')); }); }); }