From 20f78594c4c9bcfe244d9b070ea50cb5840746cc Mon Sep 17 00:00:00 2001 From: theKBro Date: Thu, 1 Sep 2022 10:52:24 +0200 Subject: [PATCH] add failure message --- Test.LightweightIocContainer.Validation/IocValidatorTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test.LightweightIocContainer.Validation/IocValidatorTest.cs b/Test.LightweightIocContainer.Validation/IocValidatorTest.cs index 43c9daa..484bc40 100644 --- a/Test.LightweightIocContainer.Validation/IocValidatorTest.cs +++ b/Test.LightweightIocContainer.Validation/IocValidatorTest.cs @@ -150,13 +150,13 @@ public class IocValidatorTest if (aggregateException?.InnerExceptions[0] is not NoMatchingConstructorFoundException noMatchingConstructorFoundException) { - Assert.Fail(); + Assert.Fail("inner exception is not of type NoMatchingConstructorFoundException"); return; } if (noMatchingConstructorFoundException.InnerExceptions[0] is not ConstructorNotMatchingException iTest2CtorNotMatchingException) { - Assert.Fail(); + Assert.Fail("inner exception is not of type ConstructorNotMatchingException"); return; }