From 111623166ec1fb5689631d218a1b63ef61db1f19 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Wed, 3 Feb 2016 23:51:19 +0100 Subject: [PATCH] Add test to verify registerBeforeResolving fails for interfaces --- test/poodinis/containertest.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/poodinis/containertest.d b/test/poodinis/containertest.d index 2080aa4..209a933 100644 --- a/test/poodinis/containertest.d +++ b/test/poodinis/containertest.d @@ -649,4 +649,10 @@ version(unittest) { container.unsetPersistentResolveOptions(); assertThrown!ResolveException(container.resolve!TestClass); } + + // Test ResolveOption registerBeforeResolving fails for interfaces + unittest { + shared(DependencyContainer) container = new DependencyContainer(); + assertThrown!ResolveException(container.resolve!TestInterface([ResolveOption.registerBeforeResolving])); + } }