51 references to Matches
Aspire.Workload.Tests (3)
PerTestFrameworkTemplatesTests.cs (2)
59
Assert.
Matches
("System.ArgumentException.*Resource 'webfrontend' not found.", res.Output);
60
Assert.
Matches
("Failed! * - Failed: *1, Passed: *0, Skipped: *0, Total: *1", res.Output);
WorkloadTestsBase.cs (1)
345
Assert.
Matches
("Passed! * - Failed: *0, Passed: *1, Skipped: *0, Total: *1", testRes.Output);
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\DefinitionEditing_Tests.cs (1)
2605
Assert.
Matches
("The requested operation needs to split the item element at location .* into individual elements but item element splitting is disabled with .*", ex.Message);
Microsoft.Build.Tasks.UnitTests (1)
ResourceHandling\GenerateResource_Tests.cs (1)
3788
Assert.
Matches
(sb.ToString(), ((MockEngine)t.BuildEngine).Log);
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
727
Assert.
Matches
(@"DataFrame already contains a column called Column( \(Parameter 'column'\)|\r\nParameter name: column)", exp.Message);
Microsoft.DotNet.XUnitAssert.Tests (4)
StringAssertsTests.cs (4)
741
Assert.Throws<ArgumentNullException>("expectedRegexPattern", () => Assert.
Matches
((string?)null!, "Hello, world!"));
747
Assert.
Matches
(@"\w", "Hello");
753
var ex = Record.Exception(() => Assert.
Matches
(@"\d+", "Hello, world!"));
767
var ex = Record.Exception(() => Assert.
Matches
(@"\d+", null));
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
224
Assert.
Matches
("Data_1", responseFormat.SchemaName);
System.Windows.Forms.Design.Tests (40)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (40)
725
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
736
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
762
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
775
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
810
Assert.
Matches
(expectedPattern, nameResult);
824
Assert.
Matches
(expectedPattern, nameResult);
869
Assert.
Matches
(expectedPattern, nameResult);
882
Assert.
Matches
(expectedPattern, nameResult);
933
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
944
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
970
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
983
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1018
Assert.
Matches
(expectedPattern, nameResult);
1032
Assert.
Matches
(expectedPattern, nameResult);
1077
Assert.
Matches
(expectedPattern, nameResult);
1090
Assert.
Matches
(expectedPattern, nameResult);
1143
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1154
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1165
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1193
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1206
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1219
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1256
Assert.
Matches
(expectedPattern, nameResult);
1270
Assert.
Matches
(expectedPattern, nameResult);
1284
Assert.
Matches
(expectedPattern, nameResult);
1331
Assert.
Matches
(expectedPattern, nameResult);
1344
Assert.
Matches
(expectedPattern, nameResult);
1357
Assert.
Matches
(expectedPattern, nameResult);
1422
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1433
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1444
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1472
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1485
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1498
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1535
Assert.
Matches
(expectedPattern, nameResult);
1549
Assert.
Matches
(expectedPattern, nameResult);
1563
Assert.
Matches
(expectedPattern, nameResult);
1610
Assert.
Matches
(expectedPattern, nameResult);
1623
Assert.
Matches
(expectedPattern, nameResult);
1636
Assert.
Matches
(expectedPattern, nameResult);