303 references to Equals
aspire (1)
Telemetry\WindowsMachineInformationProvider.cs (1)
69var matchingKeyName = key.GetValueNames().SingleOrDefault(x => string.Equals(x, keyName), null);
Aspire.Cli.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard (1)
Components\Pages\IPageWithSessionAndUrlState.cs (1)
103if (string.Equals(page.BasePath, page.NavigationManager.ToBaseRelativePath(page.NavigationManager.Uri)))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting (1)
Dashboard\DashboardServiceData.cs (1)
320if (!string.Equals(modelInput.Value ?? string.Empty, incomingValue ?? string.Empty) || requestInput.InputType == InputType.File)
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
673&& !string.Equals(new UriBuilder(u.Url).Host, "localhost")) is { } tunnelUrl)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting.Tests (3)
Dcp\TestKubernetesService.cs (3)
59string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 276string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 342string.Equals(r.Metadata.NamespaceProperty, obj.Metadata.NamespaceProperty)
Aspire.Hosting.TestUtilities (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Binding.Http.IntegrationTests (1)
NetHttpsBindingTests.4.1.0.cs (1)
38Assert.True(String.Equals(testString, result), String.Format("Expected result was {0}. Actual was {1}", testString, result));
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelShapeTests.4.1.0.cs (1)
57Assert.True(String.Equals(expectedMessageID, actualMessageID), String.Format("Expected Message ID was {0}. Actual was {1}", expectedMessageID, actualMessageID));
Client.ClientBase.IntegrationTests (13)
ChannelBaseTests.4.0.0.cs (5)
41Assert.True(String.Equals(echoText, result), 90Assert.True(String.Equals(expected, actual), 94Assert.True(String.Equals(expected, actual), 144Assert.True(String.Equals(expected, actual), 148Assert.True(String.Equals(expected, actual),
ClientBaseTests.4.0.0.cs (4)
565Assert.True(String.Equals(expected, actual), 569Assert.True(String.Equals(expected, actual), 619Assert.True(String.Equals(expected, actual), 623Assert.True(String.Equals(expected, actual),
MessageInspectorTests.4.4.0.cs (4)
47Assert.True(String.Equals(result1.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/Actual Error Description: {1}", expectedErrorDescription, result2.Result)); 54Assert.True(String.Equals(result2.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/nActual Error Description: {1}", expectedErrorDescription, result2.Result)); 96Assert.True(String.Equals(authorizationHeaderValue, accessToken), String.Format("Expected Authorization Header value: {0}/nActual Authorization Header value: {1}", accessToken, authorizationHeaderValue)); 97Assert.True(String.Equals(authTypeHeaderValue, authType.ToString()), String.Format("Expected AuthType Header value: {0}/nActual AuthType Header value: {1}", authType.ToString(), authTypeHeaderValue));
Client.ExpectedExceptions.IntegrationTests (9)
ExpectedExceptionTests.4.0.0.cs (4)
49Assert.True(String.Equals(exception.Message, exceptionMsg), String.Format("Expected exception message: {0}\nActual exception message: {1}", exceptionMsg, exception.Message)); 179Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message)); 214Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message)); 354Assert.True((String.Equals("test", results[i])),
ExpectedExceptionTests.4.1.0.cs (5)
273Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 274Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 326Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 327Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 604Assert.True((String.Equals("test", results[i])),
Client.TypedClient.IntegrationTests (11)
TypedProxyTests.4.0.0.cs (11)
139Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 202Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 252Assert.True(String.Equals(replyMessageAction, action + "Response"), 261Assert.True(String.Equals(actualResponse, expectedResponse), 316Assert.True(String.Equals(replyMessageAction, action + "Response"), 325Assert.True(String.Equals(actualResponse, expectedResponse), 381Assert.True(String.Equals(replyMessageAction, action + "Response"), 390Assert.True(String.Equals(actualResponse, expectedResponse), 482Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 523Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 556Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
Contract.Data.IntegrationTests (1)
DataContractTests.4.0.0.cs (1)
45Assert.True(String.Equals(response.StringValue, expectedStringValue), String.Format("Expected CompositeType.StringValue \"{0}\", actual was \"{1}\"",
Contract.Fault.IntegrationTests (2)
FaultExceptionTests.4.0.0.cs (2)
45Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message)); 79Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message));
Contract.Message.IntegrationTests (4)
MessageContractTests.4.4.0.cs (3)
43Assert.True(String.Equals(requestData.accountName, replyData.accountName), 51Assert.True(String.Equals(requestData.requestSingleValue, replyData.replySingleValue), 112Assert.True(String.Equals(testString, response.TestResult),
MessageTests.4.0.0.cs (1)
50Assert.True(string.Equals(actualResponse, expectedResponse),
Contract.Service.IntegrationTests (7)
ServiceContractTests.4.1.0.cs (7)
657Assert.True(string.Equals(result, "Hello " + echoString), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello " + echoString, result)); 736Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 739Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2), 826Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 829Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2), 917Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 920Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2),
dotnet-svcutil-lib (8)
CodeDomFixup\ConfigToCode.cs (1)
314if (ctor.Parameters.Count > 0 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(InstanceContext).FullName))
FrameworkFork\Microsoft.Xml\Xml\Ref.cs (1)
20if (((object)strA != (object)strB) && string.Equals(strA, strB))
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (5)
211if (String.Equals(_nsdecls[declIndex].uri, uri) && _nsdecls[declIndex].scopeId == _scopeId) 315if (String.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 329if (String.Equals(_nsdecls[thisDecl].uri, uri)) 332if (String.Equals(LookupNamespace(prefix), uri)) 346if (String.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
324if (string.Equals(keyval[0], X509SubjectAlternativeNameConstants.Identifier))
Encoding.Encoders.IntegrationTests (2)
BinaryEncodingTests.4.0.0.cs (1)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
TextEncodingTests.4.0.0.cs (1)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Encoding.MessageVersion.IntegrationTests (7)
MessageVersionTests.4.0.0.cs (2)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
MessageVersionTests.cs (5)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 111Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 147Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 183Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Microsoft.AspNetCore.Analyzers (1)
OptionsFacts.cs (1)
16if (string.Equals(item.OptionsType.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), SymbolNames.MvcOptions.MetadataName) &&
Microsoft.AspNetCore.Components (1)
ParameterView.cs (1)
70if (string.Equals(entry.Name, parameterName))
Microsoft.AspNetCore.Components.Web (2)
Forms\InputRadioContext.cs (1)
34=> string.Equals(GroupName, groupName) ? this : ParentContext?.FindContextInAncestors(groupName);
Forms\Mapping\FormMappingScope.cs (1)
56else if (!string.Equals(Name, _cascadingValueSupplier.MappingScopeName))
Microsoft.AspNetCore.Components.WebAssembly.Authentication (2)
Options\DefaultApiAuthorizationOptionsConfiguration.cs (1)
26if (string.Equals(name, Options.DefaultName))
Options\DefaultOidcProviderOptionsConfiguration.cs (1)
37if (string.Equals(name, Options.DefaultName))
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (2)
111if (string.Equals(fileExtension, ".gz") || string.Equals(fileExtension, ".br"))
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
133if (!string.Equals(purp, purpose))
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
63return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.AspNetCore.Mvc.TagHelpers (2)
InputTagHelper.cs (2)
422if (string.Equals(inputType, "file") && 496if (string.Equals("text", inputType) &&
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
parent\parent\parent\common\testassets\Tests.Utils\TestClient.cs (2)
129if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId)) 162if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId))
Microsoft.Build (1)
Graph\ProjectGraph.cs (1)
720ProjectGraphNode GetNodeForProject(ProjectInSolution project) => EntryPointNodes.First(node => string.Equals(node.ProjectInstance.FullPath, project.AbsolutePath));
Microsoft.Build.Framework (2)
Utilities\EventArgsFormatting.cs (1)
313if (!string.Equals(projectFile, file))
Utilities\FrameworkLocationHelper.cs (1)
953if (string.Equals(programFiles, programFiles32))
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\AssemblyInformation.cs (1)
571if (!string.Equals(metadataReader.GetString(name), "TargetFrameworkAttribute"))
ResolveSDKReference.cs (1)
1264if (!String.IsNullOrEmpty(TargetPlatform) && !String.Equals(targetPlatformIdentifier, TargetPlatform) && (!PlatformAliases.TryGetValue(TargetPlatform, out string platform) || !String.Equals(targetPlatformIdentifier, platform, StringComparison.OrdinalIgnoreCase)))
system.design\stronglytypedresourcebuilder.cs (3)
660String.Equals(typeName, valueAsString)) // If the type did not override ToString, ToString just returns the type name. 763if (String.Equals(key, ResMgrPropertyName) || String.Equals(key, CultureInfoPropertyName))
WriteCodeFragment.cs (1)
438if (string.Equals(parameter.Type.TypeName, "System.Type"))
Microsoft.CodeAnalysis (8)
Diagnostic\LocalizableResourceString.FixedLocalizableString.cs (1)
44return fixedStr != null && string.Equals(_fixedString, fixedStr._fixedString);
InternalUtilities\StringOrdinalComparer.cs (1)
33return string.Equals(a, b);
RuleSet\RuleSetProcessor.cs (6)
209if (string.Equals(action, RuleActionWarningValue)) 213else if (string.Equals(action, RuleActionErrorValue)) 217else if (string.Equals(action, RuleActionInfoValue)) 221else if (string.Equals(action, RuleActionHiddenValue)) 225else if (string.Equals(action, RuleActionNoneValue)) 229else if (string.Equals(action, RuleActionDefaultValue) && allowDefault)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
65if (!string.Equals(Name, other.Name))
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractContextVariableArgumentProvider.cs (2)
155if (string.Equals(bestSymbol.Name, context.Parameter.Name)) 156return string.Equals(symbol.Name, context.Parameter.Name);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2374if (lastOldStartLine == oldStartLine && string.Equals(lastOldFilePath, oldMappedSpan.Path))
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Source\LocalSymbol.vb (1)
622Return other IsNot Nothing AndAlso other._identifierToken.Equals(Me._identifierToken) AndAlso Equals(other._container, Me._container) AndAlso String.Equals(other.Name, Me.Name)
Symbols\TypeSymbolExtensions.vb (4)
1324If Not String.Equals(typeSymbol.Name, name) Then 1353If Not String.Equals(innerNamespace?.Name, innerNS) Then 1361If Not String.Equals(midNamespace?.Name, midNS) Then 1366If Not String.Equals(outerNamespace?.Name, outerNS) Then
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
132If String.Equals(Me._path, path) Then
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
157If String.Equals(Me._path, path) Then
Microsoft.Data.Analysis (1)
DataFrame.cs (1)
801if (string.Equals(variableName, valueName))
Microsoft.Deployment.DotNet.Releases (1)
ReleaseFile.cs (1)
131if (!string.Equals(destinationPath, tempPath))
Microsoft.DotNet.Build.Tasks.Workloads (8)
Msi\WixXmlExtensions.cs (5)
51if (_registryValueParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 85if (_registryKeyParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 113if (_componentGroupRefParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 133if (_directoryParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 149if (_directoryParentElements.Any(e => string.Equals(e, element.Name.LocalName)))
Swix\SwixComponent.cs (1)
158ITaskItem? resourceItem = componentResources?.Where(r => string.Equals(r.ItemSpec, workload.Id)).FirstOrDefault();
WorkloadPackageBase.cs (2)
289if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Split('.').Any(s => string.Equals("ci", s) || string.Equals("dev", s)))
Microsoft.DotNet.PackageValidation (1)
ContentItemEqualityComparer.cs (1)
16public bool Equals(ContentItem? x, ContentItem? y) => string.Equals(x?.Path, y?.Path);
Microsoft.Extensions.DependencyModel (2)
Dependency.cs (2)
31return string.Equals(Name, other.Name) && string.Equals(Version, other.Version);
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
GenerateEmbeddedResourcesManifest.cs (2)
93private static string GetManifestPath(ITaskItem taskItem) => string.IsNullOrEmpty(taskItem.GetMetadata(LogicalName)) || string.Equals(taskItem.GetMetadata(LogicalName), taskItem.GetMetadata(ManifestResourceName)) ? 97private static string GetAssemblyResourceName(ITaskItem taskItem) => string.IsNullOrEmpty(taskItem.GetMetadata(LogicalName)) || string.Equals(taskItem.GetMetadata(LogicalName), taskItem.GetMetadata(ManifestResourceName)) ?
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
174if (string.Equals(file, normPath))
Microsoft.Extensions.Identity.Core (3)
RoleValidator.cs (1)
59!string.Equals(await manager.GetRoleIdAsync(owner).ConfigureAwait(false), await manager.GetRoleIdAsync(role).ConfigureAwait(false)))
UserValidator.cs (2)
71!string.Equals(await manager.GetUserIdAsync(owner).ConfigureAwait(false), await manager.GetUserIdAsync(user).ConfigureAwait(false))) 99!string.Equals(await manager.GetUserIdAsync(owner).ConfigureAwait(false), await manager.GetUserIdAsync(user).ConfigureAwait(false)))
Microsoft.Extensions.Logging.Console (1)
JsonConsoleFormatter.cs (1)
86if (!string.Equals(message, stateMessage))
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\CreateParameterFile.cs (1)
155if (string.Equals(parameterIdentities[i], ExistingDeclareParameterMetadata.Match.ToString().ToLowerInvariant()))
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
MergeStaticWebAssets.cs (1)
158var (targetAsset, sourceAsset) = string.Equals(leftMergeSource, mergeTarget) ? (left, right) : (right, left);
ScopedCss\ConcatenateCssFiles.cs (1)
113return string.Equals(content, outputContent);
ScopedCss\ConcatenateCssFiles50.cs (1)
112return string.Equals(content, outputContent);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
DirectoryBasedTemplate.cs (1)
178IFile? partialConfigFile = (primarySourceConfig.Parent?.EnumerateFiles(partialConfigFileName, SearchOption.TopDirectoryOnly).FirstOrDefault(x => string.Equals(x.Name, partialConfigFileName)))
Microsoft.TemplateEngine.Utils (1)
RangeVersionSpecification.cs (1)
126return string.Equals(version, "*");
Microsoft.TestPlatform.CrossPlatEngine (10)
Client\Parallel\ParallelDiscoveryEventsHandler.cs (2)
171if (string.Equals(message.MessageType, MessageType.TestMessage) 178if (!string.Equals(MessageType.DiscoveryComplete, message.MessageType))
Client\Parallel\ParallelRunEventsHandler.cs (1)
174if (!string.Equals(MessageType.ExecutionComplete, message.MessageType))
Client\ProxyDiscoveryManager.cs (1)
279if (string.Equals(message.MessageType, MessageType.DiscoveryComplete))
Client\ProxyExecutionManager.cs (1)
377if (string.Equals(message.MessageType, MessageType.ExecutionComplete))
Client\TestLoggerManager.cs (1)
554.FirstOrDefault(x => string.Equals(x.AssemblyQualifiedName, assemblyQualifiedName));
DataCollection\DataCollectionTestRunEventsHandler.cs (1)
96if (string.Equals(MessageType.ExecutionComplete, message.MessageType))
DataCollection\InProcDataCollector.cs (1)
87filterPredicate = x => string.Equals(x.AssemblyQualifiedName, assemblyQualifiedName) && interfaceType.IsAssignableFrom(x);
Discovery\DiscovererEnumerator.cs (1)
498if (StringUtils.IsNullOrEmpty(extensionAssembly) || string.Equals(extensionAssembly, ObjectModel.Constants.UnspecifiedAdapterPath))
Execution\BaseRunTests.cs (1)
580|| string.Equals(extensionAssembly, ObjectModel.Constants.UnspecifiedAdapterPath))
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (22)
VsTestConsoleRequestSender.cs (22)
586if (string.Equals(MessageType.TestCasesFound, message.MessageType)) 593else if (string.Equals(MessageType.DiscoveryComplete, message.MessageType)) 618else if (string.Equals(MessageType.TestMessage, message.MessageType)) 678if (string.Equals(MessageType.TestCasesFound, message.MessageType)) 685else if (string.Equals(MessageType.DiscoveryComplete, message.MessageType)) 712else if (string.Equals(MessageType.TestMessage, message.MessageType)) 765if (string.Equals(MessageType.TestRunStatsChange, message.MessageType)) 772else if (string.Equals(MessageType.ExecutionComplete, message.MessageType)) 787else if (string.Equals(MessageType.TestMessage, message.MessageType)) 796else if (string.Equals(MessageType.CustomTestHostLaunch, message.MessageType)) 800else if (string.Equals(MessageType.EditorAttachDebugger, message.MessageType) || string.Equals(MessageType.EditorAttachDebugger2, message.MessageType)) 804else if (string.Equals(MessageType.TelemetryEventMessage, message.MessageType)) 852if (string.Equals(MessageType.TestRunStatsChange, message.MessageType)) 858else if (string.Equals(MessageType.ExecutionComplete, message.MessageType)) 873else if (string.Equals(MessageType.TestMessage, message.MessageType)) 881else if (string.Equals(MessageType.CustomTestHostLaunch, message.MessageType)) 885else if (string.Equals(MessageType.EditorAttachDebugger, message.MessageType)) 889else if (string.Equals(MessageType.TelemetryEventMessage, message.MessageType)) 951if (string.Equals( 967else if (string.Equals( 978else if (string.Equals(MessageType.TestMessage, message.MessageType))
Microsoft.VisualStudio.TestPlatform.Common (1)
ExtensionFramework\Utilities\TestExtensions.cs (1)
438if (string.Equals(extensionType?.Assembly.GetAssemblyLocation(), extensionAssembly))
Microsoft.VisualStudio.TestPlatform.ObjectModel (6)
Client\FilterOptions.cs (2)
43string.Equals(FilterRegEx, other.FilterRegEx) && 44string.Equals(FilterRegExReplacement, other.FilterRegExReplacement);
Client\TestRunCriteria.cs (2)
633&& string.Equals(TestCaseFilter, other.TestCaseFilter) 848&& string.Equals(TestRunSettings, other.TestRunSettings)
Utilities\XmlRunSettingsUtilities.cs (2)
243while (!string.Equals(reader.Name, Constants.DataCollectionRunSettingsName) && !reader.EOF) 287while (!string.Equals(reader.Name, Constants.InProcDataCollectionRunSettingsName) && !reader.EOF)
PresentationBuildTasks (4)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
3459isName = String.Equals(attributeName, propertyName); 3464isName = String.Equals(attributeName, "Name") && String.Equals(attribNamespaceURI, DefinitionNamespaceURI);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
623if (String.Equals(_nsDeclarations[thisDecl].Prefix, prefix))
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
PresentationFramework (3)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
356if (!String.Equals(oldValue, newValue))
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
System\Windows\Markup\XmlnsDictionary.cs (1)
623if (String.Equals(_nsDeclarations[thisDecl].Prefix, prefix))
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
80Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Security.TransportSecurity.IntegrationTests (10)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
78Assert.True(String.Equals(result, testString),
Https\HttpsTests.4.1.0.cs (4)
87success = string.Equals(result, testString); 126success = string.Equals(result, testString); 165success = string.Equals(result, testString); 204success = string.Equals(result, testString);
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (2)
72if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 149if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
Tcp\StreamingTests.4.1.0.cs (3)
278Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 319Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 360Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
System.Collections.Immutable (6)
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_Full.cs (1)
27private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSingleChar.cs (1)
24private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSubstring.cs (1)
25private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSingleChar.cs (1)
24private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSubstring.cs (1)
25private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
55private protected virtual bool Equals(string? x, string? y) => string.Equals(x, y);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReferenceConverter.cs (1)
51if (!string.Equals(text, s_none) && context != null)
System.Diagnostics.TraceSource (1)
System\Diagnostics\SourceFilter.cs (1)
24return string.Equals(_src, source);
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
716private static bool IsIdFile(string file) => string.Equals(Path.GetFileName(file), "identity.dat"); 718private static bool IsInfoFile(string file) => string.Equals(Path.GetFileName(file), "info.dat");
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
54return other != null && string.Equals(IdnHost, other.IdnHost) && Port == other.Port;
System.Net.Security (2)
System\Net\Security\NegotiateAuthentication.cs (1)
129!string.Equals(Package, NegotiationInfoClass.NTLM) &&
System\Net\Security\NegotiateStream.cs (1)
794isNtlm = string.Equals(_context.Package, NegotiationInfoClass.NTLM);
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
321public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
48return string.Equals(x, y); 83public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (1)
60public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
60return string.Equals(a, b); 68return string.Equals(sa, sb);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1031Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (7)
182if (string.Equals(strAttrName, name)) 220if (!string.Equals(_tag, other._tag)) 224if (!string.Equals(_text, other._text)) 248if (!string.Equals(lhs, rhs)) 487if (string.Equals(strAttrName, name)) 513if (current != null && string.Equals(current.Tag, tag)) 528if (string.Equals(_tag, tag))
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
684public static bool operator ==(string? a, string? b) => Equals(a, b); 686public static bool operator !=(string? a, string? b) => !Equals(a, b);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
443public override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Reflection\RuntimeAssemblyName.cs (1)
78if (!string.Equals(this.CultureName, other.CultureName))
System.Private.Xml (8)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
1383if (string.Equals(c.XmlName, source)) 2203return source.LocalName == name && string.Equals(source.NamespaceURI, ns); 2208return xsiType.Name == name && string.Equals(xsiType.Namespace, defaultNamespace);
System\Xml\XmlNamespacemanager.cs (5)
198if (string.Equals(_nsdecls[declIndex].uri, uri) && _nsdecls[declIndex].scopeId == _scopeId) 311if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 327if (string.Equals(_nsdecls[thisDecl].uri, uri)) 330if (string.Equals(LookupNamespace(prefix), uri)) 346if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null)
System.Reflection.DispatchProxy (1)
src\runtime\src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
85.Single(f => string.Equals(f.Name, "AllowMultiple"));
System.Resources.Extensions (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
60return string.Equals(a, b); 68return string.Equals(sa, sb);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1031Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers.");
System.Resources.Writer (1)
System\Resources\__FastResourceComparer.cs (1)
43return string.Equals(a, b);
System.Security.Claims (3)
System\Security\Claims\Claim.cs (3)
420if (string.Equals(_type, ClaimsIdentity.DefaultNameClaimType)) 424else if (string.Equals(_type, ClaimsIdentity.DefaultRoleClaimType)) 449else if (!string.Equals(_originalIssuer, ClaimsIdentity.DefaultIssuer))
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
193if (string.Equals(accessMethodOid, desc.AccessMethod))
System.ServiceModel.NetTcp.Tests (1)
Channels\TcpTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.tcp"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.tcp", element.Scheme));
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
344if (string.Equals(keyval[0], X509SubjectAlternativeNameConstants.Identifier))
System.ServiceModel.Primitives.Tests (22)
Channels\BehaviorExtensionTest.cs (2)
45Assert.True(String.Equals(testMessageBody, result), 79Assert.True(String.Equals(testMessageBody, result),
Channels\CommunicationObjectTest.cs (4)
322Assert.True(String.Equals(exceptionMessage, actualException.Message), 349Assert.True(String.Equals(exceptionMessage, actualException.Message), 376Assert.True(String.Equals(exceptionMessage, actualException.Message), 407Assert.True(String.Equals(exceptionMessage, actualException.Message),
Channels\CustomChannelTest.cs (7)
75Assert.True(String.Equals(testMessageBody, result), 172Assert.True(String.Equals(testMessageBody, result), 251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message), 306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message), 365Assert.True(String.Equals(testMessageBody, result), 471Assert.True(String.Equals(caughtException.Message, thrownException.Message), 725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
Channels\UnderstoodHeadersTest.cs (3)
36if (String.Equals(mhi.Name, "Action")) Assert.True(mhi.MustUnderstand); 38if (String.Equals(mhi.Name, "AlphaHeader")) Assert.False(mhi.MustUnderstand); 39if (String.Equals(mhi.Name, "BravoHeader")) Assert.False(mhi.MustUnderstand);
Description\OperationBehaviorTest.cs (3)
63if (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_NotSet_One))) 82if (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_Set_StyleSetTo_Rpc)) || (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_NotSet_Two))))
ServiceModel\MessageContractTest.4.4.0.cs (3)
35Assert.True(String.Equals(name, attribute.Name), 215Assert.True(String.Equals(request.requestTestProperty, propertyValue), 293Assert.True(String.Equals(request.requestTestProperty, reply.requestTestProperty),
System.ServiceModel.UnixDomainSocket.Tests (1)
Channels\UnixDomainSocketTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.uds"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.uds", element.Scheme));
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
907if (!string.Equals(_bindingPath, value))
System.Windows.Forms (11)
System\Resources\ResXDataNode.cs (2)
400if (string.Equals(mimeTypeName, ResXResourceWriter.ByteArraySerializedObjectMimeType) 416if (!string.Equals(dataNodeInfo.MimeType, ResXResourceWriter.BinSerializedObjectMimeType))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
516if (value == _imageIndex.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\Labels\Label.cs (1)
467if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
245if (value == _imageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4725if (!string.Equals(text, EditTextBox.Text))
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
26if (!string.Equals(currentItem.ToString(), nameof(AutoCompleteSource.ListItems)))
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
554if (value == ImageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 937if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 994if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
109Debug.Assert(string.Equals(
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
488if ((string.Equals(newField.Name, docField.Name)) && newField.Attributes == docField.Attributes && TypesEqual(newField.Type, docField.Type))
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
772if (valueAsString is null || string.Equals(typeName, valueAsString)) 874if (string.Equals(key, ResourceManagerPropertyName) || 875string.Equals(key, CultureInfoPropertyName) ||
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
186if (string.Equals(ToolboxFormat, allFormats[i]))
UnitTests.Common (2)
TestHelpers.cs (2)
233MessagePartDescription descPart = desc.SingleOrDefault((d) => String.Equals(dataPart.Name, d.Name)); 248if (!String.Equals(desc.Name, data.Name))
vstest.console (3)
Processors\EnableBlameArgumentProcessor.cs (1)
270if (string.Equals(item.FriendlyName, BlameFriendlyName))
TestPlatformHelpers\TestRequestManager.cs (2)
777if (string.Equals(_environmentVariableHelper.GetEnvironmentVariable("VSTEST_SKIP_FAKES_CONFIGURATION"), "1")) 1040if (string.Equals(ObjectModel.Constants.DotNetFramework35, commonFramework?.Name))
vstest.console.arm64 (3)
parent\vstest.console\Processors\EnableBlameArgumentProcessor.cs (1)
270if (string.Equals(item.FriendlyName, BlameFriendlyName))
parent\vstest.console\TestPlatformHelpers\TestRequestManager.cs (2)
777if (string.Equals(_environmentVariableHelper.GetEnvironmentVariable("VSTEST_SKIP_FAKES_CONFIGURATION"), "1")) 1040if (string.Equals(ObjectModel.Constants.DotNetFramework35, commonFramework?.Name))