From 15fb9c7d5bae9cda4c1d096f648b3091b26cd334 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Mon, 4 Nov 2019 20:03:02 +0100 Subject: [PATCH] #26: add unit test --- Test.LightweightIocContainer/IocContainerTest.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Test.LightweightIocContainer/IocContainerTest.cs b/Test.LightweightIocContainer/IocContainerTest.cs index daa5d37..23ed584 100644 --- a/Test.LightweightIocContainer/IocContainerTest.cs +++ b/Test.LightweightIocContainer/IocContainerTest.cs @@ -296,6 +296,13 @@ namespace Test.LightweightIocContainer Assert.AreNotEqual(resolvedTest, secondResolvedTest); } + [Test] + public void TestResolveNoMatchingConstructor() + { + _iocContainer.Register(); + Assert.Throws(() => _iocContainer.Resolve()); + } + [Test] public void TestResolveFactory() {