Skip to content

Commit

Permalink
Add error message when error message test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuMEZIL committed Apr 15, 2023
1 parent d6ce057 commit e048575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Artifacts.UnitTests/ArtifactsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit e048575

Please sign in to comment.