10 references to GenerateProjectRegexPattern
dotnet.Tests (10)
CommandTests\Test\GivenDotnetTestBuildsAndDiscoversTests.cs (9)
31
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "Discovered 0 tests"), result.StdOut);
54
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "Discovered 0 tests"), result.StdOut);
55
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("OtherTestProject", true, configuration, "Discovered 0 tests"), result.StdOut);
56
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("AnotherTestProject", true, configuration, "Discovered 0 tests"), result.StdOut);
77
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "Discovered 1 tests", ["Test0"]), result.StdOut);
98
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "Discovered 2 tests", ["Test0", "Test2"]), result.StdOut);
99
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("OtherTestProject", true, configuration, "Discovered 1 tests", ["Test1"]), result.StdOut);
123
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", false, configuration, "Discovered 3 tests", ["TestMethod1", "TestMethod2", "TestMethod3"]), result.StdOut);
124
Assert.Matches(RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "Discovered 2 tests", ["TestMethod1", "TestMethod3"]), result.StdOut);
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithDifferentOptions.cs (1)
32
Regex.Matches(result.StdOut!, RegexPatternHelper.
GenerateProjectRegexPattern
("TestProject", true, configuration, "exec", addVersionAndArchPattern: false));