51 references to Matches
Aspire.Workload.Tests (3)
PerTestFrameworkTemplatesTests.cs (2)
58
Assert.
Matches
("System.ArgumentException.*Resource 'webfrontend' not found.", res.Output);
59
Assert.
Matches
("Failed! * - Failed: *1, Passed: *0, Skipped: *0, Total: *1", res.Output);
WorkloadTestsBase.cs (1)
339
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)
720
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)
221
Assert.
Matches
("Data_1", responseFormat.SchemaName);
System.Windows.Forms.Design.Tests (40)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (40)
721
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
732
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
758
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
771
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
806
Assert.
Matches
(expectedPattern, nameResult);
820
Assert.
Matches
(expectedPattern, nameResult);
865
Assert.
Matches
(expectedPattern, nameResult);
878
Assert.
Matches
(expectedPattern, nameResult);
929
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
940
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
966
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
979
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1014
Assert.
Matches
(expectedPattern, nameResult);
1028
Assert.
Matches
(expectedPattern, nameResult);
1073
Assert.
Matches
(expectedPattern, nameResult);
1086
Assert.
Matches
(expectedPattern, nameResult);
1139
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1150
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1161
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1189
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1202
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1215
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1252
Assert.
Matches
(expectedPattern, nameResult);
1266
Assert.
Matches
(expectedPattern, nameResult);
1280
Assert.
Matches
(expectedPattern, nameResult);
1327
Assert.
Matches
(expectedPattern, nameResult);
1340
Assert.
Matches
(expectedPattern, nameResult);
1353
Assert.
Matches
(expectedPattern, nameResult);
1418
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1429
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1440
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1468
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1481
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1494
Assert.
Matches
("^object_........_...._...._...._............$", nameResult);
1531
Assert.
Matches
(expectedPattern, nameResult);
1545
Assert.
Matches
(expectedPattern, nameResult);
1559
Assert.
Matches
(expectedPattern, nameResult);
1606
Assert.
Matches
(expectedPattern, nameResult);
1619
Assert.
Matches
(expectedPattern, nameResult);
1632
Assert.
Matches
(expectedPattern, nameResult);