599 references to StdOut
ArgumentForwarding.Tests (6)
ArgumentForwardingTests.cs (5)
174Console.WriteLine($"STDOUT: {commandResult.StdOut}"); 178commandResult.ExitCode.Should().Be(0, $"STDOUT: {commandResult.StdOut} STDERR: {commandResult.StdErr}"); 180return ParseReflectorOutput(commandResult.StdOut); 199Console.WriteLine(commandResult.StdOut); 204return ParseReflectorCmdOutput(commandResult.StdOut);
Program.cs (1)
76Console.WriteLine(result.StdOut);
containerize.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
dotnet (1)
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
86commandOutput = commandResult.StdOut + Environment.NewLine + commandResult.StdErr;
dotnet.Tests (354)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (1)
167cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(expectedBuildSummary);
CommandTests\Build\GivenDotnetBuildBuildsDcproj.cs (1)
28cmd.StdOut.Should().ContainVisuallySameFragment(expectedBuildSummary);
CommandTests\Help\GivenThatIWantToShowHelpForDotnetCommand.cs (4)
70cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(HelpText); 79cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(HelpText); 90cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(HelpText); 103cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(HelpText);
CommandTests\Help\GivenThatIWantToShowHelpForDotnetHelpCommand.cs (1)
35cmd.StdOut.Should().ContainVisuallySameFragmentIfNotLocalized(HelpText);
CommandTests\MSBuild\GivenDotnetMSBuildBuildsProjects.cs (3)
65result.StdOut.Should().Contain(MSBuildHelpText); 93result.StdOut.Should().ContainVisuallySameFragment("NU1101"); 107result.StdOut.Should().Contain(AppArgumentsText);
CommandTests\NuGet\GivenANuGetCommand.cs (1)
174var updatedPackageVersionString = JObject.Parse(listPackageCommandResult.StdOut)
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (2)
30cmd.StdOut.Should().Contain($"PackageReference for package '{packageName}' version '{packageVersion}' " + 288cmd.StdOut.Should().Contain($"PackageReference for package '{packageName}' version '{packageVersion}' " +
CommandTests\Package\Remove\GivenDotnetRemovePackage.cs (2)
52cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory())); 85remove.StdOut.Should().Contain($"Removing PackageReference for package '{packageName}' from project '{projectDirectory + Path.DirectorySeparatorChar}TestAppSimple.csproj'.");
CommandTests\Reference\Add\GivenDotnetAddReference.cs (30)
107cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory(), "FRAMEWORK")); 136cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 164cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 178cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 191cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 228cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 246cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 269cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 291cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); ; 313cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 335cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 357cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"ValidRef\ValidRef.csproj")); 375cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"..\Lib\Lib.csproj")); 395cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"ValidRef\ValidRef.csproj")); 410cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"..\Lib\Lib.csproj")); 425cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"..\Lib\Lib.csproj")); 440cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"..\ValidRef\ValidRef.csproj")); 457cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAlreadyHasAreference, @"..\Lib\Lib.csproj")); 472cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, "..\\ValidRef\\ValidRef.csproj")); 489cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"..\ValidRef\ValidRef.csproj")); 509cmd.StdOut.Should().BeVisuallyEquivalentTo(OutputText); 530cmd.StdOut.Should().BeVisuallyEquivalentTo(OutputText); 548cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 595cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 613cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"..\ValidRef\ValidRef.csproj")); 631cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"..\Net45Lib\Net45Lib.csproj")); 649cmd.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"..\Lib\Lib.csproj")); 712result.StdOut.Should().Be(string.Format(CliStrings.ReferenceAddedToTheProject, @"ValidRef\ValidRef.csproj")); 728result.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 744result.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized("");
CommandTests\Reference\List\GivenDotnetListReference.cs (9)
54cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(ListProjectReferenceCommandHelpText(Directory.GetCurrentDirectory())); 91cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 120cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 134cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 147cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 159cmd.StdOut.Should().Be(string.Format(CliStrings.NoReferencesFound, CliStrings.P2P, lib.CsProjPath)); 180cmd.StdOut.Should().BeVisuallyEquivalentTo(OutputText); 208cmd.StdOut.Should().BeVisuallyEquivalentTo(OutputText); 228cmd.StdOut.Should().BeVisuallyEquivalentTo(OutputText);
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (22)
137cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory())); 181cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 210cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 224cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 237cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 253cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 272cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 292cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 311cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceCouldNotBeFound, libref.CsProjPath)); 328cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceCouldNotBeFound, libref.CsProjPath)); 348cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 373cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 398cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 423cmd.StdOut.Should().BeVisuallyEquivalentTo(removedText); 443cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, setup.ValidRefCsprojRelToOtherProjPath)); 462cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, setup.ValidRefCsprojRelToOtherProjPath)); 481cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, setup.ValidRefCsprojRelToOtherProjPath)); 504cmd.StdOut.Should().BeVisuallyEquivalentTo(outputText); 528cmd.StdOut.Should().BeVisuallyEquivalentTo(outputText); 547result.StdOut.Should().Be(string.Format(CliStrings.ProjectReferenceRemoved, Path.Combine("Lib", setup.LibCsprojName))); 564result.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 581result.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized("");
CommandTests\Run\RunFileTests.cs (5)
2584userSecretsId = result.StdOut!.Trim(); 3347var cscVars = cscResult.StdOut! 3350var msbuildVars = msbuildResult.StdOut! 4229fileBasedResult.StdOut.Should().Be(projectBasedResult.StdOut);
CommandTests\Sdk\Check\GivenDotnetSdkCheck.cs (1)
44cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText);
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (15)
61cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory())); 106cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 127cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 154cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 174cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 193cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 212cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 563cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAddedToTheSolution, projectPath)); 636cmd.StdOut.Should().BeEmpty(); 710cmd.StdOut.Should().Be(string.Format(CliStrings.SolutionAlreadyContainsProject, solutionPath, projectToAdd)); 793cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectAddedToTheSolution, projectToAdd)); 826cmd.StdOut.Should().BeEmpty(); 1096cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 1098cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 1305cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized("");
CommandTests\Solution\List\GivenDotnetSlnList.cs (11)
39cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory())); 84cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 103cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 129cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 148cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 166cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 185cmd.StdOut.Should().Be(CliStrings.NoProjectsFound); 209cmd.StdOut.Should().BeVisuallyEquivalentTo(expectedOutput); 237cmd.StdOut.Should().BeVisuallyEquivalentTo(expectedOutput); 260cmd.StdOut.Should().ContainAll(expectedOutput); 280cmd.StdOut.Should().ContainAll(expectedOutput);
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (16)
40cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(HelpText(Directory.GetCurrentDirectory())); 87cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 108cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 134cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 154cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 173cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 192cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 213cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectNotFoundInTheSolution, "referenceDoesNotExistInSln.csproj")); 242cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectRemovedFromTheSolution, projectToRemove)); 273cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectRemovedFromTheSolution, Path.Combine(projectToRemove, "Lib.csproj"))); 299cmd.StdOut.Should().Be(string.Format(CliStrings.ProjectRemovedFromTheSolution, projectToRemove)); 330cmd.StdOut.Should().BeVisuallyEquivalentTo(outputText); 366cmd.StdOut.Should().BeVisuallyEquivalentTo(outputText); 453cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 477cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized(""); 694cmd.StdOut.Should().BeVisuallyEquivalentToIfNotLocalized("");
CommandTests\Test\GivenDotnetTestBuildsAndDiscoversTests.cs (14)
31Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "Discovered 0 tests"), result.StdOut); 33result.StdOut 54Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "Discovered 0 tests"), result.StdOut); 55Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", true, configuration, "Discovered 0 tests"), result.StdOut); 56Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("AnotherTestProject", true, configuration, "Discovered 0 tests"), result.StdOut); 57Assert.Matches(@"Discovered 0 tests.*", result.StdOut); 77Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "Discovered 1 tests", ["Test0"]), result.StdOut); 78Assert.Matches(@"Discovered 1 tests.*", result.StdOut); 98Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "Discovered 2 tests", ["Test0", "Test2"]), result.StdOut); 99Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", true, configuration, "Discovered 1 tests", ["Test1"]), result.StdOut); 100Assert.Matches(@"Discovered 3 tests.*", result.StdOut); 123Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", false, configuration, "Discovered 3 tests", ["TestMethod1", "TestMethod2", "TestMethod3"]), result.StdOut); 124Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "Discovered 2 tests", ["TestMethod1", "TestMethod3"]), result.StdOut); 168result.StdOut.Should().Contain("""
CommandTests\Test\GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs (3)
45AssertOutput(result.StdOut, merge); 74AssertOutput(result.StdOut, merge); 102AssertOutput(result.StdOut, merge);
CommandTests\Test\GivenDotnetTestBuildsAndRunsHelp.cs (6)
30Assert.Matches(@"Extension Options:\s+--[\s\S]*", result.StdOut); 31Assert.Matches(@"Options:\s+--[\s\S]*", result.StdOut); 54Assert.Matches(@"Extension Options:\s+--[\s\S]*", result.StdOut); 55Assert.Matches(@"Options:\s+--[\s\S]*", result.StdOut); 60Assert.Matches(otherTestProjectPattern, result.StdOut); 78var helpOutput = result.StdOut;
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestBasedOnGlobbingFilter.cs (7)
39Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, TestingConstants.Debug), result.StdOut); 41result.StdOut 80Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, TestingConstants.Debug), result.StdOut); 81Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, TestingConstants.Debug), result.StdOut); 83result.StdOut 116Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, TestingConstants.Debug), result.StdOut); 118result.StdOut
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsproj.cs (88)
31result.StdOut.Should().Contain("Total tests: 2"); 32result.StdOut.Should().Contain("Passed: 1"); 33result.StdOut.Should().Contain("Failed: 1"); 34result.StdOut.Should().Contain("Passed VSTestPassTest"); 35result.StdOut.Should().Contain("Failed VSTestFailTest"); 57result.StdOut.Should().Contain("Total tests: 2"); 58result.StdOut.Should().Contain("Passed: 1"); 59result.StdOut.Should().Contain("Total tests: 2"); 60result.StdOut.Should().Contain("Passed: 1"); 61result.StdOut.Should().Contain("Failed: 1"); 62result.StdOut.Should().Contain("Passed VSTestPassTest"); 63result.StdOut.Should().Contain("Failed VSTestFailTest"); 127result.StdOut.Should().Contain("Total tests: 2"); 128result.StdOut.Should().Contain("Passed: 1"); 129result.StdOut.Should().Contain("Failed: 1"); 130result.StdOut.Should().Contain("Passed TestNamespace.VSTestXunitTests.VSTestXunitPassTest"); 131result.StdOut.Should().Contain("Failed TestNamespace.VSTestXunitTests.VSTestXunitFailTest"); 152result.StdOut.Should().Contain("Failed TestNamespace.VSTestXunitTests.VSTestXunitFailTest"); 153result.StdOut.Should().Contain("Total: 2"); 154result.StdOut.Should().Contain("Passed: 1"); 155result.StdOut.Should().Contain("Failed: 1"); 185result.StdOut.Should().Contain("Passed VSTestPassTest"); 186result.StdOut.Should().Contain("Failed VSTestFailTest"); 214result.StdOut.Should().NotContain("Restore"); 246result.StdOut.Should().Contain(trxFiles[0]); 326result.StdOut.Should().Contain("Total tests: 2"); 327result.StdOut.Should().Contain("Passed: 1"); 328result.StdOut.Should().Contain("Failed: 1"); 329result.StdOut.Should().Contain("Passed VSTestPassTest"); 330result.StdOut.Should().Contain("Failed VSTestFailTest"); 357result.StdOut.Should().Contain("Total tests: 2"); 358result.StdOut.Should().Contain("Passed: 1"); 359result.StdOut.Should().Contain("Failed: 1"); 361result.StdOut.Should().Contain("Passed VSTestPassTest"); 365result.StdOut.Should().Contain("Total: 2"); 366result.StdOut.Should().Contain("Passed: 1"); 367result.StdOut.Should().Contain("Failed: 1"); 369result.StdOut.Should().NotContain("Passed VSTestPassTest"); 405result.StdOut.Should().Contain("Total tests: 2"); 406result.StdOut.Should().Contain("Passed: 1"); 407result.StdOut.Should().Contain("Failed: 1"); 427result.StdOut.Should().NotContain("Microsoft (R) Test Execution Command Line Tool Version"); 428result.StdOut.Should().Contain("Total: 2"); 429result.StdOut.Should().Contain("Passed: 1"); 430result.StdOut.Should().Contain("Failed: 1"); 457result.StdOut + Environment.NewLine + result.StdErr); 462result.StdOut.Should().Contain("Total: 2"); 463result.StdOut.Should().Contain("Passed: 1"); 464result.StdOut.Should().Contain("Failed: 1"); 498result.StdOut.Should().Contain("Total: 2"); 499result.StdOut.Should().Contain("Passed: 1"); 500result.StdOut.Should().Contain("Failed: 1"); 534result.StdOut.Should().Contain("Total: 2"); 535result.StdOut.Should().Contain("Passed: 1"); 536result.StdOut.Should().Contain("Failed: 1"); 571result.StdOut.Should().Contain("Total: 2"); 572result.StdOut.Should().Contain("Passed: 1"); 573result.StdOut.Should().Contain("Failed: 1"); 574result.StdOut.Should().Contain("Unable to find a datacollector with friendly name 'XPlat Code Coverage'"); 575result.StdOut.Should().Contain("Could not find data collector 'XPlat Code Coverage'"); 576result.StdOut.Should().Contain("Unable to find a datacollector with friendly name 'Another Coverage Collector'"); 577result.StdOut.Should().Contain("Could not find data collector 'Another Coverage Collector'"); 603result.StdOut.Should().Contain("No code coverage data available. Code coverage is currently supported only on Windows, Linux x64 and macOS x64."); 604result.StdOut.Should().Contain("Total: 1"); 605result.StdOut.Should().Contain("Passed: 1"); 606result.StdOut.Should().NotContain("Failed!"); 631result.StdOut.Should().Contain("Important text"); 678result.StdOut.Should().Contain("error NETSDK1083: The specified RuntimeIdentifier"); 679result.StdOut.Should().Contain("wrongArchitecture"); 706result.StdOut.Should().Contain("Total: 1"); 707result.StdOut.Should().Contain("Passed: 1"); 729result.StdOut.Should().Contain("Total: 2"); 730result.StdOut.Should().Contain("Passed: 1"); 731result.StdOut.Should().Contain("Failed: 1"); 777result.StdOut.Should().Contain("Total: 2"); 778result.StdOut.Should().Contain("Passed: 1"); 779result.StdOut.Should().Contain("Failed: 1"); 800result.StdOut.Should().Contain("Total: 2"); 801result.StdOut.Should().Contain("Passed: 1"); 802result.StdOut.Should().Contain("Failed: 1"); 803result.StdOut.Should().Contain("Failed VSTestFailTest"); 829result.StdOut.Should().Contain("Total tests: 2"); 830result.StdOut.Should().Contain("Passed: 1"); 831result.StdOut.Should().Contain("Failed: 1"); 832result.StdOut.Should().Contain("Passed VSTestPassTest"); 833result.StdOut.Should().Contain("Failed VSTestFailTest"); 851result.StdOut.Should().Contain("error MSB1021: Cannot create an instance of the logger my.dll."); 855result.StdOut.Should().Contain("MSB1021");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (9)
42result.StdOut 81result.StdOut.Should().Contain("Total tests: 3"); 82result.StdOut.Should().Contain("Passed: 2"); 83result.StdOut.Should().Contain("Failed: 1"); 84result.StdOut.Should().Contain("Passed TestNamespace.VSTestXunitTests.VSTestXunitPassTestDesktop"); 87result.StdOut.Should().Contain("Total tests: 3"); 88result.StdOut.Should().Contain("Passed: 1"); 89result.StdOut.Should().Contain("Failed: 2"); 90result.StdOut.Should().Contain("Failed TestNamespace.VSTestXunitTests.VSTestXunitFailTestNetCoreApp");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs (8)
35result.StdOut.Should().NotMatch("The test run parameter argument '*' is invalid."); 36result.StdOut.Should().Contain("Total tests: 1"); 37result.StdOut.Should().Contain("Passed: 1"); 38result.StdOut.Should().Contain("Passed VSTestTestRunParameters"); 69result.StdOut.Should().NotMatch("The test run parameter argument '*' is invalid."); 70result.StdOut.Should().Contain("Total tests: 1"); 71result.StdOut.Should().Contain("Passed: 1"); 72result.StdOut.Should().Contain("Passed VSTestTestRunParameters");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromDll.cs (2)
41result.StdOut 129result.StdOut.Should().Contain("MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTests.cs (18)
31result.StdOut 56result.StdOut 83result.StdOut 109result.StdOut 139result.StdOut 167result.StdOut.Should() 186result.StdOut.Should() 206result.StdOut 232Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.ZeroTestsRan, true, configuration, "8"), result.StdOut); 233Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Failed, true, configuration, "2"), result.StdOut); 234Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("AnotherTestProject", TestingConstants.Failed, true, configuration, "9"), result.StdOut); 236result.StdOut 341result.StdOut.Should().Contain(CliCommandStrings.CmdMultipleProjectOrSolutionFilesErrorDescription); 367result.StdOut 397result.StdOut 470result.StdOut.Should().Contain("Test run summary: Passed!") 476result.StdOut.Contains("Test run completed with non-success exit code: 1 (see: https://aka.ms/testingplatform/exitcodes)"); 496result.StdOut
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsForMultipleTFMs.cs (22)
34MatchCollection previousDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, useCurrentVersion: false, configuration)); 35MatchCollection currentDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, useCurrentVersion: true, configuration)); 37MatchCollection skippedTestsMatches = Regex.Matches(result.StdOut!, "skipped Test2"); 38MatchCollection failedTestsMatches = Regex.Matches(result.StdOut!, "failed Test3"); 46result.StdOut 74MatchCollection previousDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, useCurrentVersion: false, configuration)); 75MatchCollection currentDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, useCurrentVersion: true, configuration)); 76MatchCollection currentDotnetOtherProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, useCurrentVersion: true, configuration)); 78MatchCollection skippedTestsMatches = Regex.Matches(result.StdOut!, "skipped Test1"); 79MatchCollection failedTestsMatches = Regex.Matches(result.StdOut!, "failed Test2"); 80MatchCollection timeoutTestsMatches = Regex.Matches(result.StdOut!, @"failed \(canceled\) Test3"); 81MatchCollection errorTestsMatches = Regex.Matches(result.StdOut!, "failed Test4"); 82MatchCollection canceledTestsMatches = Regex.Matches(result.StdOut!, @"failed \(canceled\) Test5"); 94result.StdOut 124result.StdOut 134result.StdOut 163result.StdOut.Should().Contain("error NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specify the RID at the individual project level instead."); 167result.StdOut.Should().Contain("NETSDK1134"); 190MatchCollection previousDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, useCurrentVersion: false, configuration)); 191MatchCollection currentDotnetProjectMatches = Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, useCurrentVersion: true, configuration)); 193MatchCollection failedTestsMatches = Regex.Matches(result.StdOut!, "failed TestMethod3"); 200result.StdOut
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithArtifacts.cs (5)
30Assert.Matches(@".*Test6.*testNodeFile.txt", result.StdOut); 32result.StdOut 37result.StdOut 69Assert.Matches(pattern, result.StdOut); 71result.StdOut
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithDifferentOptions.cs (24)
32Regex.Matches(result.StdOut!, RegexPatternHelper.GenerateProjectRegexPattern("TestProject", true, configuration, "exec", addVersionAndArchPattern: false)); 51Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, configuration), result.StdOut); 52Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, configuration), result.StdOut); 71Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, configuration), result.StdOut); 72Assert.DoesNotMatch(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, configuration), result.StdOut); 88Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, configuration), result.StdOut); 89Assert.DoesNotMatch(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, configuration), result.StdOut); 128Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, configuration), result.StdOut); 129Assert.DoesNotMatch(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, configuration), result.StdOut); 229Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, configuration, runtime: runtime), result.StdOut); 249result.StdOut.Should().Contain("error NETSDK1134: Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specify the RID at the individual project level instead."); 253result.StdOut.Should().Contain("NETSDK1134"); 275Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, configuration, runtime: runtime), result.StdOut); 313Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, configuration, runtime: runtime), result.StdOut); 334Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, configuration, runtime: runtime), result.StdOut); 397result.StdOut 422result.StdOut 447Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Passed, true, configuration), result.StdOut); 449result.StdOut 486result.StdOut 519Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, true, configuration), result.StdOut); 520Assert.Matches(RegexPatternHelper.GenerateProjectRegexPattern("OtherTestProject", TestingConstants.Passed, true, configuration), result.StdOut); 521Assert.DoesNotMatch(RegexPatternHelper.GenerateProjectRegexPattern("TestProject", TestingConstants.Failed, false, configuration), result.StdOut); 523result.StdOut
CommandTests\Test\GivenDotnetTestContainsEnvironmentVariables.cs (4)
42result.StdOut 49result.StdOut 85result.StdOut 92result.StdOut
CommandTests\Test\GivenDotnetTestContainsMSBuildParameters.cs (1)
37result.StdOut
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
32result.StdOut
CommandTests\Test\MTPHelpSnapshotTests.cs (1)
30var helpOutput = result.StdOut;
CommandTests\Tool\Install\GivenDotnetInstallTool.cs (1)
36.StdOut
CommandTests\VSTest\VSTestTests.cs (11)
41result.StdOut 82result.StdOut.Should().NotMatch("The test run parameter argument '*' is invalid."); 83result.StdOut.Should().Contain("Total tests: 1"); 84result.StdOut.Should().Contain("Passed: 1"); 85result.StdOut.Should().Contain("Passed VSTestTestRunParameters"); 153result.StdOut.Should().NotMatch("The test run parameter argument '*' is invalid."); 154result.StdOut.Should().Contain("Total tests: 1"); 155result.StdOut.Should().Contain("Passed: 1"); 156result.StdOut.Should().Contain("Passed VSTestTestRunParameters"); 158result.ExitCode.Should().Be(0, $"Should have executed successfully, but got: {result.StdOut}"); 192result.ExitCode.Should().Be(0, $"Should have executed successfully, but got: {result.StdOut}");
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (2)
101_fixture.FirstDotnetNonVerbUseCommandResult.StdOut 139_fixture.FirstDotnetVerbUseCommandResult.StdOut
PackagedCommandTests.cs (1)
249result.StdOut.Should().Contain(
Program.cs (1)
76Console.WriteLine(result.StdOut);
VersionTest.cs (1)
31result.StdOut.Trim().Should().Be(expectedVersion);
dotnet-format.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
dotnet-MsiInstallation.Tests (15)
Framework\VirtualMachine.cs (1)
353StdOut = result.StdOut,
Framework\VMTestBase.cs (4)
139string existingVersionToOverwrite = result.StdOut; 193return result.StdOut; 226return ParseRollbackOutput(result.StdOut); 246return result.StdOut;
MsiInstallerTests.cs (2)
114originalSdkVersion = versionResult.StdOut; 370return result.StdOut;
Program.cs (1)
76Console.WriteLine(result.StdOut);
WorkloadSetTests.cs (3)
338searchVersionResult.StdOut.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries) 350var actualVersions = searchVersionResult.StdOut.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 361var searchResultJson = JsonNode.Parse(searchVersionResult.StdOut);
WorkloadSetTestsBase.cs (4)
84return result.StdOut; 96return result.StdOut; 108return result.StdOut; 119return result.StdOut;
dotnet-new.IntegrationTests (122)
DotnetNewArgumentsTests.cs (1)
28.And.HaveStdOutContaining(dotnetNewHelpOutput.StdOut ?? string.Empty);
DotnetNewCompleteTests.cs (1)
31return Verify(commandResult.StdOut).UniqueForOSPlatform();
DotnetNewDebugOptionsTests.cs (5)
37Assert.Equal(commandResult.StdOut, reinitCommandResult.StdOut); 61Assert.Equal(commandResult.StdOut, reinitCommandResult.StdOut); 76return Verify(commandResult.StdOut)
DotnetNewDetailsTest.Approval.cs (8)
28return Verify(commandResult.StdOut); 56return Verify(commandResult.StdOut); 73return Verify(commandResult.StdOut); 91ExtractVersion(commandResult.StdOut) 120return Verify(commandResult.StdOut) 145return Verify(commandResult.StdOut); 172ExtractVersion(commandResult.StdOut) 198return Verify(commandResult.StdOut)
DotnetNewHelpTests.Approval.cs (23)
28return Verify(commandResult.StdOut) 48return Verify(commandResult.StdOut) 68return Verify(commandResult.StdOut) 88return Verify(commandResult.StdOut) 108return Verify(commandResult.StdOut) 128return Verify(commandResult.StdOut) 148return Verify(commandResult.StdOut) 174return Verify(commandResult.StdOut) 190return Verify(commandResult.StdOut); 205return Verify(commandResult.StdOut); 222return Verify(commandResult.StdOut); 238return Verify(commandResult.StdOut); 256return Verify(commandResult.StdOut); 271return Verify(commandResult.StdOut); 286return Verify(commandResult.StdOut); 301return Verify(commandResult.StdOut); 319return Verify(commandResult.StdOut); 334return Verify(commandResult.StdOut); 352return Verify(commandResult.StdOut); 371return Verify(commandResult.StdOut); 390return Verify(commandResult.StdOut); 409return Verify(commandResult.StdOut); 428return Verify(commandResult.StdOut);
DotnetNewInstallTests.Approval.cs (8)
41return Verify(commandResult.StdOut) 82return Verify(commandResult.StdOut) 99return Verify(commandResult.StdOut); 115return Verify(commandResult.StdOut) 141return Verify(commandResult.StdOut) 163return Verify(commandResult.StdOut); 238return Verify(commandResult.StdOut) 256return Verify(commandResult.StdOut)
DotnetNewInstallTests.cs (6)
95string? command3Out = command3.StdOut?.Replace( 99Assert.Equal(command1.StdOut, command2.StdOut); 100Assert.Equal(command1.StdOut, command3Out); 154string? command1Out = command1.StdOut?.Replace( 158string? command2Out = command2.StdOut?.Replace(
DotnetNewInstantiateTests.Approval.cs (5)
406return Verify(commandResult.StdOut) 481return Verify(commandResult.StdOut) 512return Verify(commandResult.StdOut) 584return Verify(commandResult.StdOut) 675return Verify(commandResult.StdOut);
DotnetNewInstantiateTests.cs (2)
120Assert.Equal(commandResult.StdOut, forceCommandResult.StdOut);
DotnetNewListTests.Approval.cs (4)
24return Verify(commandResult.StdOut) 43return Verify(commandResult.StdOut) 126return Verify(commandResult.StdOut); 144return Verify(commandResult.StdOut);
DotnetNewListTests.cs (2)
581Assert.Equal(commandResult1.StdOut, commandResult2.StdOut);
DotnetNewSearchTests.Approval.cs (1)
41return Verify(commandResult.StdOut);
DotnetNewSearchTests.cs (26)
39List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 94List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Author", "Package Name / Owners", "Trusted", "Downloads" }); 122List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Author", "Language", "Type", "Tags", "Package Name / Owners", "Trusted", "Downloads" }); 151List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Tags", "Package Name / Owners", "Trusted", "Downloads" }); 182List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Tags", "Package Name / Owners", "Trusted", "Downloads" }); 212List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Author", "Package Name / Owners", "Trusted", "Downloads" }); 243List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Author", "Package Name / Owners", "Trusted", "Downloads" }); 274List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 307List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 337List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Type", "Package Name / Owners", "Trusted", "Downloads" }); 368List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Type", "Package Name / Owners", "Trusted", "Downloads" }); 399List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 430List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 459List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 500List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 521tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 541tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 567List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 588tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 614List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 635tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 661List<List<string>> tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 682tableOutput = ParseTableOutput(commandResult.StdOut, expectedColumns: new[] { "Template Name", "Short Name", "Language", "Package Name / Owners", "Trusted", "Downloads" }); 727Assert.Equal(commandResult1.StdOut, commandResult2.StdOut); 776Assert.StartsWith(deprecationMessage, commandResult.StdOut);
DotnetNewTests.cs (1)
29return Verify(commandResult.StdOut).UniqueForOSPlatform();
DotnetNewTestTemplatesTests.cs (6)
122result.StdOut.Should().Contain("Passed!"); 125result.StdOut.Should().MatchRegex(@"Passed:\s*2"); 160result.StdOut.Should().Contain("Passed!"); 161result.StdOut.Should().MatchRegex(@"Passed:\s*1"); 214result.StdOut.Should().Contain("Passed!"); 215result.StdOut.Should().MatchRegex(isMTP ? "succeeded: 1" : @"Passed:\s*1");
DotnetNewUninstallTests.Approval.cs (2)
25return Verify(commandResult.StdOut) 42return Verify(commandResult.StdOut)
DotnetNewUninstallTests.cs (1)
528Assert.StartsWith(deprecationMessage, commandResult.StdOut);
DotnetNewUpdateTests.Approval.cs (2)
25return Verify(commandResult.StdOut); 48return Verify(commandResult.StdOut)
DotnetNewUpdateTests.cs (2)
230Assert.StartsWith(deprecationMessage, commandResult.StdOut); 345Assert.StartsWith(deprecationMessage, commandResult.StdOut);
Extensions.cs (1)
12return "StdErr:" + Environment.NewLine + commandResult.StdErr + Environment.NewLine + "StdOut:" + Environment.NewLine + commandResult.StdOut;
MSBuildEvaluationTests.cs (2)
114cmd.StdOut.Should().NotContain("TestAssets.ClassTemplate").And.NotContain("TestAssets.TestClassTemplate"); 129cmd.StdOut.Should().Contain("TestAssets.ClassTemplate").And.NotContain("TestAssets.TestClassTemplate");
PostActionTests.Approval.cs (9)
28return Verify(commandResult.StdOut) 60return Verify(commandResult.StdOut) 82return Verify(commandResult.StdOut) 113return Verify(commandResult.StdOut) 153return Verify(commandResult.StdOut) 185return Verify(commandResult.StdOut); 209return Verify(commandResult.StdOut); 229return Verify(commandResult.StdOut + Environment.NewLine + commandResult.StdErr); 250return Verify(commandResult.StdOut + Environment.NewLine + commandResult.StdErr)
Program.cs (1)
76Console.WriteLine(result.StdOut);
WebProjectsTests.cs (3)
87return Verify(commandResult.StdOut); 104return Verify(commandResult.StdOut) 124return Verify(commandResult.StdOut)
dotnet-watch.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
EndToEnd.Tests (2)
Program.cs (1)
76Console.WriteLine(result.StdOut);
VersionTests.cs (1)
21result.StdOut.Trim().Should().Be(expectedSdkVersion);
Microsoft.AspNetCore.Watch.BrowserRefresh.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.DotNet.ApiCompat.IntegrationTests (6)
Task\ValidatePackageTargetIntegrationTests.cs (6)
49Assert.Contains("error CP0002: Member 'void PackageValidationTestProject.Program.SomeAPINotInCore()' exists on lib/netstandard2.0/PackageValidationTestProject.dll but not on lib/net8.0/PackageValidationTestProject.dll", result.StdOut); 122Assert.Contains("error CP0002: Member 'void PackageValidationTestProject.Program.SomeApiNotInLatestVersion()' exists on [Baseline] lib/net8.0/PackageValidationTestProject.dll but not on lib/net8.0/PackageValidationTestProject.dll", result.StdOut); 123Assert.Contains("error CP0002: Member 'void PackageValidationTestProject.Program.SomeApiNotInLatestVersion()' exists on [Baseline] lib/netstandard2.0/PackageValidationTestProject.dll but not on lib/netstandard2.0/PackageValidationTestProject.dll", result.StdOut); 138Assert.Contains(string.Format(Resources.NonExistentPackagePath, nonExistentPackageBaselinePath), result.StdOut); 333Assert.Contains("error CP0002: Member 'void PackageValidationTestProject.Program.SomeApiOnlyInLatestVersion()' exists on lib/net8.0/PackageValidationTestProject.dll but not on [Baseline] lib/net8.0/PackageValidationTestProject.dll", result.StdOut); 334Assert.Contains("error CP0002: Member 'void PackageValidationTestProject.Program.SomeApiOnlyInLatestVersion()' exists on lib/netstandard2.0/PackageValidationTestProject.dll but not on [Baseline] lib/netstandard2.0/PackageValidationTestProject.dll", result.StdOut);
Microsoft.DotNet.ApiDiff.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.DotNet.Cli.Utils.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.DotNet.GenAPI.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.DotNet.PackageInstall.Tests (2)
Program.cs (1)
76Console.WriteLine(result.StdOut);
TestToolBuilder.cs (1)
205var outputDict = result.StdOut!.Split(Environment.NewLine)
Microsoft.Extensions.DotNetDeltaApplier.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Build.Containers.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Build.Extensions.Tasks.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Build.Tasks.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Build.Tests (27)
AppHostTests.cs (1)
451Regex.Matches(result.StdOut, "NETSDK1113", RegexOptions.None).Count.Should().Be(Retries);
GivenThatWeWantToBuildADesktopExe.cs (3)
451result.StdOut.Should().Contain("MSB3644"); 454result.StdOut.Should().NotContain("MSB4018"); 457result.StdOut.Should().Contain("1 Error(s)");
GivenThatWeWantToBuildALibrary.cs (1)
549var stdOut = runCommand.Execute().StdOut.Split(Environment.NewLine.ToCharArray()).Where(line => !string.IsNullOrWhiteSpace(line));
GivenThatWeWantToBuildANetCoreApp.cs (3)
396buildCommand.Execute().StdOut 425buildCommand.Execute("/p:GenerateRuntimeConfigDevFile=true").StdOut 430buildCommand.Execute("/p:GenerateRuntimeConfigDevFile=false").StdOut
GivenThatWeWantToBuildANetCoreAppForTelemetry.cs (2)
56.StdOut.Should() 84.StdOut.Should()
GivenThatWeWantToCollectExceptionTelemetry.cs (1)
35.StdOut.Should()
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (1)
864result.StdOut.Should().BeEquivalentTo(expectedFrameworkDisplayName);
GivenThatWeWantToFloatWarningLevels.cs (2)
480buildResult.StdOut.Should().NotContainAll(new[] { "error", "warning" }); 484buildResult.StdOut.Should().ContainAll(expectedViolations);
GivenThatWeWantToResolveConflicts.cs (2)
440var items1 = ParsePrunePackageReferenceJson(itemsResult1.StdOut); 446var items2 = ParsePrunePackageReferenceJson(itemsResult2.StdOut);
GivenThatWeWantToTargetEolFrameworks.cs (1)
62var lines = (result.StdOut.Split(Environment.NewLine)).Where(line => line.Contains("NETSDK1138"));
GivenThatWeWantToTargetNotRecommendedFrameworks.cs (1)
88var lines = (result.StdOut.Split(Environment.NewLine)).Where(line => line.Contains("NETSDK1215"));
GivenThatWeWantToUsePlatformAnalyzers.cs (8)
57buildResult.StdOut.Should().Contain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 103buildResult.StdOut.Should().NotContain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 149buildResult.StdOut.Should().Contain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 195buildResult.StdOut.Should().NotContain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 241buildResult.StdOut.Should().Contain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 326buildResult.StdOut.Should().NotContain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 372buildResult.StdOut.Should().Contain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop."); 418buildResult.StdOut.Should().Contain("Program.cs(12,56): warning CA2014: Potential stack overflow. Move the stackalloc out of the loop.");
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Clean.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Pack.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Publish.Tests (7)
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (1)
155var stdOutLines = runAppResult.StdOut.Split(Environment.NewLine);
GivenThatWeWantToPublishANetCoreAppForTelemetry.cs (4)
31publishCommand.Execute(TelemetryTestLogger).StdOut.Should().Contain( 49string s = publishCommand.Execute(TelemetryTestLogger).StdOut;//.Should() 81publishCommand.Execute(TelemetryTestLogger).StdOut.Should() 114publishCommand.Execute(TelemetryTestLogger).StdOut.Should().Contain(
GivenThatWeWantToRunILLink.cs (1)
2319var warnings = result.StdOut.Split('\n', '\r').Where(line => line.Contains("warning IL"));
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Rebuild.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Restore.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.Publish.Tasks.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.Razor.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.Razor.Tool.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.Sdk.Web.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.NET.TestFramework (23)
Assertions\CommandResultAssertions.cs (18)
39_commandResult.StdOut.Should().NotBeNullOrEmpty(AppendDiagnosticsTo("Command did not output anything to stdout")); 45_commandResult.StdOut.Should().NotBeNull() 52_commandResult.StdOut.Should().NotBeNull() 59_commandResult.StdOut.Should().NotBeNull(); 60predicate(_commandResult.StdOut).Should().BeTrue(AppendDiagnosticsTo($"The command output did not contain expected result: {description} {Environment.NewLine}")); 66_commandResult.StdOut.Should().NotBeNull(); 68string filteredStdOut = _commandResult.StdOut ?? string.Empty; 86_commandResult.StdOut.Should().NotBeNull(); 87string commandResultNoSpaces = _commandResult.StdOut.Replace(" ", ""); 94_commandResult.StdOut.Should().NotBeNull() 101_commandResult.StdOut.Should().NotBeNull(); 102Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeTrue(AppendDiagnosticsTo($"Matching the command output failed. Pattern: {pattern}{Environment.NewLine}")); 108_commandResult.StdOut.Should().NotBeNull(); 109Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeFalse(AppendDiagnosticsTo($"The command output matched a pattern it should not have. Pattern: {pattern}{Environment.NewLine}")); 159_commandResult.StdOut.Should().BeNullOrEmpty(AppendDiagnosticsTo($"Expected command to not output to stdout but it was not:")); 176$"StdOut:{Environment.NewLine}{_commandResult.StdOut}{Environment.NewLine}" + 182_commandResult.StdOut.Should().Contain($"Project {skippedProject} ({frameworkFullName}) was previously compiled. Skipping compilation."); 189_commandResult.StdOut.Should().Contain($"Project {compiledProject} ({frameworkFullName}) will be compiled");
Commands\MSBuildCommand.cs (1)
142var output = command.StdOut?.ToString();
Commands\TestCommand.cs (2)
142return !NuGetTransientErrorDetector.IsTransientError(result.StdOut); 194log.WriteLine(result.StdOut);
ToolsetInfo.cs (2)
106_sdkVersion = result.StdOut?.Trim(); 129_msbuildVersion = result.StdOut?.Split().Last();
Microsoft.NET.ToolPack.Tests (2)
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
50result.StdOut.Should().Contain(expectedErrorMessage);
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.TemplateEngine.Cli.UnitTests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
Microsoft.WebTools.AspireService.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
msbuild.Integration.Tests (5)
GivenDotnetInvokesMSBuild.cs (4)
46cmd.StdOut 69cmd.StdOut.Should().Contain("Message with low importance"); 83cmd.StdOut.Should().Contain("Message with high importance"); 112cmd.StdOut.Should().Contain("Expected 'AnyString")
Program.cs (1)
76Console.WriteLine(result.StdOut);
System.CommandLine.StaticCompletions.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);
trustedroots.Tests (1)
Program.cs (1)
76Console.WriteLine(result.StdOut);