diff --git a/test/Microsoft.DotNet.Tools.Compiler.Tests/CompilerTests.cs b/test/Microsoft.DotNet.Tools.Compiler.Tests/CompilerTests.cs index ef9b18a55..961e074a1 100644 --- a/test/Microsoft.DotNet.Tools.Compiler.Tests/CompilerTests.cs +++ b/test/Microsoft.DotNet.Tools.Compiler.Tests/CompilerTests.cs @@ -54,7 +54,7 @@ namespace Microsoft.DotNet.Tools.Publish.Tests var buildCmd = new BuildCommand(testProject, output: outputDir); var result = buildCmd.ExecuteWithCapturedOutput(); result.Should().Pass(); - Assert.Contains("CA1018", result.StdErr); + Assert.Contains("CA1018", result.StdOut); } private void CopyProjectToTempDir(string projectDir, TempDirectory tempDir)