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