Skip to content

Commit e048575

Browse files
committed
Add error message when error message test fails
1 parent d6ce057 commit e048575

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Artifacts.UnitTests/ArtifactsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public void RenamedFilesWithIncorrectNumberShouldFail()
428428
.TryBuild(out bool result, out BuildOutput buildOutput);
429429

430430
result.ShouldBeFalse(buildOutput.GetConsoleLog());
431-
(buildOutput.ErrorEvents.Single().Message == @"Artifact Include 'bin\Debug\foo.exe;bin\Debug\bar.dll' length does not match with RenamedFiles 'foo.test.exe'").ShouldBeTrue();
431+
(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);
432432
}
433433
}
434434
}

0 commit comments

Comments
 (0)