From e048575b29f61430d2b2b9884ef3dbd2bad2db42 Mon Sep 17 00:00:00 2001 From: Matthieu MEZIL Date: Fri, 14 Apr 2023 23:25:23 -0700 Subject: [PATCH] Add error message when error message test fails --- src/Artifacts.UnitTests/ArtifactsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Artifacts.UnitTests/ArtifactsTests.cs b/src/Artifacts.UnitTests/ArtifactsTests.cs index 8d649664..a2a5bb9a 100644 --- a/src/Artifacts.UnitTests/ArtifactsTests.cs +++ b/src/Artifacts.UnitTests/ArtifactsTests.cs @@ -428,7 +428,7 @@ public void RenamedFilesWithIncorrectNumberShouldFail() .TryBuild(out bool result, out BuildOutput buildOutput); result.ShouldBeFalse(buildOutput.GetConsoleLog()); - (buildOutput.ErrorEvents.Single().Message == @"Artifact Include 'bin\Debug\foo.exe;bin\Debug\bar.dll' length does not match with RenamedFiles 'foo.test.exe'").ShouldBeTrue(); + (buildOutput.ErrorEvents.Single().Message == @"Artifact Include 'bin\Debug\foo.exe;bin\Debug\bar.dll' length does not match with RenamedFiles 'foo.test.exe'").ShouldBeTrue(buildOutput.ErrorEvents.First().Message); } } } \ No newline at end of file