mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Add test to verify registerBeforeResolving fails for interfaces
This commit is contained in:
parent
bf4360d3df
commit
111623166e
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue