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