import 'package:angel_container/angel_container.dart'; import 'package:test/test.dart'; void main() { test('returns the same instance', () { var container = Container(const EmptyReflector()) ..registerLazySingleton((_) => Dummy('a')); var first = container.make(); expect(container.make(), first); }); } class Dummy { final String s; Dummy(this.s); }