Clear all registrations after test is done

This commit is contained in:
Mike Bierlee 2014-06-22 17:24:08 +02:00
parent 627d165d6f
commit c4c57da9eb

View file

@ -105,5 +105,7 @@ version(unittest) {
auto resolvedComponentF = container.resolve!ComponentF; auto resolvedComponentF = container.resolve!ComponentF;
assert(resolvedComponentF.componentA is autowiredComponentA, "Resolving instance of ComponentF rewired members"); assert(resolvedComponentF.componentA is autowiredComponentA, "Resolving instance of ComponentF rewired members");
container.clearAllRegistrations();
} }
} }