356 references to Success
aspire (3)
Projects\FallbackProjectParser.cs (1)
248if (match.Success)
Projects\ProjectUpdater.cs (1)
333if (!match.Success)
Utils\MarkdownToSpectreConverter.cs (1)
164if (match.Success)
Aspire.Dashboard (5)
ConsoleLogs\UrlParser.cs (1)
25while (urlMatch.Success)
Model\ConnectionStringParser.cs (3)
229if (match.Success) 326if (match.Success) 329if (match.Groups[2].Success && int.TryParse(match.Groups[2].Value, out var portValue))
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
214if (m.Success)
Aspire.Hosting (5)
Dashboard\DashboardService.cs (1)
53Match { Success: true } match => match.Groups["name"].Value,
Dcp\DcpExecutor.cs (1)
504Match { Success: true } match => match.Groups["name"].Value,
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
Utils\ContainerReferenceParser.cs (2)
21if (!match.Success) 34=> group.Success ? group.Value : default;
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
285Assert.True(match1.Success); 287Assert.True(match2.Success);
Aspire.Hosting.Python (2)
PythonVersionDetector.cs (2)
37if (match.Success) 93if (match.Success && match.Groups.Count > 2)
Aspire.Hosting.SqlServer (2)
SqlServerBuilderExtensions.cs (2)
270if (matchGo.Success) 273var count = matchGo.Groups["repeat"].Success ? int.Parse(matchGo.Groups["repeat"].Value, CultureInfo.InvariantCulture) : 1;
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
199if (namedInstancePipeMatch.Success)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
199if (namedInstancePipeMatch.Success)
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
214if (m.Success)
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
106if (!match.Success)
dotnet (1)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
660if (match.Success)
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
dotnet-format.UnitTests (5)
CodeFormatterTests.cs (5)
183Assert.True(match.Success, log); 250Assert.True(match.Success, log); 267.Where(line => FindFormattingLogLine.Match(line).Success) 318.Where(line => FindFormattingLogLine.Match(line).Success); 340Assert.True(match.Success, log);
dotnet-new.IntegrationTests (1)
DotnetNewDetailsTest.Approval.cs (1)
222if (match.Success)
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
565if (m.Success) 575if (m.Success)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
67if (match.Success) 190if (match.Success)
dotnet-watch (2)
Process\WebServerProcessStateObserver.cs (1)
41if (!match.Success)
UI\BuildOutput.cs (1)
36else if (s_buildDiagnosticRegex.Match(line) is { Success: true } match)
dotnet-watch.Tests (1)
Build\EvaluationTests.cs (1)
566if (!match.Success)
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
321Assert.True(processIdMatch.Success, $"'{processIdPattern}' did not match '{aspnetcorev2Log}'"); 356Assert.True(prefixMatch.Success, $"'{prefixPattern}' did not match '{log}'");
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
321Assert.True(processIdMatch.Success, $"'{processIdPattern}' did not match '{aspnetcorev2Log}'"); 356Assert.True(prefixMatch.Success, $"'{prefixPattern}' did not match '{log}'");
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
158(numberListMatch = NumberListPrefix.Match(lines[i])).Success)
InteropTests (1)
Helpers\WebsiteProcess.cs (1)
72if (m.Success)
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
41if (!match.Success)
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
77if (namedSpanStartMatch.Success)
Microsoft.AspNetCore.Components.Endpoints.Tests (16)
EndpointHtmlRendererTest.cs (16)
88Assert.True(match.Success); 178Assert.True(match.Success); 222Assert.True(match.Success); 260Assert.True(match.Success); 296Assert.True(match.Success); 346Assert.True(match.Success); 405Assert.True(match.Success); 437Assert.True(match.Success); 502Assert.True(firstMatch.Success); 513Assert.True(secondMatch.Success); 556Assert.True(match.Success); 595Assert.True(match.Success); 634Assert.True(match.Success); 685Assert.True(match.Success); 1317Assert.True(match.Success); 1650Assert.True(wasmOptionsMatch.Success);
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\ComponentHubTest.cs (2)
35mockClientProxy.Verify(m => m.SendCoreAsync("JS.Error", It.Is<object[]>(s => Regex.Match((string)s[0], errorMessage).Success), It.IsAny<CancellationToken>()), Times.Once()); 197mockClientProxy.Verify(m => m.SendCoreAsync("JS.Error", It.Is<object[]>(s => Regex.Match((string)s[0], errorMessage).Success), It.IsAny<CancellationToken>()), Times.Once());
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (2)
215if (matchFirefox.Success && isFirefox) 224if (match.Success)
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
66if (!match.Success) 181if (!match.Success)
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
66if (!match.Success) 181if (!match.Success)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1362Assert.True(confirmationMatch.Success); 1374Assert.True(confirmationMatch.Success);
Microsoft.AspNetCore.Rewrite (3)
RedirectRule.cs (1)
43if (initMatchResults.Success)
RewriteRule.cs (1)
40if (initMatchResults.Success)
UrlMatches\RegexMatch.cs (1)
21return new MatchResults(success: res.Success != Negate, new BackReferenceCollection(res.Groups));
Microsoft.AspNetCore.Rewrite.Tests (6)
IISUrlRewrite\InputParserTests.cs (2)
180return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 186return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
IISUrlRewrite\ServerVariableTests.cs (2)
162return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 168return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\ConditionMatchSegmentTests.cs (1)
32return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\RuleMatchSegmentTests.cs (1)
31return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
156if (m.Success)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
212if (m.Success)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamReader.cs (1)
57if (match.Success)
Microsoft.Build (26)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
87if (sectionMatch.Success && sectionMatch.Groups.Count > 0) 100if (propMatch.Success && propMatch.Groups.Count > 1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
46if (!match.Success)
CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
Construction\Solution\SolutionFile.cs (4)
1078ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1096ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1504ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1604ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
DebugUtils.cs (1)
75if (!match.Success)
Evaluation\Expander.cs (7)
1156ErrorUtilities.VerifyThrow(itemMetadataMatch.Success, "Need a valid item metadata."); 2996if (!match.Success) 3006while (match.Success) 3021bool isSingleMatch = multipleMatches == null && !nextMatch.Success; 3575if (!match.Success) 3601while (match.Success); 3627while (match.Success);
Evaluation\IntrinsicFunctions.cs (1)
295if (m.Success && m.Groups.Count >= 1 && valueName.Equals("InstallRoot", StringComparison.OrdinalIgnoreCase))
FileMatcher.cs (1)
1878isMatch = match.Success;
ProjectWriter.cs (1)
154ErrorUtilities.VerifyThrow(itemVectorTransform.Success,
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
220match.Success.ShouldBeTrue("Expected Warnings section not found in the build output.");
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
2815if (match.Success) 2842if (match.Success)
Microsoft.Build.Engine.OM.UnitTests (1)
DebugUtils.cs (1)
75if (!match.Success)
Microsoft.Build.Engine.UnitTests (15)
FileUtilitiesRegex_Tests.cs (12)
200match.Success.ShouldBeTrue(); 204match.Success.ShouldBeTrue(); 266match.Success.ShouldBeTrue(); 270match.Success.ShouldBeTrue(); 321match.Success.ShouldBeTrue(); 325match.Success.ShouldBeTrue(); 386match.Success.ShouldBeTrue(); 390match.Success.ShouldBeTrue(); 451match.Success.ShouldBeFalse(); 454match.Success.ShouldBeFalse(); 514match.Success.ShouldBeFalse(); 517match.Success.ShouldBeFalse();
NetTaskHost_E2E_Tests.cs (3)
82msBuildDllPathMatch.Success.ShouldBeTrue(); 97if (arg1Match.Success) 112if (cmdLineMatch.Success)
Microsoft.Build.Tasks.CodeAnalysis (7)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (7)
302if (!match.Success) 333if (match.Success) 352if (match.Success) 359if (match.Success) 367if (match.Success) 375if (match.Success) 384if (match.Success)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (7)
src\Compilers\Core\MSBuildTask\CanonicalError.cs (7)
302if (!match.Success) 333if (match.Success) 352if (match.Success) 359if (match.Success) 367if (match.Success) 375if (match.Success) 384if (match.Success)
Microsoft.Build.Tasks.Core (16)
AssemblyDependency\AssemblyFoldersExResolver.cs (1)
127if (match.Success)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
103if (match.Success)
BootstrapperUtil\BuildMessage.cs (1)
34if (match.Success)
CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
DebugUtils.cs (1)
75if (!match.Success)
FileMatcher.cs (1)
1878isMatch = match.Success;
FindInvalidProjectReferences.cs (1)
126if (match.Success)
NativeMethods.cs (1)
1398if (match.Success)
ResolveSDKReference.cs (1)
587if (match.Success)
Microsoft.Build.Utilities.Core (10)
CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
DebugUtils.cs (1)
75if (!match.Success)
FileMatcher.cs (1)
1878isMatch = match.Success;
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
45if (!match.Success)
SourceGeneration\AdditionalSourcesCollection.cs (1)
70if (s_invalidSegmentPattern.Match(hintName) is { Success: true } match)
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
4802Assert.True(match.Success, $"Expected pattern:{Environment.NewLine}{pattern}{Environment.NewLine}Actual:{Environment.NewLine}{output}");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2496Assert.True(m.Success, $"Expected regex to match in {il}");
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
4060for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch()) 4088for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch())
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
148if (match.Success && match.Groups["key"].Value is string isolatedKey &&
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Semantics\SpeculationAnalyzerTestsBase.cs (1)
32Assert.True(initialMatch.Success);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
371if (match.Success)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
40if (!match.Success)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
341Assert.True(match.Success);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\DiagnosticDescription.cs (2)
476var fmtSpecifier = match.Groups.Count > 1 && match.Groups[1].Success ? match.Groups[1].Value : ""; 559if (Regex.Match(message, @"{\d+}").Success)
Diagnostics\DiagnosticsHelper.cs (1)
21Assert.True(match.Success, "Could not find a match for \"" + pattern + "\" in:" + Environment.NewLine + source);
MarkedSource\MarkupTestFile.cs (1)
79if (namedSpanStartMatch.Success)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Workspace\Solution\ProjectInfo.cs (1)
530return match.Success ? (match.Groups["name"].Value, match.Groups["flavor"].Value) : default;
Microsoft.Data.Analysis (4)
TextFieldParser.cs (4)
81if (!delimiterMatch.Success) 101if (delimiterMatch.Success) 789quoteDelimited = matchResult.Success; 854if (delimiterMatch.Success)
Microsoft.Data.Analysis.Tests (4)
src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
81if (!delimiterMatch.Success) 101if (delimiterMatch.Success) 789quoteDelimited = matchResult.Success; 854if (delimiterMatch.Success)
Microsoft.DotNet.Arcade.Sdk (2)
src\CheckRequiredDotNetVersion.cs (1)
83if (!match.Success)
src\LocateDotNet.cs (1)
62if (!match.Success)
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
233if (m.Success)
Microsoft.DotNet.Build.Tasks.Feed (6)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
38if (!parsedUri.Success)
src\BlobFeedAction.cs (1)
43if (m.Success)
src\BlobUrlInfo.cs (2)
42if (hostNameMatch.Success) 55if (containerAndBlobMatch.Success)
src\PublishArtifactsInManifestBase.cs (2)
1376if (!parsedUri.Success) 1795if (!parsedUri.Success)
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateWixBuildWixpack.cs (3)
959if (!eqMatch.Success) 971value = eqMatch.Groups[3].Success ? eqMatch.Groups[3].Value : eqMatch.Groups[4].Value; 976value = eqMatch.Groups[5].Success ? eqMatch.Groups[5].Value : eqMatch.Groups[6].Value;
src\GenerateCurrentVersion.cs (1)
100if (match.Success && match.Groups.Count > 2)
Microsoft.DotNet.Git.IssueManager (3)
Clients\AzureDevOpsClient.cs (2)
70if (!m.Success) 73if (!m.Success)
Clients\GitHubClient.cs (1)
104if (!match.Success)
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
284if (queueInfoSplit.Success && queueInfoSplit.Groups.Count == 3)
Microsoft.DotNet.SignCheckLibrary (2)
Utils.cs (1)
131match.Success ? match.Groups[groupName].Value : null;
Verification\JavaScriptVerifier.cs (1)
29if (match.Success)
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1208if (CompilerGeneratedNameRegex().Match(memberName) is { Success: true } match)
Microsoft.Extensions.AI.Evaluation.Quality (2)
EvaluationMetricExtensions.cs (2)
106if (!match.Success || match.Groups["value"] is not Group valueGroup || !valueGroup.Success)
Microsoft.ML.Data (7)
Commands\EvaluateCommand.cs (1)
81if (!match.Success)
Dirty\IniFileUtils.cs (1)
42Contracts.Check(match.Success, "Unable to retrieve number of evaluators from ini");
EntryPoints\EntryPointNode.cs (5)
764return str != null && _stageIdRegex.Match(str).Success; 1075if (!match.Success) 1078if (match.Groups["NumericAccessor"].Success) 1085if (match.Groups["StringAccessor"].Success) 1109return _variableRegex.Match(variableName).Success;
Microsoft.ML.ResultProcessor (4)
ResultProcessor.cs (4)
610if (mc.Success) 619if (mc.Success) 796if (matchNameValueDeviation.Success) 816if (matchNameValue.Success)
Microsoft.NET.Build.Containers (5)
ContainerHelpers.cs (5)
191if (referenceMatch is not { Success: true }) 210if (nameMatch is { Success: true }) 218isRegistrySpecified = registryPortion.Success; 247containerTag = tagPortion.Success ? tagPortion.Value : null; 251containerDigest = digestPortion.Success ? digestPortion.Value : null;
Microsoft.NET.Build.Tasks.UnitTests (2)
GivenThatWeHaveErrorCodes.cs (2)
65match.Success 73match.Success
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (4)
WasmPwaManifestTests.cs (4)
170match.Success.Should().BeTrue(); 187updatedMatch.Success.Should().BeTrue(); 220match.Success.Should().BeTrue(); 233updatedMatch.Success.Should().BeTrue();
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTelemetry.cs (1)
101if (match.Success)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
UpdateExternallyDefinedStaticWebAssets.cs (1)
80if (match.Success)
Microsoft.NET.Sdk.StaticWebAssets.Tests (42)
ScopedCssIntegrationTests.cs (7)
155Assert.True(counterScopeMatch.Success, "Couldn't find a scope id in the generated Counter scoped css file."); 159Assert.True(indexScopeMatch.Success, "Couldn't find a scope id in the generated Index scoped css file."); 187Assert.True(indexScopeMatch.Success, "Couldn't find a scope id in the generated Index scoped css file."); 191Assert.True(aboutScopeMatch.Success, "Couldn't find a scope id in the generated About scoped css file."); 195Assert.True(contactScopeMatch.Success, "Couldn't find a scope id in the generated Contact scoped css file."); 224Assert.True(indexScopeMatch.Success, "Couldn't find a scope id in the generated Index scoped css file."); 228Assert.True(counterScopeMatch.Success, "Couldn't find a scope id in the generated Counter scoped css file.");
StaticWebAssetEndpointsIntegrationTest.cs (32)
85Success: true, 88{ Name: "project", Value: "ComponentApp", Success: true, }, 89{ Name: "fingerprint", Value: "", Success: false }, 90{ Name: "compress", Value: "", Success: false } 96Success: true, 99{ Name: "project", Value: "ComponentApp", Success: true, }, 100{ Name: "fingerprint", Value: "", Success: false }, 101{ Name: "compress", Value: var compress, Success: true } 107Success: true, 110{ Name: "project", Value: "ComponentApp", Success: true, }, 111{ Name: "fingerprint", Value: var fingerprint, Success: true }, 112{ Name: "compress", Value: "", Success: false } 118Success: true, 121{ Name: "project", Value: "ComponentApp", Success: true, }, 122{ Name: "fingerprint", Value: var fingerprint, Success: true }, 123{ Name: "compress", Value: var compress, Success: true } 130Success: true, 133{ Name: "project", Value: "ComponentApp", Success: true, }, 134{ Name: "fingerprint", Value: "", Success: false }, 135{ Name: "compress", Value: "", Success: false } 141Success: true, 144{ Name: "project", Value: "ComponentApp", Success: true, }, 145{ Name: "fingerprint", Value: "", Success: false }, 146{ Name: "compress", Value: var compress, Success: true } 152Success: true, 155{ Name: "project", Value: "ComponentApp", Success: true, }, 156{ Name: "fingerprint", Value: var fingerprint, Success: true }, 157{ Name: "compress", Value: "", Success: false } 163Success: true, 166{ Name: "project", Value: "ComponentApp", Success: true, }, 167{ Name: "fingerprint", Value: var fingerprint, Success: true }, 168{ Name: "compress", Value: var compress, Success: true }
StaticWebAssets\OverrideHtmlAssetPlaceholdersTest.cs (3)
118Assert.Equal(shouldMatch, match.Success); 180Assert.Equal(shouldMatch, OverrideHtmlAssetPlaceholders._importMapRegex.Match(input).Success); 283Assert.Equal(shouldMatch, match.Success);
Microsoft.NET.TestFramework (4)
Assertions\CommandResultAssertions.cs (3)
102Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeTrue(AppendDiagnosticsTo($"Matching the command output failed. Pattern: {pattern}{Environment.NewLine}")); 109Regex.Match(_commandResult.StdOut ?? string.Empty, pattern, options).Success.Should().BeFalse(AppendDiagnosticsTo($"The command output matched a pattern it should not have. Pattern: {pattern}{Environment.NewLine}")); 153Regex.Match(_commandResult.StdErr ?? string.Empty, pattern, options).Success.Should().BeTrue(AppendDiagnosticsTo($"Matching the command error output failed. Pattern: {pattern}{Environment.NewLine}"));
Utilities\DotnetVersionHelper.cs (1)
14if (!match.Success)
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (4)
905QuoteDelimited = MatchResult.Success 970If DelimiterMatch.Success Then 1648If Not DelimiterMatch.Success Then 1664If DelimiterMatch.Success Then
Microsoft.Win32.Msi (4)
ActionStartEventArgs.cs (3)
50ActionTime = match.Success ? match.Groups["actionTime"].Value : null; 51ActionName = match.Success ? match.Groups["actionName"].Value : null; 52ActionDescription = match.Success ? match.Groups["actionDescription"].Value : null;
ProgressEventArgs.cs (1)
35while (match.Success)
MSBuild (1)
DebugUtils.cs (1)
75if (!match.Success)
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
SDDLTests (1)
Program.cs (1)
109if (m.Success)
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
211if (!match.Success)
System.Data.Common (1)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
444if (!match.Success || (match.Length != connectionString.Length))
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
444if (!match.Success || (match.Length != connectionString.Length))
System.Private.Xml (12)
System\Xml\Serialization\SourceInfo.cs (2)
71if (match.Success) 192if (match.Success)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
2708if (match.Success) 2754if (match.Success) 2798if (match.Success) 2834if (match.Success) 3522if (match.Success) 3532if (match.Success) 3544if (match.Success) 3556if (match.Success) 3570if (match.Success) 3583if (match.Success)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Group.cs (1)
51if (inner.Success)
System\Text\RegularExpressions\Match.cs (2)
85/// The main difference between the public <see cref="Group.Success"/> property and this one, is that <see cref="Group.Success"/> requires
System\Text\RegularExpressions\MatchCollection.cs (1)
93if (!match.Success)
System\Text\RegularExpressions\Regex.cs (1)
549if (!match.Success)
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
195if (match.Success)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
313for (var match = s_msbuildPropertyRegex.Match(unevaluatedString); match.Success; match = match.NextMatch())
Templates.Blazor.Tests (3)
BlazorWasmTemplateTest.cs (1)
120Assert.True(serviceWorkerAssetsManifestVersionMatch.Success);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Templates.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
821if (!match.Success)
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
VersioningWebSite (1)
VersionRouteAttribute.cs (1)
54if (!match.Success)
XmlFileLogger (1)
XmlFileLogger.cs (1)
137if (match.Success)
xunit.assert (2)
StringAsserts.cs (2)
540 if (match.Success) 570 if (match.Success)