From f67e67b93c91e2879fa178e2f75265a57a204233 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Mon, 27 Jun 2016 20:43:12 +0200 Subject: [PATCH] Fix test to properly test the variadic variant --- test/poodinis/containertest.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/poodinis/containertest.d b/test/poodinis/containertest.d index 824d54f..7fbbf0f 100644 --- a/test/poodinis/containertest.d +++ b/test/poodinis/containertest.d @@ -528,10 +528,10 @@ version(unittest) { container.resolve!TestClass; } - // Test registering type with options in the DEPRECATED way + // Test registering type with option doNotAddConcreteTypeRegistration as variadic (DEPRECATED) unittest { shared(DependencyContainer) container = new DependencyContainer(); - container.register!(TestInterface, TestClass)(RegistrationOption.doNotAddConcreteTypeRegistration); + container.register!(TestInterface, TestClass)(RegistrationOption.none, RegistrationOption.doNotAddConcreteTypeRegistration); auto firstInstance = container.resolve!TestInterface; assertThrown!ResolveException(container.resolve!TestClass);