Add test to verify registerBeforeResolving fails for interfaces

This commit is contained in:
Mike Bierlee 2016-02-03 23:51:19 +01:00
parent bf4360d3df
commit 111623166e

View file

@ -649,4 +649,10 @@ version(unittest) {
container.unsetPersistentResolveOptions(); container.unsetPersistentResolveOptions();
assertThrown!ResolveException(container.resolve!TestClass); assertThrown!ResolveException(container.resolve!TestClass);
} }
// Test ResolveOption registerBeforeResolving fails for interfaces
unittest {
shared(DependencyContainer) container = new DependencyContainer();
assertThrown!ResolveException(container.resolve!TestInterface([ResolveOption.registerBeforeResolving]));
}
} }