27 references to IsMatch
Aspire.Hosting (1)
Dcp\Model\ModelCommon.cs (1)
227bool isValid = Regex.IsMatch(candidate, @"^[[a-zA-Z_~][a-zA-Z0-9\-._~]*$");
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (2)
825var redisContainer = Assert.Single(list.Where(c => Regex.IsMatch(c.Name(),$"redis-{ReplicaIdRegex}-{suffix}"))) ; 831var otherRedisContainer = Assert.Single(list.Where(c => Regex.IsMatch(c.Name(), $"redisNoPort-{ReplicaIdRegex}-{suffix}")));
Helpers\KubernetesHelper.cs (1)
34if (Regex.IsMatch(name, resourceNamePattern) && ready(r))
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
228string[] matchedEndpoints = expectedEndpoints.Where(e => Regex.IsMatch(endpointFound, e)).ToArray();
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
429return Regex.IsMatch(fileName, regex);
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
2314if (Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.SimpleSRSInternalsVisiblePattern) || 2315Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.FullSRSInternalsVisiblePattern))
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
276if (!string.IsNullOrWhiteSpace(_context.FileName) && !Regex.IsMatch(_context.FileName, "^([A-Za-z0-9-_]+)$"))
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
170!Regex.IsMatch(ex.Message, "^While processing template '(.*?)', a replacement value for the token '(.*?)' could not be found."))
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
394if (Regex.IsMatch(actualLine, _interceptsLocationAttributeRegex))
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
394if (Regex.IsMatch(actualLine, _interceptsLocationAttributeRegex))
Microsoft.Build.Engine.UnitTests (1)
Definition\ToolsVersion_Tests.cs (1)
978return !sameFolder || !Regex.IsMatch(Path.GetFileName(candidate), finalPattern);
Microsoft.Build.Tasks.Core (1)
Exec.cs (1)
422match = Regex.IsMatch(singleLine, regularExpression);
Microsoft.Build.UnitTests.Shared (3)
TestEnvironment.cs (3)
513if (Regex.IsMatch(file.Name, @"MSBuild_NodeShutdown_\d+\.txt") && 514Regex.IsMatch(contents, @"Node shutting down with reason BuildComplete and exception:\s*")) 522if (Regex.IsMatch(file.Name, @"MSBuild_CommTrace_PID_\d+\.txt"))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EnableNullable\EnableNullableTests.cs (2)
34if (!Regex.IsMatch(document.GetTextSynchronously(CancellationToken.None).ToString(), "#nullable ?enable")) 50if (!Regex.IsMatch(document.GetTextSynchronously(CancellationToken.None).ToString(), "#nullable ?restore"))
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackageBase.cs (1)
258if (exclusionPatterns.Any(pattern => Regex.IsMatch(file, pattern)))
Microsoft.DotNet.Helix.Sdk.Tests (3)
FindDotNetCliPackageTests.cs (3)
113buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+")); 166buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+")); 218buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+"));
RunTests (3)
Program.cs (3)
360if (Regex.IsMatch(name, pattern.Trim('\'', '"'))) 373if (Regex.IsMatch(name, pattern.Trim('\'', '"'))) 386TestRuntime.Core => Regex.IsMatch(dirName, @"^net\d+\."),
xunit.assert (1)
StringAsserts.cs (1)
1364 if (actualString == null || !Regex.IsMatch(actualString, expectedRegexPattern))