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() {