8 references to Matches
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
903Assert.Matches(pattern, output);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\FileModifierTests.cs (1)
1093Assert.Matches(expectedRegexPattern: @"<My_File>F[\w\d]{64}__C", sourceFileTypeSymbol.MetadataName);
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)
267Assert.Matches("Data_1", responseFormat.SchemaName);