9 references to Matches
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
1624Assert.Matches(TimeSpanRegex(), validTimeSpanString);
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
54Assert.Matches(_buttonHtmlPart, html);
Microsoft.DotNet.XUnitAssert.Tests (5)
StringAssertsTests.cs (5)
784 Assert.Throws<ArgumentNullException>("expectedRegex", () => Assert.Matches((Regex?)null!, "Hello, world!")); 790 Assert.Matches(new Regex(@"\w+"), "Hello"); 796 Assert.Matches(new Regex(@"[a-z]+", RegexOptions.IgnoreCase), "HELLO"); 802 var ex = Record.Exception(() => Assert.Matches(new Regex(@"\d+"), "Hello, world!")); 816 var ex = Record.Exception(() => Assert.Matches(new Regex(@"\d+"), null));
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
71Assert.Matches(new Regex(@"(\d+)\.(\d+)\.(\d+)(-[dev|ci|preview\.(\d+)\.(\d+)\.(\d+)]){0,1}"), line);
System.Drawing.Common.Tests (1)
System\Drawing\Imaging\ImageCodecInfoTests.cs (1)
99Assert.Matches(extRegex, codecInfo.FilenameExtension);