404 references to Equal
Aspire.Hosting.Tests (1)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Core.Test (26)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (11)
622Assert.Equal(
794Assert.Equal("{id}", descriptor.AttributeRouteInfo.Template, StringComparer.OrdinalIgnoreCase);
795Assert.Equal("Products", descriptor.AttributeRouteInfo.Name, StringComparer.OrdinalIgnoreCase);
817Assert.Equal("Products/Get", getAction.AttributeRouteInfo.Template, StringComparer.OrdinalIgnoreCase);
818Assert.Equal("Products_Get", getAction.AttributeRouteInfo.Name, StringComparer.OrdinalIgnoreCase);
823Assert.Equal("Products/Edit", editAction.AttributeRouteInfo.Template, StringComparer.OrdinalIgnoreCase);
824Assert.Equal("Products_Edit", editAction.AttributeRouteInfo.Name, StringComparer.OrdinalIgnoreCase);
845Assert.Equal(
848Assert.Equal(
855Assert.Equal(
858Assert.Equal(
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (5)
95Assert.Equal("The value '12_5' is not valid.", error.ErrorMessage, StringComparer.Ordinal);
119Assert.Equal("The value ' 12' is not valid.", error.ErrorMessage, StringComparer.Ordinal);
143Assert.Equal("The value '12.5' is not valid.", error.ErrorMessage, StringComparer.Ordinal);
167Assert.Equal("The value '32,000' is not valid.", error.ErrorMessage, StringComparer.Ordinal);
209Assert.Equal(message, error.ErrorMessage, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (14)
ComplexRecordIntegrationTest.cs (5)
2620Assert.Equal("The value '' is invalid.", error.ErrorMessage, StringComparer.Ordinal);
2671Assert.Equal("someStreet", person.Address.Street, StringComparer.Ordinal);
2719Assert.Equal("someStreet", address.Street, StringComparer.Ordinal);
2779Assert.Equal("someStreet", person.Address.Street, StringComparer.Ordinal);
2832Assert.Equal("someStreet", address.Street, StringComparer.Ordinal);
ComplexTypeIntegrationTestBase.cs (5)
2793Assert.Equal("The value '' is invalid.", error.ErrorMessage, StringComparer.Ordinal);
2850Assert.Equal("someStreet", person.Address.Street, StringComparer.Ordinal);
2898Assert.Equal("someStreet", address.Street, StringComparer.Ordinal);
2970Assert.Equal("someStreet", person.Address.Street, StringComparer.Ordinal);
3023Assert.Equal("someStreet", address.Street, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.Mvc.Razor.Test (34)
RazorPageTest.cs (18)
997Assert.Equal("someattr", htmlAttribute.Name, StringComparer.Ordinal);
999Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1004Assert.Equal("someattr", allAttribute.Name, StringComparer.Ordinal);
1006Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1042Assert.Equal("someattr", htmlAttribute.Name, StringComparer.Ordinal);
1044Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1049Assert.Equal("someattr", allAttribute.Name, StringComparer.Ordinal);
1051Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1088Assert.Equal("someattr", htmlAttribute.Name, StringComparer.Ordinal);
1090Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1095Assert.Equal("someattr", allAttribute.Name, StringComparer.Ordinal);
1097Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
1130Assert.Equal("someattr", attribute.Name, StringComparer.Ordinal);
1131Assert.Equal(expectedValue, (string)attribute.Value, StringComparer.Ordinal);
1158Assert.Equal("someattr", htmlAttribute.Name, StringComparer.Ordinal);
1159Assert.Equal("someattr", (string)htmlAttribute.Value, StringComparer.Ordinal);
1163Assert.Equal("someattr", allAttribute.Name, StringComparer.Ordinal);
1164Assert.Equal("someattr", (string)allAttribute.Value, StringComparer.Ordinal);
TagHelpers\UrlResolutionTagHelperTest.cs (14)
88Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
90Assert.Equal("~/home/index.html", attributeValue, StringComparer.Ordinal);
130Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
132Assert.Equal(expectedHref, attributeValue, StringComparer.Ordinal);
190Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
192Assert.Equal(expectedHref, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
248Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
250Assert.Equal(url, attributeValue, StringComparer.Ordinal);
304Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
306Assert.Equal(url.ToString(), attributeValue.ToString(), StringComparer.Ordinal);
335Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
382Assert.Equal(expectedExceptionMessage, exception.Message, StringComparer.Ordinal);
430Assert.Equal("href", attribute.Name, StringComparer.Ordinal);
432Assert.Equal(expectedHref, attributeValue, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (19)
FormActionTagHelperTest.cs (13)
73Assert.Equal("id", attribute.Name, StringComparer.Ordinal);
74Assert.Equal("my-id", attribute.Value as string, StringComparer.Ordinal);
78Assert.Equal("formaction", attribute.Name, StringComparer.Ordinal);
79Assert.Equal("home/index/value", attribute.Value as string, StringComparer.Ordinal);
147Assert.Equal("id", attribute.Name, StringComparer.Ordinal);
148Assert.Equal("my-id", attribute.Value as string, StringComparer.Ordinal);
152Assert.Equal("formaction", attribute.Name, StringComparer.Ordinal);
153Assert.Equal("routine/value", attribute.Value as string, StringComparer.Ordinal);
219Assert.Equal("delete", param.Action, StringComparer.Ordinal);
220Assert.Equal("books", param.Controller, StringComparer.Ordinal);
221Assert.Equal("test", param.Fragment, StringComparer.Ordinal);
281Assert.Equal("test", param.Fragment, StringComparer.Ordinal);
282Assert.Equal("Default", param.RouteName, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.Razor.Runtime.Test (8)
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (8)
23Assert.Equal("test-entry", (string)executionContextItem.Key, StringComparer.Ordinal);
40Assert.Equal("test-entry", (string)executionContextItem.Key, StringComparer.Ordinal);
59Assert.Equal("test-entry", (string)executionContextItem.Key, StringComparer.Ordinal);
62Assert.Equal("from-child", parentEntry.Key, StringComparer.Ordinal);
80Assert.Equal("test-entry", (string)executionContextItem.Key, StringComparer.Ordinal);
83Assert.Equal("test-entry", (string)parentExecutionContextItem.Key, StringComparer.Ordinal);
100Assert.Equal("new-entry", (string)executionContextItem.Key, StringComparer.Ordinal);
120Assert.Equal("test-entry", (string)parentExecutionContextItem.Key, StringComparer.Ordinal);
Microsoft.AspNetCore.Razor.Test (13)
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (5)
91Assert.Equal(expectedAttribute, attribute, CaseSensitiveTagHelperAttributeComparer.Default);
183Assert.Equal(expectedAttribute, attribute, CaseSensitiveTagHelperAttributeComparer.Default);
566Assert.Equal(expectedAttribute, attribute, CaseSensitiveTagHelperAttributeComparer.Default);
705Assert.Equal(expectedAttribute, attribute, CaseSensitiveTagHelperAttributeComparer.Default);
723Assert.Equal(expectedAttribute, attribute, CaseSensitiveTagHelperAttributeComparer.Default);
Microsoft.AspNetCore.Routing.Tests (34)
Patterns\RoutePatternParserTest.cs (17)
26Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
41Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
56Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
75Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
94Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
113Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
132Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
152Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
172Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
192Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
212Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
234Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
256Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
278Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
300Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
320Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
345Assert.Equal<RoutePattern>(expected, actual, new RoutePatternEqualityComparer());
Template\TemplateParserTests.cs (17)
24Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
43Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
62Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
83Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
122Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
145Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
168Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
197Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
221Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
251Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
281Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
319Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
357Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
394Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
431Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
462Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
489Assert.Equal<RouteTemplate>(expected, actual, new TemplateEqualityComparer());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Shared.Tests (6)
PropertyHelperTest.cs (6)
297helper => { Assert.Equal(expectedNames[0], helper.Name, StringComparer.Ordinal); },
298helper => { Assert.Equal(expectedNames[1], helper.Name, StringComparer.Ordinal); });
313helper => { Assert.Equal(expectedNames[0], helper.Name, StringComparer.Ordinal); },
314helper => { Assert.Equal(expectedNames[1], helper.Name, StringComparer.Ordinal); },
315helper => { Assert.Equal(expectedNames[2], helper.Name, StringComparer.Ordinal); },
316helper => { Assert.Equal(expectedNames[3], helper.Name, StringComparer.Ordinal); });
Microsoft.AspNetCore.SignalR.Common.Tests (6)
Microsoft.Build.Engine.UnitTests (61)
TestComparers\ProjectInstanceModelTestComparers.cs (49)
40Assert.Equal(xPair.Value, yPair.Value, new TargetComparer());
47Assert.Equal(x.Toolset, y.Toolset, new TaskRegistryComparers.ToolsetComparer());
54Assert.Equal(x.ProjectFileLocation, y.ProjectFileLocation, new Helpers.ElementLocationComparerIgnoringType());
55Assert.Equal(x.TaskRegistry, y.TaskRegistry, new TaskRegistryComparers.TaskRegistryComparer());
62Assert.Equal(xPair.Value, yPair.Value, new ItemDefinitionComparer());
94Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
95Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
96Assert.Equal(x.InputsLocation, y.InputsLocation, new Helpers.ElementLocationComparerIgnoringType());
97Assert.Equal(x.OutputsLocation, y.OutputsLocation, new Helpers.ElementLocationComparerIgnoringType());
98Assert.Equal(x.ReturnsLocation, y.ReturnsLocation, new Helpers.ElementLocationComparerIgnoringType());
99Assert.Equal(x.KeepDuplicateOutputsLocation, y.KeepDuplicateOutputsLocation, new Helpers.ElementLocationComparerIgnoringType());
100Assert.Equal(x.DependsOnTargetsLocation, y.DependsOnTargetsLocation, new Helpers.ElementLocationComparerIgnoringType());
101Assert.Equal(x.BeforeTargetsLocation, y.BeforeTargetsLocation, new Helpers.ElementLocationComparerIgnoringType());
102Assert.Equal(x.AfterTargetsLocation, y.AfterTargetsLocation, new Helpers.ElementLocationComparerIgnoringType());
154Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
155Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
180Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
181Assert.Equal(x.IncludeLocation, y.IncludeLocation, new Helpers.ElementLocationComparerIgnoringType());
182Assert.Equal(x.ExcludeLocation, y.ExcludeLocation, new Helpers.ElementLocationComparerIgnoringType());
183Assert.Equal(x.RemoveLocation, y.RemoveLocation, new Helpers.ElementLocationComparerIgnoringType());
184Assert.Equal(x.KeepMetadataLocation, y.KeepMetadataLocation, new Helpers.ElementLocationComparerIgnoringType());
185Assert.Equal(x.RemoveMetadataLocation, y.RemoveMetadataLocation, new Helpers.ElementLocationComparerIgnoringType());
186Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
189Assert.Equal(x.MatchOnMetadataLocation, y.MatchOnMetadataLocation, new Helpers.ElementLocationComparerIgnoringType());
192Assert.Equal(x.MatchOnMetadataOptionsLocation, y.MatchOnMetadataOptionsLocation, new Helpers.ElementLocationComparerIgnoringType());
212Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
213Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
229Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
230Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
265Assert.Equal(x.ReferenceLocation, y.ReferenceLocation, new Helpers.ElementLocationComparerIgnoringType());
283Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
284Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
301Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
302Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
303Assert.Equal(x.ExecuteTargetsLocation, y.ExecuteTargetsLocation, new Helpers.ElementLocationComparerIgnoringType());
323Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
324Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
325Assert.Equal(x.ContinueOnErrorLocation, y.ContinueOnErrorLocation, new Helpers.ElementLocationComparerIgnoringType());
326Assert.Equal(x.MSBuildRuntimeLocation, y.MSBuildRuntimeLocation, new Helpers.ElementLocationComparerIgnoringType());
327Assert.Equal(x.MSBuildRuntimeLocation, y.MSBuildRuntimeLocation, new Helpers.ElementLocationComparerIgnoringType());
352Assert.Equal(xPair.Value.Item2, yPair.Value.Item2, new Helpers.ElementLocationComparerIgnoringType());
385Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
386Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
387Assert.Equal(x.TaskParameterLocation, y.TaskParameterLocation, new Helpers.ElementLocationComparerIgnoringType());
388Assert.Equal(x.ItemTypeLocation, y.ItemTypeLocation, new Helpers.ElementLocationComparerIgnoringType());
406Assert.Equal(x.ConditionLocation, y.ConditionLocation, new Helpers.ElementLocationComparerIgnoringType());
407Assert.Equal(x.Location, y.Location, new Helpers.ElementLocationComparerIgnoringType());
408Assert.Equal(x.PropertyNameLocation, y.PropertyNameLocation, new Helpers.ElementLocationComparerIgnoringType());
409Assert.Equal(x.TaskParameterLocation, y.TaskParameterLocation, new Helpers.ElementLocationComparerIgnoringType());
TestComparers\TaskRegistryComparers.cs (5)
22Assert.Equal(x.Toolset, y.Toolset, new ToolsetComparer());
30Assert.Equal(xp.Key, yp.Key, TaskRegistry.RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
47Assert.Equal(x.TaskIdentity, y.TaskIdentity, TaskRegistry.RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
51Assert.Equal(x.ParameterGroupAndTaskBody, y.ParameterGroupAndTaskBody, new ParamterGroupAndTaskBodyComparer());
86Assert.Equal(xp.Value, yp.Value, new TaskPropertyInfoComparer());
Microsoft.Build.Tasks.UnitTests (14)
DirectoryBuildProjectImportTestBase.cs (13)
85Assert.Equal("true", project.GetPropertyValue(ImportDirectoryBuildProjectPropertyName), StringComparer.OrdinalIgnoreCase);
86Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase);
87Assert.Equal(DirectoryBuildProjectFile, project.GetPropertyValue(DirectoryBuildProjectFilePropertyName), StringComparer.OrdinalIgnoreCase);
118Assert.Equal("false", project.GetPropertyValue(ImportDirectoryBuildProjectPropertyName), StringComparer.OrdinalIgnoreCase);
119Assert.Equal(String.Empty, project.GetPropertyValue("WasDirectoryBuildProjectImported"), StringComparer.OrdinalIgnoreCase);
120Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase);
121Assert.Equal(String.Empty, project.GetPropertyValue(DirectoryBuildProjectFilePropertyName), StringComparer.OrdinalIgnoreCase);
148Assert.Equal("true", project.GetPropertyValue(ImportDirectoryBuildProjectPropertyName), StringComparer.OrdinalIgnoreCase);
149Assert.Equal("true", project.GetPropertyValue("WasDirectoryBuildProjectImported"), StringComparer.OrdinalIgnoreCase);
173Assert.Equal("true", project.GetPropertyValue(ImportDirectoryBuildProjectPropertyName), StringComparer.OrdinalIgnoreCase);
174Assert.Equal("true", project.GetPropertyValue("WasDirectoryBuildProjectImported"), StringComparer.OrdinalIgnoreCase);
175Assert.Equal(ObjectModelHelpers.TempProjectDir, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase);
176Assert.Equal(DirectoryBuildProjectFile, project.GetPropertyValue(DirectoryBuildProjectFilePropertyName), StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (28)
Symbols\Source\NullablePublicAPITests.cs (27)
3509Assert.Equal(mSymbol, lambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3547Assert.Equal(lambdaSymbol, innerLambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3570Assert.Equal(innerLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3608Assert.Equal(lambdaSymbol, innerLambdaSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3631Assert.Equal(innerLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3670Assert.Equal(lambdaSymbol, localFunctionSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3671Assert.Equal(localFunctionSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3784Assert.Equal(parameterSymbol, info.Symbol, SymbolEqualityComparer.IncludeNullability);
3812Assert.Equal(lambdaSymbol, paramSymbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3866Assert.Equal(o2Symbol, o2Ref.Symbol, SymbolEqualityComparer.IncludeNullability);
3880Assert.Equal(localFunctionSymbol, model.GetDeclaredSymbol(o8Declaration).ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3884Assert.Equal(lambdaSymbol, model.GetDeclaredSymbol(node).ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3924Assert.Equal(fieldLambdaSymbol, o1Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3925Assert.Equal(fieldLambdaSymbol, o2Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3938Assert.Equal(propertyLambdaSymbol, o3Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3939Assert.Equal(propertyLambdaSymbol, o4Symbol.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3983Assert.Equal(lambdaSymbol, innerLambdaSymbol1.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
3993Assert.Equal(lambdaSymbol, innerLambdaSymbol1.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
4059Assert.Equal(o1Symbol, o1RefSymbol, SymbolEqualityComparer.IncludeNullability);
4060Assert.Equal(o2Symbol, o2RefSymbol, SymbolEqualityComparer.IncludeNullability);
4067Assert.Equal(o2Symbol, speculativeModel.GetSymbolInfo(speculativeO2Ref).Symbol, SymbolEqualityComparer.IncludeNullability);
4072Assert.Equal(o1Symbol, speculativeModel.GetSymbolInfo(speculativeO1Ref).Symbol, SymbolEqualityComparer.IncludeNullability);
4126Assert.Equal(lambdaSymbol, o2Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
4127Assert.Equal(localFunctionSymbol, o8Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
4131Assert.Equal(lambdaSymbol, o1Result.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
4132Assert.Equal(localFunctionSymbol, oResult.ContainingSymbol, SymbolEqualityComparer.IncludeNullability);
4135Assert.Equal(localFunctionSymbol, localFunctionResult, SymbolEqualityComparer.IncludeNullability);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.UnitTests (9)
StrongNameProviderTests.cs (5)
41Assert.Equal(subFilePath, path, StringComparer.OrdinalIgnoreCase);
47Assert.Equal(filePath, path, StringComparer.OrdinalIgnoreCase);
58Assert.Equal(filePath, path, StringComparer.OrdinalIgnoreCase);
65Assert.Equal(filePath, path, StringComparer.OrdinalIgnoreCase);
69Assert.Equal(filePath, path, StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionTests.cs (5)
4616Assert.Equal("test5.cs", syntaxTrees[0].FilePath, StringComparer.OrdinalIgnoreCase);
4617Assert.Equal("test4.cs", syntaxTrees[1].FilePath, StringComparer.OrdinalIgnoreCase);
4618Assert.Equal("test3.cs", syntaxTrees[2].FilePath, StringComparer.OrdinalIgnoreCase);
4619Assert.Equal("test2.cs", syntaxTrees[3].FilePath, StringComparer.OrdinalIgnoreCase);
4620Assert.Equal("test1.cs", syntaxTrees[4].FilePath, StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
66 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Equal(1, 2, default(IEqualityComparer<int>)!));
72 Assert.Equal(42, 21, new Comparer<int>(true));
78 var ex = Record.Exception(() => Assert.Equal(42, 42, new Comparer<int>(false)));
106 var ex = Record.Exception(() => Assert.Equal(42, 2112, new ThrowingIntComparer()));
129 var ex = Record.Exception(() => Assert.Equal(new[] { 1, 2 }, new[] { 1, 3 }, new ThrowingEnumerableComparer()));
1019 assertFailure(() => Assert.Equal(expected, actual, EqualityComparer<IEnumerable<int>>.Default));
1028 var ex = Record.Exception(() => Assert.Equal(expected, actual, new MyComparer()));
1042 var ex = Record.Exception(() => Assert.Equal(new UnsafeEnumerable(), new[] { 1, 2, 3 }, new MyComparer()));
Microsoft.Extensions.Configuration.KeyPerFile.Tests (63)
ConfigurationProviderTestBase.cs (63)
199Assert.Equal(value1, config["Key1"], StringComparer.InvariantCultureIgnoreCase);
200Assert.Equal(value12, config["Section1:Key2"], StringComparer.InvariantCultureIgnoreCase);
201Assert.Equal(value123, config["Section1:Section2:Key3"], StringComparer.InvariantCultureIgnoreCase);
202Assert.Equal(arrayvalue0, config["Section1:Section2:Key3a:0"], StringComparer.InvariantCultureIgnoreCase);
203Assert.Equal(arrayvalue1, config["Section1:Section2:Key3a:1"], StringComparer.InvariantCultureIgnoreCase);
204Assert.Equal(arrayvalue2, config["Section1:Section2:Key3a:2"], StringComparer.InvariantCultureIgnoreCase);
205Assert.Equal(value344, config["Section3:Section4:Key4"], StringComparer.InvariantCultureIgnoreCase);
208Assert.Equal(value12, section1["Key2"], StringComparer.InvariantCultureIgnoreCase);
209Assert.Equal(value123, section1["Section2:Key3"], StringComparer.InvariantCultureIgnoreCase);
210Assert.Equal(arrayvalue0, section1["Section2:Key3a:0"], StringComparer.InvariantCultureIgnoreCase);
211Assert.Equal(arrayvalue1, section1["Section2:Key3a:1"], StringComparer.InvariantCultureIgnoreCase);
212Assert.Equal(arrayvalue2, section1["Section2:Key3a:2"], StringComparer.InvariantCultureIgnoreCase);
213Assert.Equal("Section1", section1.Path, StringComparer.InvariantCultureIgnoreCase);
217Assert.Equal(value123, section2["Key3"], StringComparer.InvariantCultureIgnoreCase);
218Assert.Equal(arrayvalue0, section2["Key3a:0"], StringComparer.InvariantCultureIgnoreCase);
219Assert.Equal(arrayvalue1, section2["Key3a:1"], StringComparer.InvariantCultureIgnoreCase);
220Assert.Equal(arrayvalue2, section2["Key3a:2"], StringComparer.InvariantCultureIgnoreCase);
221Assert.Equal("Section1:Section2", section2.Path, StringComparer.InvariantCultureIgnoreCase);
225Assert.Equal(value123, section2["Key3"], StringComparer.InvariantCultureIgnoreCase);
226Assert.Equal(arrayvalue0, section2["Key3a:0"], StringComparer.InvariantCultureIgnoreCase);
227Assert.Equal(arrayvalue1, section2["Key3a:1"], StringComparer.InvariantCultureIgnoreCase);
228Assert.Equal(arrayvalue2, section2["Key3a:2"], StringComparer.InvariantCultureIgnoreCase);
229Assert.Equal("Section1:Section2", section2.Path, StringComparer.InvariantCultureIgnoreCase);
233Assert.Equal(arrayvalue0, section3a["0"], StringComparer.InvariantCultureIgnoreCase);
234Assert.Equal(arrayvalue1, section3a["1"], StringComparer.InvariantCultureIgnoreCase);
235Assert.Equal(arrayvalue2, section3a["2"], StringComparer.InvariantCultureIgnoreCase);
236Assert.Equal("Section1:Section2:Key3a", section3a.Path, StringComparer.InvariantCultureIgnoreCase);
240Assert.Equal("Section3", section3.Path, StringComparer.InvariantCultureIgnoreCase);
244Assert.Equal(value344, section4["Key4"], StringComparer.InvariantCultureIgnoreCase);
245Assert.Equal("Section3:Section4", section4.Path, StringComparer.InvariantCultureIgnoreCase);
249Assert.Equal(value344, section4["Key4"], StringComparer.InvariantCultureIgnoreCase);
250Assert.Equal("Section3:Section4", section4.Path, StringComparer.InvariantCultureIgnoreCase);
257Assert.Equal("Key1", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
258Assert.Equal("Key1", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
259Assert.Equal(value1, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
261Assert.Equal("Section1", sections[1].Key, StringComparer.InvariantCultureIgnoreCase);
262Assert.Equal("Section1", sections[1].Path, StringComparer.InvariantCultureIgnoreCase);
265Assert.Equal("Section3", sections[2].Key, StringComparer.InvariantCultureIgnoreCase);
266Assert.Equal("Section3", sections[2].Path, StringComparer.InvariantCultureIgnoreCase);
273Assert.Equal("Key2", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
274Assert.Equal("Section1:Key2", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
275Assert.Equal(value12, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
277Assert.Equal("Section2", sections[1].Key, StringComparer.InvariantCultureIgnoreCase);
278Assert.Equal("Section1:Section2", sections[1].Path, StringComparer.InvariantCultureIgnoreCase);
285Assert.Equal("Key3", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
286Assert.Equal("Section1:Section2:Key3", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
287Assert.Equal(value123, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
289Assert.Equal("Key3a", sections[1].Key, StringComparer.InvariantCultureIgnoreCase);
290Assert.Equal("Section1:Section2:Key3a", sections[1].Path, StringComparer.InvariantCultureIgnoreCase);
297Assert.Equal("0", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
298Assert.Equal("Section1:Section2:Key3a:0", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
299Assert.Equal(arrayvalue0, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
301Assert.Equal("1", sections[1].Key, StringComparer.InvariantCultureIgnoreCase);
302Assert.Equal("Section1:Section2:Key3a:1", sections[1].Path, StringComparer.InvariantCultureIgnoreCase);
303Assert.Equal(arrayvalue1, sections[1].Value, StringComparer.InvariantCultureIgnoreCase);
305Assert.Equal("2", sections[2].Key, StringComparer.InvariantCultureIgnoreCase);
306Assert.Equal("Section1:Section2:Key3a:2", sections[2].Path, StringComparer.InvariantCultureIgnoreCase);
307Assert.Equal(arrayvalue2, sections[2].Value, StringComparer.InvariantCultureIgnoreCase);
313Assert.Equal("Section4", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
314Assert.Equal("Section3:Section4", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
321Assert.Equal("Key4", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
322Assert.Equal("Section3:Section4:Key4", sections[0].Path, StringComparer.InvariantCultureIgnoreCase);
323Assert.Equal(value344, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (21)
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (21)
106Assert.Equal(documents[0].FilePath, sourceFileFullPath5, StringComparer.OrdinalIgnoreCase);
107Assert.Equal(documents[1].FilePath, sourceFileFullPath4, StringComparer.OrdinalIgnoreCase);
108Assert.Equal(documents[2].FilePath, sourceFileFullPath3, StringComparer.OrdinalIgnoreCase);
109Assert.Equal(documents[3].FilePath, sourceFileFullPath2, StringComparer.OrdinalIgnoreCase);
110Assert.Equal(documents[4].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
150Assert.Equal(documents[0].FilePath, sourceFileFullPath5, StringComparer.OrdinalIgnoreCase);
151Assert.Equal(documents[1].FilePath, sourceFileFullPath3, StringComparer.OrdinalIgnoreCase);
152Assert.Equal(documents[2].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
202Assert.Equal(documents[0].FilePath, sourceFileFullPath5, StringComparer.OrdinalIgnoreCase);
203Assert.Equal(documents[1].FilePath, sourceFileFullPath4, StringComparer.OrdinalIgnoreCase);
204Assert.Equal(documents[2].FilePath, sourceFileFullPath3, StringComparer.OrdinalIgnoreCase);
205Assert.Equal(documents[3].FilePath, sourceFileFullPath2, StringComparer.OrdinalIgnoreCase);
206Assert.Equal(documents[4].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
241Assert.Equal(documents[0].FilePath, sourceFileFullPath5, StringComparer.OrdinalIgnoreCase);
242Assert.Equal(documents[1].FilePath, sourceFileFullPath4, StringComparer.OrdinalIgnoreCase);
243Assert.Equal(documents[2].FilePath, sourceFileFullPath3, StringComparer.OrdinalIgnoreCase);
244Assert.Equal(documents[3].FilePath, sourceFileFullPath2, StringComparer.OrdinalIgnoreCase);
245Assert.Equal(documents[4].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
283Assert.Equal(documents[0].FilePath, sourceFileFullPath2, StringComparer.OrdinalIgnoreCase);
284Assert.Equal(documents[1].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
395Assert.Equal(documents[0].FilePath, sourceFileFullPath1, StringComparer.OrdinalIgnoreCase);
Security.TransportSecurity.IntegrationTests (2)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
xunit.assert (6)