From 6b75748d4bafaf46ee9acd3c19b4f94301cf2741 Mon Sep 17 00:00:00 2001 From: theKBro Date: Thu, 1 Sep 2022 11:06:03 +0200 Subject: [PATCH] use correct object --- Test.LightweightIocContainer.Validation/IocValidatorTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test.LightweightIocContainer.Validation/IocValidatorTest.cs b/Test.LightweightIocContainer.Validation/IocValidatorTest.cs index 4a35639..47ef9f7 100644 --- a/Test.LightweightIocContainer.Validation/IocValidatorTest.cs +++ b/Test.LightweightIocContainer.Validation/IocValidatorTest.cs @@ -156,7 +156,7 @@ public class IocValidatorTest if (noMatchingConstructorFoundException.InnerExceptions[0] is not ConstructorNotMatchingException iTest2CtorNotMatchingException) { - Assert.Fail($"{nameof(aggregateException.InnerExceptions)} is not of type {nameof(ConstructorNotMatchingException)}"); + Assert.Fail($"{nameof(noMatchingConstructorFoundException.InnerExceptions)} is not of type {nameof(ConstructorNotMatchingException)}"); return; }