51 references to Matches
Aspire.Workload.Tests (3)
PerTestFrameworkTemplatesTests.cs (2)
59Assert.Matches("System.ArgumentException.*Resource 'webfrontend' not found.", res.Output); 60Assert.Matches("Failed! * - Failed: *1, Passed: *0, Skipped: *0, Total: *1", res.Output);
WorkloadTestsBase.cs (1)
345Assert.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)
727Assert.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)
224Assert.Matches("Data_1", responseFormat.SchemaName);
System.Windows.Forms.Design.Tests (40)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (40)
725Assert.Matches("^object_........_...._...._...._............$", nameResult); 736Assert.Matches("^object_........_...._...._...._............$", nameResult); 762Assert.Matches("^object_........_...._...._...._............$", nameResult); 775Assert.Matches("^object_........_...._...._...._............$", nameResult); 810Assert.Matches(expectedPattern, nameResult); 824Assert.Matches(expectedPattern, nameResult); 869Assert.Matches(expectedPattern, nameResult); 882Assert.Matches(expectedPattern, nameResult); 933Assert.Matches("^object_........_...._...._...._............$", nameResult); 944Assert.Matches("^object_........_...._...._...._............$", nameResult); 970Assert.Matches("^object_........_...._...._...._............$", nameResult); 983Assert.Matches("^object_........_...._...._...._............$", nameResult); 1018Assert.Matches(expectedPattern, nameResult); 1032Assert.Matches(expectedPattern, nameResult); 1077Assert.Matches(expectedPattern, nameResult); 1090Assert.Matches(expectedPattern, nameResult); 1143Assert.Matches("^object_........_...._...._...._............$", nameResult); 1154Assert.Matches("^object_........_...._...._...._............$", nameResult); 1165Assert.Matches("^object_........_...._...._...._............$", nameResult); 1193Assert.Matches("^object_........_...._...._...._............$", nameResult); 1206Assert.Matches("^object_........_...._...._...._............$", nameResult); 1219Assert.Matches("^object_........_...._...._...._............$", nameResult); 1256Assert.Matches(expectedPattern, nameResult); 1270Assert.Matches(expectedPattern, nameResult); 1284Assert.Matches(expectedPattern, nameResult); 1331Assert.Matches(expectedPattern, nameResult); 1344Assert.Matches(expectedPattern, nameResult); 1357Assert.Matches(expectedPattern, nameResult); 1422Assert.Matches("^object_........_...._...._...._............$", nameResult); 1433Assert.Matches("^object_........_...._...._...._............$", nameResult); 1444Assert.Matches("^object_........_...._...._...._............$", nameResult); 1472Assert.Matches("^object_........_...._...._...._............$", nameResult); 1485Assert.Matches("^object_........_...._...._...._............$", nameResult); 1498Assert.Matches("^object_........_...._...._...._............$", nameResult); 1535Assert.Matches(expectedPattern, nameResult); 1549Assert.Matches(expectedPattern, nameResult); 1563Assert.Matches(expectedPattern, nameResult); 1610Assert.Matches(expectedPattern, nameResult); 1623Assert.Matches(expectedPattern, nameResult); 1636Assert.Matches(expectedPattern, nameResult);