599 references to StdOut
ArgumentForwarding.Tests (6)
containerize.UnitTests (1)
dotnet (1)
dotnet.Tests (354)
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\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\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\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\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\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\GivenDotnetTestContainsMSBuildParameters.cs (1)
37result.StdOut
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
32result.StdOut
CommandTests\Tool\Install\GivenDotnetInstallTool.cs (1)
36.StdOut
dotnet-format.UnitTests (1)
dotnet-MsiInstallation.Tests (15)
dotnet-new.IntegrationTests (122)
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);
dotnet-watch.Tests (1)
EndToEnd.Tests (2)
Microsoft.AspNetCore.Watch.BrowserRefresh.Tests (1)
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (1)
Microsoft.DotNet.ApiCompat.IntegrationTests (6)
Microsoft.DotNet.ApiDiff.Tests (1)
Microsoft.DotNet.Cli.Utils.Tests (1)
Microsoft.DotNet.GenAPI.Tests (1)
Microsoft.DotNet.PackageInstall.Tests (2)
Microsoft.Extensions.DotNetDeltaApplier.Tests (1)
Microsoft.NET.Build.Containers.UnitTests (1)
Microsoft.NET.Build.Extensions.Tasks.UnitTests (1)
Microsoft.NET.Build.Tasks.UnitTests (1)
Microsoft.NET.Build.Tests (27)
Microsoft.NET.Clean.Tests (1)
Microsoft.NET.Pack.Tests (1)
Microsoft.NET.Publish.Tests (7)
Microsoft.NET.Rebuild.Tests (1)
Microsoft.NET.Restore.Tests (1)
Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (1)
Microsoft.NET.Sdk.Publish.Tasks.Tests (1)
Microsoft.NET.Sdk.Razor.Tests (1)
Microsoft.NET.Sdk.Razor.Tool.Tests (1)
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
Microsoft.NET.Sdk.Web.Tests (1)
Microsoft.NET.TestFramework (23)
Microsoft.NET.ToolPack.Tests (2)
Microsoft.TemplateEngine.Cli.UnitTests (1)
Microsoft.WebTools.AspireService.Tests (1)
msbuild.Integration.Tests (5)
System.CommandLine.StaticCompletions.Tests (1)
trustedroots.Tests (1)