From 85c31574acd1ffcd93a840e0ff2c7406a9997d46 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Wed, 10 Feb 2016 00:24:45 +0100 Subject: [PATCH] Cleanup whitespace --- test/poodinis/autowiretest.d | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/poodinis/autowiretest.d b/test/poodinis/autowiretest.d index 1c0d0fa..3854180 100644 --- a/test/poodinis/autowiretest.d +++ b/test/poodinis/autowiretest.d @@ -22,7 +22,7 @@ version(unittest) { class ComponentD { public @Autowire InterfaceA componentC = null; - private @Autowire InterfaceA privateComponentC = null; + private @Autowire InterfaceA privateComponentC = null; } class DummyAttribute{}; @@ -91,14 +91,14 @@ version(unittest) { assert(componentD.componentC !is null, "Autowirable dependency failed to autowire"); } - // Test autowiring private members - unittest { - shared(DependencyContainer) container = new DependencyContainer(); - container.register!(InterfaceA, ComponentC); - auto componentD = new ComponentD(); - container.autowire!(ComponentD)(componentD); - assert(componentD.privateComponentC is componentD.componentC, "Autowire private dependency failed"); - } + // Test autowiring private members + unittest { + shared(DependencyContainer) container = new DependencyContainer(); + container.register!(InterfaceA, ComponentC); + auto componentD = new ComponentD(); + container.autowire!(ComponentD)(componentD); + assert(componentD.privateComponentC is componentD.componentC, "Autowire private dependency failed"); + } // Test autowiring will only happen once unittest { @@ -208,10 +208,10 @@ version(unittest) { container.register!ComponentA; container.register!ComponentB; container.register!ComponentZ; - + auto instance = new ComponentZ(); container.autowire(instance); - + assert(instance.componentA !is null); } }