365 references to Equal
Aspire.Hosting.Tests (4)
PublishAsConnectionStringTests.cs (1)
40
Assert.
Equal
(expected, actual, ignoreLineEndingDifferences: true, ignoreWhiteSpaceDifferences: true);
PublishAsDockerfileTests.cs (3)
38
Assert.
Equal
(expected, actual, ignoreLineEndingDifferences: true, ignoreWhiteSpaceDifferences: true);
80
Assert.
Equal
(expected, actual, ignoreLineEndingDifferences: true, ignoreWhiteSpaceDifferences: true);
114
Assert.
Equal
(expected, actual, ignoreLineEndingDifferences: true, ignoreWhiteSpaceDifferences: true);
InMemory.FunctionalTests (1)
Http2\Http2TestBase.cs (1)
1374
Assert.
Equal
(header.Value, value, ignoreCase: true);
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
73
Assert.
Equal
(expected.Replace("\"", DoubleQuoteEscaping), actual, ignoreLineEndingDifferences: true);
Microsoft.AspNetCore.Authentication.Core.Test (1)
AuthenticationPropertiesTests.cs (1)
379
Assert.
Equal
(@"{
Microsoft.AspNetCore.Authentication.Test (4)
OpenIdConnect\OpenIdConnectTests.cs (4)
248
Assert.
Equal
(UrlEncoder.Default.Encode("https://example.com/thelogout"), redirectUri, true);
253
Assert.
Equal
("https://example.com/postlogout", properties.RedirectUri, true);
279
Assert.
Equal
(UrlEncoder.Default.Encode("https://example.com/signout-callback-oidc"), redirectUri, true);
284
Assert.
Equal
("http://www.example.com/specific_redirect_uri", properties.RedirectUri, true);
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
RouteValueDictionaryTests.cs (1)
358
Assert.
Equal
(message, exception.Message, ignoreCase: true);
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsOfTTests.cs (1)
77
Assert.
Equal
(expected.Trim(), actual.Trim(), ignoreLineEndingDifferences: true);
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
HstsMiddlewareTests.cs (2)
215
Assert.
Equal
($"The host '{hostUrl}' is excluded. Skipping HSTS header.", message.State.ToString(), ignoreCase: true);
325
Assert.
Equal
($"The host '{hostUrl}' is excluded. Skipping HSTS header.", message.State.ToString(), ignoreCase: true);
Microsoft.AspNetCore.InternalTesting.Tests (3)
AssemblyTestLogTests.cs (3)
90
Assert.
Equal
(
166
Assert.
Equal
(
171
Assert.
Equal
(
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
326
Assert.
Equal
(httpMethod, httpMethodAttribute.HttpMethods.Single(), ignoreCase: true);
329
Assert.
Equal
(httpMethod, lastHttpMethodMetadata.HttpMethods.Single(), ignoreCase: true);
Microsoft.AspNetCore.Mvc.FunctionalTests (63)
BasicTests.cs (3)
249
Assert.
Equal
(expectedBody, actualBody, ignoreLineEndingDifferences: true);
272
Assert.
Equal
(expectedBody, actualBody.Trim(), ignoreLineEndingDifferences: true);
295
Assert.
Equal
(expectedBody, actualBody.Trim(), ignoreLineEndingDifferences: true);
CompilationOptionsTests.cs (1)
43
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
ContentNegotiationTest.cs (1)
226
Assert.
Equal
(expectedResponseBody, actualResponseBody, ignoreLineEndingDifferences: true);
DirectivesTest.cs (1)
68
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
FlushPointTest.cs (4)
45
Assert.
Equal
(expected, body, ignoreLineEndingDifferences: true);
92
Assert.
Equal
(expected, body, ignoreLineEndingDifferences: true);
118
Assert.
Equal
(expected, body, ignoreLineEndingDifferences: true);
137
Assert.
Equal
(expected, body, ignoreLineEndingDifferences: true);
HtmlGenerationTest.cs (10)
94
Assert.
Equal
($"Vrijdag{Environment.NewLine}Month: FirstOne", response, ignoreLineEndingDifferences: true);
203
Assert.
Equal
("img", imgElement.TagName, ignoreCase: true);
440
Assert.
Equal
(expected1, response2.Trim(), ignoreLineEndingDifferences: true);
455
Assert.
Equal
(expected2, response4.Trim(), ignoreLineEndingDifferences: true);
470
Assert.
Equal
(expected3, response6.Trim(), ignoreLineEndingDifferences: true);
603
Assert.
Equal
(expected1, response1.Trim(), ignoreLineEndingDifferences: true);
612
Assert.
Equal
(expected2, response2.Trim(), ignoreLineEndingDifferences: true);
627
Assert.
Equal
(expected3, response3.Trim(), ignoreLineEndingDifferences: true);
659
Assert.
Equal
(expected, response, ignoreLineEndingDifferences: true);
673
Assert.
Equal
(expected, response, ignoreLineEndingDifferences: true);
HtmlHelperOptionsTest.cs (2)
59
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
91
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
Infrastructure\ResourceFile.cs (1)
41
Assert.
Equal
(expectedContent, responseContent, ignoreLineEndingDifferences: true);
RazorBuildTest.cs (4)
115
Assert.
Equal
(expected1, body.Trim(), ignoreLineEndingDifferences: true);
130
Assert.
Equal
(actual2, body.Trim(), ignoreLineEndingDifferences: true);
153
Assert.
Equal
(expected1, body.Trim(), ignoreLineEndingDifferences: true);
169
Assert.
Equal
(actual2, body.Trim(), ignoreLineEndingDifferences: true);
RazorPagesTest.cs (5)
649
Assert.
Equal
(expected, response, ignoreLineEndingDifferences: true);
947
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
1131
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
1147
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
1164
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
RazorPagesWithBasePathTest.cs (8)
150
Assert.
Equal
(expected, response, ignoreLineEndingDifferences: true);
165
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
212
Assert.
Equal
(expectedContent, responseContent, ignoreLineEndingDifferences: true);
227
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
246
Assert.
Equal
(expected, response, ignoreLineEndingDifferences: true);
343
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
359
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
382
Assert.
Equal
(expected, response.Trim(), ignoreLineEndingDifferences: true);
RazorRuntimeCompilationHostingStartupTest.cs (4)
61
Assert.
Equal
(expected1, body.Trim(), ignoreLineEndingDifferences: true);
76
Assert.
Equal
(actual2, body.Trim(), ignoreLineEndingDifferences: true);
98
Assert.
Equal
(expected1, body.Trim(), ignoreLineEndingDifferences: true);
114
Assert.
Equal
(actual2, body.Trim(), ignoreLineEndingDifferences: true);
RazorViewLocationSpecificationTest.cs (4)
49
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
68
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
85
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
105
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
TagHelpersTest.cs (2)
188
Assert.
Equal
(expected, result.Trim(), ignoreLineEndingDifferences: true);
201
Assert.
Equal
(expected, result.Trim(), ignoreLineEndingDifferences: true);
ViewEngineTests.cs (13)
84
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
103
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
132
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
172
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
260
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
275
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
316
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
332
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
349
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
373
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
414
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
434
Assert.
Equal
(expected, body.Trim(), ignoreLineEndingDifferences: true);
465
Assert.
Equal
(expected, responseContent, ignoreLineEndingDifferences: true);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
src\Mvc\Mvc.ViewFeatures\test\Rendering\JsonHelperTestBase.cs (2)
28
Assert.
Equal
(expectedOutput, htmlString.ToString(), ignoreCase: true);
81
Assert.
Equal
(expectedOutput, htmlString.ToString(), ignoreCase: true);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Rendering\JsonHelperTestBase.cs (2)
28
Assert.
Equal
(expectedOutput, htmlString.ToString(), ignoreCase: true);
81
Assert.
Equal
(expectedOutput, htmlString.ToString(), ignoreCase: true);
Rendering\SystemTextJsonHelperTest.cs (1)
86
Assert.
Equal
(expectedOutput, htmlString.ToString(), ignoreLineEndingDifferences: true);
StringHtmlContentTest.cs (1)
35
Assert.
Equal
("😂2", stringWriter.ToString(), ignoreCase: true);
Microsoft.AspNetCore.Routing.Tests (3)
Matching\HttpMethodMatcherPolicyTest.cs (1)
173
Assert.
Equal
(Http405EndpointDisplayName, httpContext.GetEndpoint().DisplayName, ignoreCase: true);
Matching\ILEmitTrieJumpTableTest.cs (2)
85
Assert.
Equal
(entry, path.Substring(start, length), ignoreCase: true);
146
Assert.
Equal
(entry, path.Substring(start, length), ignoreCase: true);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
GeneratedCodeTests.cs (1)
76
Assert.
Equal
(expected.Trim(), actual.Trim(), ignoreLineEndingDifferences: true);
Microsoft.AspNetCore.Shared.Tests (1)
DotNetMuxerTests.cs (1)
21
Assert.
Equal
("dotnet", Path.GetFileNameWithoutExtension(muxerPath), ignoreCase: true);
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
57
Assert.
Equal
("Bravo", client.SubProtocol, ignoreCase: true);
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\UsingTaskBodyElement_Tests.cs (1)
28
Assert.
Equal
(body.Evaluate, bool.FalseString, true);
Microsoft.Build.Tasks.UnitTests (257)
GetSDKReference_Tests.cs (125)
437
Assert.
Equal
(winmd, t.References[0].ItemSpec, true);
438
Assert.
Equal
("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true);
439
Assert.
Equal
("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true);
440
Assert.
Equal
("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true);
441
Assert.
Equal
("true", t.References[0].GetMetadata("WinMDFile"), true);
442
Assert.
Equal
("Managed", t.References[0].GetMetadata("WinMDFileType"), true);
443
Assert.
Equal
("true", t.References[0].GetMetadata("CopyLocal"), true);
444
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
445
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
447
Assert.
Equal
("E.dll", Path.GetFileName(t.References[4].ItemSpec), true);
448
Assert.
Equal
("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true);
449
Assert.
Equal
("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true);
450
Assert.
Equal
("false", t.References[4].GetMetadata("WinMDFile"), true);
452
Assert.
Equal
("true", t.References[4].GetMetadata("CopyLocal"), true);
453
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
454
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
456
Assert.
Equal
("A.winmd", Path.GetFileName(t.CopyLocalFiles[0].ItemSpec), true);
457
Assert.
Equal
("WindowsRuntime 1.0;CLR V2.0.50727", t.CopyLocalFiles[0].GetMetadata("ImageRuntime"), true);
458
Assert.
Equal
("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.CopyLocalFiles[0].GetMetadata("FusionName"), true);
459
Assert.
Equal
("true", t.CopyLocalFiles[0].GetMetadata("WinMDFile"), true);
460
Assert.
Equal
("Managed", t.CopyLocalFiles[0].GetMetadata("WinMDFileType"), true);
461
Assert.
Equal
("true", t.CopyLocalFiles[0].GetMetadata("CopyLocal"), true);
462
Assert.
Equal
("SDkWithManifest, Version=2.0", t.CopyLocalFiles[0].GetMetadata("OriginalItemSpec"), true);
463
Assert.
Equal
("GetSDKReferenceFiles", t.CopyLocalFiles[0].GetMetadata("ResolvedFrom"), true);
465
Assert.
Equal
("E.dll", Path.GetFileName(t.CopyLocalFiles[5].ItemSpec), true);
466
Assert.
Equal
("CLR V2.0.50727", t.CopyLocalFiles[5].GetMetadata("ImageRuntime"), true);
467
Assert.
Equal
("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.CopyLocalFiles[5].GetMetadata("FusionName"), true);
468
Assert.
Equal
("false", t.CopyLocalFiles[5].GetMetadata("WinMDFile"), true);
470
Assert.
Equal
("true", t.CopyLocalFiles[5].GetMetadata("CopyLocal"), true);
471
Assert.
Equal
("SDkWithManifest, Version=2.0", t.CopyLocalFiles[5].GetMetadata("OriginalItemSpec"), true);
472
Assert.
Equal
("GetSDKReferenceFiles", t.CopyLocalFiles[5].GetMetadata("ResolvedFrom"), true);
559
Assert.
Equal
("A.winmd", Path.GetFileName(t.References[0].ItemSpec), true);
560
Assert.
Equal
("WindowsRuntime 1.0;CLR V2.0.50727", t.References[0].GetMetadata("ImageRuntime"), true);
561
Assert.
Equal
("A, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[0].GetMetadata("FusionName"), true);
562
Assert.
Equal
("true", t.References[0].GetMetadata("WinMDFile"), true);
563
Assert.
Equal
("Managed", t.References[0].GetMetadata("WinMDFileType"), true);
564
Assert.
Equal
("false", t.References[0].GetMetadata("CopyLocal"), true);
565
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
566
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
568
Assert.
Equal
("B.winmd", Path.GetFileName(t.References[1].ItemSpec), true);
569
Assert.
Equal
("WindowsRuntime 1.0", t.References[1].GetMetadata("ImageRuntime"), true);
570
Assert.
Equal
("B, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[1].GetMetadata("FusionName"), true);
571
Assert.
Equal
("true", t.References[1].GetMetadata("WinMDFile"), true);
572
Assert.
Equal
("Native", t.References[1].GetMetadata("WinMDFileType"), true);
573
Assert.
Equal
("false", t.References[1].GetMetadata("CopyLocal"), true);
574
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[1].GetMetadata("OriginalItemSpec"), true);
575
Assert.
Equal
("GetSDKReferenceFiles", t.References[1].GetMetadata("ResolvedFrom"), true);
577
Assert.
Equal
("E.dll", Path.GetFileName(t.References[4].ItemSpec), true);
578
Assert.
Equal
("CLR V2.0.50727", t.References[4].GetMetadata("ImageRuntime"), true);
579
Assert.
Equal
("E, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", t.References[4].GetMetadata("FusionName"), true);
580
Assert.
Equal
("false", t.References[4].GetMetadata("WinMDFile"), true);
582
Assert.
Equal
("false", t.References[4].GetMetadata("CopyLocal"), true);
583
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
584
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
690
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
691
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
697
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
698
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
732
Assert.
Equal
("A.dll", Path.GetFileName(t.References[0].ItemSpec), true);
733
Assert.
Equal
("false", t.References[0].GetMetadata("WinMDFile"), true);
735
Assert.
Equal
("false", t.References[0].GetMetadata("CopyLocal"), true);
736
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
737
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
739
Assert.
Equal
("h.dll", Path.GetFileName(t.References[4].ItemSpec), true);
740
Assert.
Equal
("false", t.References[4].GetMetadata("WinMDFile"), true);
742
Assert.
Equal
("false", t.References[4].GetMetadata("CopyLocal"), true);
743
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
744
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
834
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
835
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
841
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
842
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
886
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[0].GetMetadata("OriginalItemSpec"), true);
887
Assert.
Equal
("GetSDKReferenceFiles", t.References[0].GetMetadata("ResolvedFrom"), true);
893
Assert.
Equal
("SDkWithManifest, Version=2.0", t.References[4].GetMetadata("OriginalItemSpec"), true);
894
Assert.
Equal
("GetSDKReferenceFiles", t.References[4].GetMetadata("ResolvedFrom"), true);
966
Assert.
Equal
("Super\\A.dll", t.RedistFiles[0].GetMetadata("TargetPath"), true);
967
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[0].GetMetadata("OriginalItemSpec"), true);
968
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[0].GetMetadata("ResolvedFrom"), true);
971
Assert.
Equal
("B.dll", Path.GetFileName(t.RedistFiles[1].ItemSpec), true);
972
Assert.
Equal
("Super\\ASubDirectory\\TwoDeep\\B.dll", t.RedistFiles[1].GetMetadata("TargetPath"), true);
973
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[1].GetMetadata("OriginalItemSpec"), true);
974
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[1].GetMetadata("ResolvedFrom"), true);
977
Assert.
Equal
("B.PRI", Path.GetFileName(t.RedistFiles[2].ItemSpec), true);
978
Assert.
Equal
("Super\\B.PRI", t.RedistFiles[2].GetMetadata("TargetPath"), true);
979
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[2].GetMetadata("OriginalItemSpec"), true);
980
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[2].GetMetadata("ResolvedFrom"), true);
983
Assert.
Equal
("C.dll", Path.GetFileName(t.RedistFiles[3].ItemSpec), true);
984
Assert.
Equal
("Super\\C.dll", t.RedistFiles[3].GetMetadata("TargetPath"), true);
985
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[3].GetMetadata("OriginalItemSpec"), true);
986
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[3].GetMetadata("ResolvedFrom"), true);
989
Assert.
Equal
("D.dll", Path.GetFileName(t.RedistFiles[4].ItemSpec), true);
990
Assert.
Equal
("Super\\D.dll", t.RedistFiles[4].GetMetadata("TargetPath"), true);
991
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[4].GetMetadata("OriginalItemSpec"), true);
992
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[4].GetMetadata("ResolvedFrom"), true);
1371
Assert.
Equal
("A.dll", Path.GetFileName(t.RedistFiles[0].ItemSpec), true);
1372
Assert.
Equal
("SDK1\\A.dll", t.RedistFiles[0].GetMetadata("TargetPath"), true);
1373
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[0].GetMetadata("OriginalItemSpec"), true);
1374
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[0].GetMetadata("ResolvedFrom"), true);
1377
Assert.
Equal
("B.dll", Path.GetFileName(t.RedistFiles[1].ItemSpec), true);
1378
Assert.
Equal
("SDK2\\B.dll", t.RedistFiles[1].GetMetadata("TargetPath"), true);
1379
Assert.
Equal
("AnotherSDK, Version=2.0", t.RedistFiles[1].GetMetadata("OriginalItemSpec"), true);
1380
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[1].GetMetadata("ResolvedFrom"), true);
1383
Assert.
Equal
("B.dll", Path.GetFileName(t.RedistFiles[2].ItemSpec), true);
1384
Assert.
Equal
("SDK1\\ASubDirectory\\TwoDeep\\B.dll", t.RedistFiles[2].GetMetadata("TargetPath"), true);
1385
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[2].GetMetadata("OriginalItemSpec"), true);
1386
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[2].GetMetadata("ResolvedFrom"), true);
1389
Assert.
Equal
("B.pri", Path.GetFileName(t.RedistFiles[3].ItemSpec), true);
1390
Assert.
Equal
("SDK2\\B.Pri", t.RedistFiles[3].GetMetadata("TargetPath"), true);
1391
Assert.
Equal
("AnotherSDK, Version=2.0", t.RedistFiles[3].GetMetadata("OriginalItemSpec"), true);
1392
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[3].GetMetadata("ResolvedFrom"), true);
1393
Assert.
Equal
("SDK2", t.RedistFiles[3].GetMetadata("Root"), true);
1395
Assert.
Equal
("B.PRI", Path.GetFileName(t.RedistFiles[4].ItemSpec), true);
1396
Assert.
Equal
("SDK1\\B.PRI", t.RedistFiles[4].GetMetadata("TargetPath"), true);
1397
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[4].GetMetadata("OriginalItemSpec"), true);
1398
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[4].GetMetadata("ResolvedFrom"), true);
1399
Assert.
Equal
("SDK1", t.RedistFiles[4].GetMetadata("Root"), true);
1401
Assert.
Equal
("C.dll", Path.GetFileName(t.RedistFiles[5].ItemSpec), true);
1402
Assert.
Equal
("SDK1\\C.dll", t.RedistFiles[5].GetMetadata("TargetPath"), true);
1403
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[5].GetMetadata("OriginalItemSpec"), true);
1404
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[5].GetMetadata("ResolvedFrom"), true);
1407
Assert.
Equal
("D.dll", Path.GetFileName(t.RedistFiles[6].ItemSpec), true);
1408
Assert.
Equal
("SDK1\\D.dll", t.RedistFiles[6].GetMetadata("TargetPath"), true);
1409
Assert.
Equal
("SDkWithManifest, Version=2.0", t.RedistFiles[6].GetMetadata("OriginalItemSpec"), true);
1410
Assert.
Equal
("GetSDKReferenceFiles", t.RedistFiles[6].GetMetadata("ResolvedFrom"), true);
ResolveSDKReference_Tests.cs (132)
110
Assert.
Equal
("\"newt, Version=1.0\"", result[3], true);
1100
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
1101
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1102
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1103
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1104
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1105
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1137
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1138
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1141
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1142
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1143
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1178
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1179
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1184
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1216
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1217
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1218
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1219
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1220
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1255
Assert.
Equal
("GoodTestSDK", t.ResolvedSDKReferences[0].GetMetadata("SimpleName"), true);
1256
Assert.
Equal
("2.0", t.ResolvedSDKReferences[0].GetMetadata("Version"), true);
1257
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1258
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1259
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1260
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1261
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1289
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1290
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1291
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1292
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1293
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1362
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1363
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1364
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1365
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1366
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1367
Assert.
Equal
("GoodTestSDK, Version=2.0", t.ResolvedSDKReferences[0].GetMetadata("SDKName"), true);
1770
Assert.
Equal
("Allow", t.ResolvedSDKReferences[0].GetMetadata("SupportsMultipleVersions"), true);
1772
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1773
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1774
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1775
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1776
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1870
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1941
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
1942
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
1943
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
1944
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
1945
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
1946
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
1947
Assert.
Equal
("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true);
2009
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
2010
Assert.
Equal
("Neutral|RetailNeutralLocation", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
2011
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2012
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2013
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2014
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2015
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2016
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2075
Assert.
Equal
("PlatformID", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true);
2076
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2077
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
2078
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2079
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2080
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2081
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2082
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2149
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
2150
Assert.
Equal
("Good Platform", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true);
2151
Assert.
Equal
("Neutral|Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
2152
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2153
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2154
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2155
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2156
Assert.
Equal
("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2157
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2219
Assert.
Equal
("arm|ARMAppx", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
2220
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2221
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2222
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2223
Assert.
Equal
("Debug", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2224
Assert.
Equal
("arm", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2225
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2287
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
2288
Assert.
Equal
("Good Platform", t.ResolvedSDKReferences[0].GetMetadata("PlatformIdentity"), true);
2289
Assert.
Equal
("arm|ARMAppx|x64|x64Appx|x86|x86Appx", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
2290
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2291
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2292
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2293
Assert.
Equal
("Debug", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2294
Assert.
Equal
("arm", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2295
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2501
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
2502
Assert.
Equal
("x64|RetailX64Location|x86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
2503
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
2504
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
2505
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
2506
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
2507
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
2508
Assert.
Equal
("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
2509
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
2510
Assert.
Equal
("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true);
3331
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
3332
Assert.
Equal
("Arm|RetailArmLocation|Neutral|NeutralLocation|X64|RetailX64Location|X86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
3333
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
3334
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
3335
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
3336
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
3337
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
3338
Assert.
Equal
("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
3339
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
3340
Assert.
Equal
("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true);
3476
Assert.
Equal
("Neutral|NeutralLocation|X64|RetailX64Location|X86|RetailX86Location", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
3477
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
3478
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
3479
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
3480
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
3481
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
3482
Assert.
Equal
("X86", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
3483
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
3484
Assert.
Equal
("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true);
3611
Assert.
Equal
("GoodTestSDKIdentity", t.ResolvedSDKReferences[0].GetMetadata("FrameworkIdentity"), true);
3612
Assert.
Equal
("Neutral|RetailNeutralLocation", t.ResolvedSDKReferences[0].GetMetadata("AppXLocation"), true);
3613
Assert.
Equal
("External", t.ResolvedSDKReferences[0].GetMetadata("SDKType"), true);
3614
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyRedist"), true);
3615
Assert.
Equal
("True", t.ResolvedSDKReferences[0].GetMetadata("ExpandReferenceAssemblies"), true);
3616
Assert.
Equal
("False", t.ResolvedSDKReferences[0].GetMetadata("CopyLocalExpandedReferenceAssemblies"), true);
3617
Assert.
Equal
("Retail", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKConfiguration"), true);
3618
Assert.
Equal
("Neutral", t.ResolvedSDKReferences[0].GetMetadata("TargetedSDKArchitecture"), true);
3619
Assert.
Equal
(item.ItemSpec, t.ResolvedSDKReferences[0].GetMetadata("OriginalItemSpec"), true);
3620
Assert.
Equal
("GoodTestSDK\\Redist", t.ResolvedSDKReferences[0].GetMetadata("CopyRedistToSubDirectory"), true);
Microsoft.Build.Utilities.UnitTests (1)
ToolTask_Tests.cs (1)
562
Assert.
Equal
(
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SarifErrorLoggerTests.cs (1)
128
Assert.
Equal
(
Microsoft.DotNet.Arcade.Sdk.Tests (1)
GenerateResxSourceTests.cs (1)
59
Assert.
Equal
(File.ReadAllText(expectedFile), actualFileContents, ignoreLineEndingDifferences: true);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiRefreshTests.cs (2)
39
Assert.
Equal
(Content, await File.ReadAllTextAsync(expectedJsonPath), ignoreLineEndingDifferences: true);
69
Assert.
Equal
(Content, await File.ReadAllTextAsync(expectedJsonPath), ignoreLineEndingDifferences: true);
Microsoft.DotNet.XUnitAssert.Tests (3)
StringAssertsTests.cs (3)
615
Assert.
Equal
(value1, value2, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace);
616
Assert.
Equal
(value2, value1, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace);
685
verify(() => Assert.
Equal
(expected, actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace));
Microsoft.Extensions.SecretManager.Tools.Tests (1)
SecretManagerTests.cs (1)
255
Assert.
Equal
(@"{
Mvc.Api.Analyzers.Test (2)
AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs (1)
78
Assert.
Equal
(expectedOutput, actualOutput, ignoreLineEndingDifferences: true);
ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs (1)
43
Assert.
Equal
(expectedOutput, actualOutput, ignoreLineEndingDifferences: true);
xunit.assert (1)
StringAsserts.cs (1)
849
Equal
(expected, actual, false, false, false, false);