From c4c57da9eb31f7e287046e3774be1582cb716a52 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Sun, 22 Jun 2014 17:24:08 +0200 Subject: [PATCH] Clear all registrations after test is done --- test/poodinis/autowiretest.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/poodinis/autowiretest.d b/test/poodinis/autowiretest.d index b8e78b9..7aa896d 100644 --- a/test/poodinis/autowiretest.d +++ b/test/poodinis/autowiretest.d @@ -105,5 +105,7 @@ version(unittest) { auto resolvedComponentF = container.resolve!ComponentF; assert(resolvedComponentF.componentA is autowiredComponentA, "Resolving instance of ComponentF rewired members"); + + container.clearAllRegistrations(); } } \ No newline at end of file