921 references to NotSame
InMemory.FunctionalTests (3)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Authentication.Core.Test (5)
Microsoft.AspNetCore.Authorization.Test (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Tests (14)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Cors.Test (5)
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (6)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (2)
Microsoft.AspNetCore.JsonPatch.Tests (2)
Microsoft.AspNetCore.Mvc.Core.Test (49)
ApplicationModels\ControllerModelTest.cs (10)
40Assert.NotSame(action, controller2.Actions[0]);
45Assert.NotSame(route, controller2.Selectors[0].AttributeRouteModel);
46Assert.NotSame(apiExplorer, controller2.ApiExplorer);
48Assert.NotSame(controller.Selectors[0].ActionConstraints, controller2.Selectors[0].ActionConstraints);
49Assert.NotSame(controller.Actions, controller2.Actions);
50Assert.NotSame(controller.Attributes, controller2.Attributes);
51Assert.NotSame(controller.Filters, controller2.Filters);
52Assert.NotSame(controller.RouteValues, controller2.RouteValues);
54Assert.NotSame(controller, controller2.Actions[0].Controller);
56Assert.NotSame(controller, controller2.ControllerProperties[0].Controller);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.Razor.Test (13)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (36)
ViewDataDictionaryOfTModelTest.cs (11)
50Assert.NotSame(source.TemplateInfo, viewData1.TemplateInfo);
62Assert.NotSame(source.TemplateInfo, viewData2.TemplateInfo);
89Assert.NotSame(source.TemplateInfo, viewData1.TemplateInfo);
101Assert.NotSame(source.TemplateInfo, viewData2.TemplateInfo);
169Assert.NotSame(source.TemplateInfo, viewData.TemplateInfo);
173Assert.NotSame(source.ModelMetadata, viewData.ModelMetadata);
255Assert.NotSame(source.ModelExplorer, viewData.ModelExplorer);
257Assert.NotSame(source.ModelMetadata, viewData.ModelMetadata);
278Assert.NotSame(source.ModelExplorer, viewData.ModelExplorer);
297Assert.NotSame(source.ModelExplorer, viewData.ModelExplorer);
298Assert.NotSame(source.ModelMetadata, viewData.ModelMetadata);
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Routing.Tests (34)
CompositeEndpointDataSourceTest.cs (11)
31Assert.NotSame(endpoints, dataSource.Endpoints);
57Assert.NotSame(groupedEndpoints, resolvedGroupEndpoints);
178Assert.NotSame(changeToken2, changeToken1);
191Assert.NotSame(changeToken3, changeToken2);
192Assert.NotSame(changeToken3, changeToken1);
217Assert.NotSame(changeToken2, changeToken1);
227Assert.NotSame(changeToken3, changeToken2);
228Assert.NotSame(changeToken3, changeToken1);
252Assert.NotSame(changeToken2, changeToken1);
263Assert.NotSame(changeToken3, changeToken2);
264Assert.NotSame(changeToken3, changeToken1);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (53)
HttpRequestHeadersTests.cs (16)
158Assert.NotSame(enumerator0, enumerator1);
423Assert.NotSame(HeaderValue, values.PrevHeaderValue);
426Assert.NotSame(HeaderValue, values.NextHeaderValue);
437Assert.NotSame(values.PrevHeaderValue, values.NextHeaderValue);
458Assert.NotSame(HeaderValue1, values.PrevHeaderValue);
461Assert.NotSame(HeaderValue2, values.NextHeaderValue);
482Assert.NotSame(HeaderValue1, values.PrevHeaderValue);
506Assert.NotSame(HeaderValue, values.PrevHeaderValue);
509Assert.NotSame(HeaderValue, values.NextHeaderValue);
513Assert.NotSame(values.PrevHeaderValue, values.NextHeaderValue);
558Assert.NotSame(headerValueUtf16Latin1CrossOver, prevHeaderValue);
626Assert.NotSame(parsedHeaderValue1, parsedHeaderValue2);
729Assert.NotSame(HeaderValue, values.PrevHeaderValue);
732Assert.NotSame(HeaderValue, values.NextHeaderValue);
736Assert.NotSame(values.PrevHeaderValue, values.NextHeaderValue);
757Assert.NotSame(HeaderValue, prevHeaderValue);
StartLineTests.cs (25)
48Assert.NotSame(rawTarget, Http1Connection.RawTarget);
49Assert.NotSame(path, Http1Connection.Path);
50Assert.NotSame(query, Http1Connection.QueryString);
75Assert.NotSame(rawTarget, Http1Connection.RawTarget);
103Assert.NotSame(rawTarget, Http1Connection.RawTarget);
104Assert.NotSame(path, Http1Connection.Path);
105Assert.NotSame(query, Http1Connection.QueryString);
154Assert.NotSame(rawTarget, Http1Connection.RawTarget);
155Assert.NotSame(path, Http1Connection.Path);
156Assert.NotSame(query, Http1Connection.QueryString);
218Assert.NotSame(rawTarget, Http1Connection.RawTarget);
219Assert.NotSame(path, Http1Connection.Path);
251Assert.NotSame(rawTarget, Http1Connection.RawTarget);
252Assert.NotSame(path, Http1Connection.Path);
253Assert.NotSame(query, Http1Connection.QueryString);
311Assert.NotSame(rawTarget, Http1Connection.RawTarget);
312Assert.NotSame(path, Http1Connection.Path);
344Assert.NotSame(rawTarget, Http1Connection.RawTarget);
345Assert.NotSame(path, Http1Connection.Path);
346Assert.NotSame(query, Http1Connection.QueryString);
423Assert.NotSame(rawTarget, Http1Connection.RawTarget);
424Assert.NotSame(path, Http1Connection.Path);
425Assert.NotSame(query, Http1Connection.QueryString);
473Assert.NotSame(rawTarget, Http1Connection.RawTarget);
505Assert.NotSame(rawTarget, Http1Connection.RawTarget);
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
Microsoft.AspNetCore.Shared.Tests (5)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (33)
CodeGen\CodeGenTupleTest.cs (25)
4517Assert.NotSame(vt2, namedTuple);
11243Assert.NotSame(m1Item1, m1Item1.OriginalDefinition);
11263Assert.NotSame(m2Item1, m2Item1.OriginalDefinition);
11603Assert.NotSame(members[i], members[j]);
11613Assert.NotSame(tuple1, tuple2);
11624Assert.NotSame(members1[i], members2[i]);
11640Assert.NotSame(typeParameters1[j], typeParameters2[j]);
11660Assert.NotSame(members1[i], members2[j]);
11684Assert.NotSame(parameters1[j], parameters2[j]);
12742Assert.NotSame(m1Tuple, m1Tuple.ConstructedFrom);
12743Assert.NotSame(m1Tuple, m1Tuple.OriginalDefinition);
12794Assert.NotSame(m1Item1, m1Item1.OriginalDefinition);
12813Assert.NotSame(m2Item1, m2Item1.OriginalDefinition);
12851Assert.NotSame(m1ToString, m1ToString.OriginalDefinition);
13532Assert.NotSame(m9Test, m9Test.OriginalDefinition);
13536Assert.NotSame(m9Test.TypeParameters.Single(), m9Test.TypeParameters.Single().OriginalDefinition);
13919Assert.NotSame(comp2.Assembly, (AssemblySymbol)comp3.GetAssemblyOrModuleSymbol(comp2CompilationRef)); // We are interested in retargeting scenario
14084Assert.NotSame(comp2.Assembly, (AssemblySymbol)comp3.GetAssemblyOrModuleSymbol(comp2CompilationRef)); // We are interested in retargeting scenario
15822Assert.NotSame(m1P1, m1P1.OriginalDefinition);
15853Assert.NotSame(m1this, m1this.OriginalDefinition);
16051Assert.NotSame(m1E1, m1E1.OriginalDefinition);
16092Assert.NotSame(m1E2Add, m1E2.AddMethod);
16094Assert.NotSame(m1E2Remove, m1E2.RemoveMethod);
16101Assert.NotSame(m1E2, m1E2Add.AssociatedSymbol);
16105Assert.NotSame(m1E2, m1E2Remove.AssociatedSymbol);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (258)
Symbols\CompilationCreationTests.cs (100)
154Assert.NotSame(asm2[1], asm1[1]);
184Assert.NotSame(asm3[1], asm1[1]);
185Assert.NotSame(asm3[1], asm2[1]);
199Assert.NotSame(asm3[2], asm2[2]);
200Assert.NotSame(((PEAssemblySymbol)asm3[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
242Assert.NotSame(asm4[1], asm1[1]);
243Assert.NotSame(asm4[1], asm2[1]);
244Assert.NotSame(asm4[1], asm3[1]);
258Assert.NotSame(asm4[2], asm2[2]);
259Assert.NotSame(asm4[2], asm3[2]);
260Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
261Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm3[2]).Assembly);
267Assert.NotSame(asm4[3], asm3[3]);
355Assert.NotSame(asm7[2], asm3[3]);
356Assert.NotSame(asm7[2], asm4[3]);
357Assert.NotSame(asm7[3], asm4[4]);
465Assert.NotSame(asm2[1], asm1[1]);
486Assert.NotSame(asm3[1], asm1[1]);
487Assert.NotSame(asm3[1], asm2[1]);
501Assert.NotSame(asm3[2], asm2[2]);
502Assert.NotSame(((PEAssemblySymbol)asm3[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
534Assert.NotSame(asm4[1], asm1[1]);
535Assert.NotSame(asm4[1], asm2[1]);
536Assert.NotSame(asm4[1], asm3[1]);
550Assert.NotSame(asm4[2], asm2[2]);
551Assert.NotSame(asm4[2], asm3[2]);
552Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
553Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm3[2]).Assembly);
559Assert.NotSame(asm4[3], asm3[3]);
621Assert.NotSame(asm7[2], asm3[3]);
622Assert.NotSame(asm7[2], asm4[3]);
623Assert.NotSame(asm7[3], asm4[4]);
813Assert.NotSame(asm_MTTestLib3[1], varC_MTTestLib2.SourceAssembly());
814Assert.NotSame(asm_MTTestLib3[2], varC_MTTestLib1_V1.SourceAssembly());
847Assert.NotSame(asm3[2], asm2[2]);
848Assert.NotSame(asm3[2].DeclaringCompilation, asm2[2].DeclaringCompilation);
948Assert.NotSame(asm_MTTestLib4[1], varC_MTTestLib2.SourceAssembly());
950Assert.NotSame(asm_MTTestLib4[3], varC_MTTestLib3.SourceAssembly());
972Assert.NotSame(asm4[1], varC_MTTestLib2.SourceAssembly());
973Assert.NotSame(asm4[1], asm2[1]);
974Assert.NotSame(asm4[1], asm3[1]);
988Assert.NotSame(asm4[2], asm2[2]);
989Assert.NotSame(asm4[2], asm3[2]);
990Assert.NotSame(asm4[2].DeclaringCompilation, asm2[2].DeclaringCompilation);
991Assert.NotSame(asm4[2].DeclaringCompilation, asm3[2].DeclaringCompilation);
997Assert.NotSame(asm4[3], asm3[3]);
1083Assert.NotSame(asm7[2], asm3[3]);
1084Assert.NotSame(asm7[2], asm4[3]);
1085Assert.NotSame(asm7[3], asm4[4]);
1204Assert.NotSame(asm_MTTestLib3[1], varC_MTTestLib2.SourceAssembly());
1205Assert.NotSame(asm_MTTestLib3[2], varC_MTTestLib1_V1.SourceAssembly());
1226Assert.NotSame(asm3[2], asm2[2]);
1227Assert.NotSame(asm3[2].DeclaringCompilation, asm2[2].DeclaringCompilation);
1263Assert.NotSame(asm4[1], varC_MTTestLib2.SourceAssembly());
1264Assert.NotSame(asm4[1], asm2[1]);
1265Assert.NotSame(asm4[1], asm3[1]);
1279Assert.NotSame(asm4[2], asm2[2]);
1280Assert.NotSame(asm4[2], asm3[2]);
1281Assert.NotSame(asm4[2].DeclaringCompilation, asm2[2].DeclaringCompilation);
1282Assert.NotSame(asm4[2].DeclaringCompilation, asm3[2].DeclaringCompilation);
1288Assert.NotSame(asm4[3], asm3[3]);
1356Assert.NotSame(asm7[2], asm3[3]);
1357Assert.NotSame(asm7[2], asm4[3]);
1358Assert.NotSame(asm7[3], asm4[4]);
1482Assert.NotSame(asm_MTTestLib3[1], varC_MTTestLib2.SourceAssembly());
1483Assert.NotSame(asm_MTTestLib3[2], asm_MTTestLib2[1]);
1521Assert.NotSame(asm3[2], asm2[2]);
1522Assert.NotSame(asm3[2], asm2[2]);
1523Assert.NotSame(((PEAssemblySymbol)asm3[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
1568Assert.NotSame(asm_MTTestLib4[1], varC_MTTestLib2.SourceAssembly());
1569Assert.NotSame(asm_MTTestLib4[2], asm3[2]);
1570Assert.NotSame(asm_MTTestLib4[2], asm2[2]);
1571Assert.NotSame(asm_MTTestLib4[3], varC_MTTestLib3.SourceAssembly());
1593Assert.NotSame(asm4[1], varC_MTTestLib2.SourceAssembly());
1594Assert.NotSame(asm4[1], asm2[1]);
1595Assert.NotSame(asm4[1], asm3[1]);
1609Assert.NotSame(asm4[2], asm2[2]);
1610Assert.NotSame(asm4[2], asm3[2]);
1611Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
1612Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm3[2]).Assembly);
1618Assert.NotSame(asm4[3], asm3[3]);
1715Assert.NotSame(asm7[2], asm3[3]);
1716Assert.NotSame(asm7[2], asm4[3]);
1717Assert.NotSame(asm7[3], asm4[4]);
1850Assert.NotSame(asm_MTTestLib3[1], varC_MTTestLib2.SourceAssembly());
1851Assert.NotSame(asm_MTTestLib3[2], asm_MTTestLib2[1]);
1872Assert.NotSame(asm3[2], asm2[2]);
1873Assert.NotSame(((PEAssemblySymbol)asm3[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
1909Assert.NotSame(asm4[1], varC_MTTestLib2.SourceAssembly());
1910Assert.NotSame(asm4[1], asm2[1]);
1911Assert.NotSame(asm4[1], asm3[1]);
1925Assert.NotSame(asm4[2], asm2[2]);
1926Assert.NotSame(asm4[2], asm3[2]);
1927Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm2[2]).Assembly);
1928Assert.NotSame(((PEAssemblySymbol)asm4[2]).Assembly, ((PEAssemblySymbol)asm3[2]).Assembly);
1934Assert.NotSame(asm4[3], asm3[3]);
2002Assert.NotSame(asm7[2], asm3[3]);
2003Assert.NotSame(asm7[2], asm4[3]);
2004Assert.NotSame(asm7[3], asm4[4]);
2264Assert.NotSame(asm5[1], asm3);
Symbols\DefaultInterfaceImplementationTests.cs (12)
34853Assert.NotSame(test1i1, test1i1m1.ContainingType);
34854Assert.NotSame(test1i1, test1i1m2.ContainingType);
34855Assert.NotSame(test2i1, test2i1m1.ContainingType);
34856Assert.NotSame(test2i1, test2i1m2.ContainingType);
34857Assert.NotSame(test2i2, test2i2m1.ContainingType);
34858Assert.NotSame(test2i2, test2i2m2.ContainingType);
39147Assert.NotSame(test1i1, test1i1m1.ContainingType);
39148Assert.NotSame(test2i1, test2i1m1.ContainingType);
39149Assert.NotSame(test2i2, test2i2m1.ContainingType);
41823Assert.NotSame(test1i1, test1i1m1.ContainingType);
41824Assert.NotSame(test2i1, test2i1m1.ContainingType);
41825Assert.NotSame(test2i2, test2i2m1.ContainingType);
Symbols\InterfaceImplementationTests.cs (12)
139Assert.NotSame(classImplicitImplementation, classExplicitImplementation);
140Assert.NotSame(classImplicitImplementation, classExplicitImplementationBase);
190Assert.NotSame(classImplicitImplementation, classExplicitImplementation);
191Assert.NotSame(classImplicitImplementation, classExplicitImplementationBase);
448Assert.NotSame(baseClassImplicitImplementation, baseClassExplicitImplementation);
449Assert.NotSame(baseClassImplicitImplementation, baseClassExplicitImplementationBase);
692Assert.NotSame(baseClassMethod, class1ImplementingMethod);
700Assert.NotSame(class2Method, class1ImplementingMethod);
769Assert.NotSame(baseClassMethodVirtual, class1ImplementingMethodVirtual);
773Assert.NotSame(baseClassMethodNonVirtual, class1ImplementingMethodNonVirtual);
787Assert.NotSame(class2MethodVirtual, class2ImplementingMethodVirtual);
791Assert.NotSame(class2MethodNonVirtual, class2ImplementingMethodNonVirtual);
Symbols\Metadata\PE\NoPia.cs (52)
101Assert.NotSame(localTypes1_1, localTypes1_2);
102Assert.NotSame(localTypes2_1, localTypes2_2);
132Assert.NotSame(localTypes1_1, localTypes1_3);
133Assert.NotSame(localTypes2_1, localTypes2_3);
134Assert.NotSame(localTypes1_2, localTypes1_3);
135Assert.NotSame(localTypes2_2, localTypes2_3);
136Assert.NotSame(pia1_1, pia1_3);
337Assert.NotSame(library1_9, library1_10);
338Assert.NotSame(localTypes1_9, localTypes1_10);
391Assert.NotSame(localTypes1Asm, localTypes1_1);
396Assert.NotSame(localTypes2Asm, localTypes2_1);
442Assert.NotSame(localTypes1_1, localTypes1_2);
443Assert.NotSame(localTypes2_1, localTypes2_2);
472Assert.NotSame(localTypes1_1, localTypes1_3);
473Assert.NotSame(localTypes2_1, localTypes2_3);
474Assert.NotSame(localTypes1_2, localTypes1_3);
475Assert.NotSame(localTypes2_2, localTypes2_3);
674Assert.NotSame(library1_9, library1_10);
675Assert.NotSame(localTypes1_9, localTypes1_10);
698Assert.NotSame(tc1.GetReferencedAssemblySymbol(localTypes1Ref),
777Assert.NotSame(pia5Asm1, pia5Asm2);
804Assert.NotSame(pia5Asm3, pia5Asm4);
806Assert.NotSame(library2Asm3, library2Asm4);
823Assert.NotSame(library2Asm5, library2Asm3);
824Assert.NotSame(library2Asm5, library2Asm4);
852Assert.NotSame(library2Asm7, library2Asm3);
853Assert.NotSame(library2Asm7, library2Asm4);
854Assert.NotSame(library2Asm7, library2Asm5);
908Assert.NotSame(varC1, varC4);
909Assert.NotSame(varB1, varB4); // Link and Ref use different symbols.
918Assert.NotSame(varA1, varA5); // Link and Ref use different symbols.
919Assert.NotSame(varC1, varC5);
920Assert.NotSame(varC4, varC5);
929Assert.NotSame(varC1, varC6); // Link and Ref use different symbols.
930Assert.NotSame(varC4, varC6); // Link and Ref use different symbols.
931Assert.NotSame(varC5, varC6); // Link and Ref use different symbols.
1144Assert.NotSame(pia5Asm1, pia5Asm2);
1171Assert.NotSame(pia5Asm3, pia5Asm4);
1173Assert.NotSame(library2Asm3, library2Asm4);
1190Assert.NotSame(library2Asm5, library2Asm3);
1191Assert.NotSame(library2Asm5, library2Asm4);
1219Assert.NotSame(library2Asm7, library2Asm3);
1220Assert.NotSame(library2Asm7, library2Asm4);
1221Assert.NotSame(library2Asm7, library2Asm5);
1313Assert.NotSame(varC1, varC4);
1314Assert.NotSame(varB1, varB4); // Link and Ref use different symbols.
1323Assert.NotSame(varA1, varA5); // Link and Ref use different symbols.
1324Assert.NotSame(varC1, varC5);
1325Assert.NotSame(varC4, varC5);
1334Assert.NotSame(varC1, varC6); // Link and Ref use different symbols.
1335Assert.NotSame(varC4, varC6); // Link and Ref use different symbols.
1336Assert.NotSame(varC5, varC6); // Link and Ref use different symbols.
Symbols\Retargeting\NoPia.cs (31)
411Assert.NotSame(localTypes1_1, localTypes1_2);
412Assert.NotSame(localTypes2_1, localTypes2_2);
440Assert.NotSame(localTypes1_1, localTypes1_3);
441Assert.NotSame(localTypes2_1, localTypes2_3);
442Assert.NotSame(localTypes1_2, localTypes1_3);
443Assert.NotSame(localTypes2_2, localTypes2_3);
444Assert.NotSame(pia1_1, pia1_3);
636Assert.NotSame(library1_9, library1_10);
637Assert.NotSame(localTypes1_9, localTypes1_10);
712Assert.NotSame(localTypes1_1, localTypes1_2);
713Assert.NotSame(localTypes2_1, localTypes2_2);
741Assert.NotSame(localTypes1_1, localTypes1_3);
742Assert.NotSame(localTypes2_1, localTypes2_3);
743Assert.NotSame(localTypes1_2, localTypes1_3);
744Assert.NotSame(localTypes2_2, localTypes2_3);
745Assert.NotSame(pia1_1, pia1_3);
937Assert.NotSame(library1_9, library1_10);
938Assert.NotSame(localTypes1_9, localTypes1_10);
1016Assert.NotSame(localTypes1_1, localTypes1_2);
1017Assert.NotSame(localTypes2_1, localTypes2_2);
1045Assert.NotSame(localTypes1_1, localTypes1_3);
1046Assert.NotSame(localTypes2_1, localTypes2_3);
1047Assert.NotSame(localTypes1_2, localTypes1_3);
1048Assert.NotSame(localTypes2_2, localTypes2_3);
1049Assert.NotSame(pia1_1, pia1_3);
1241Assert.NotSame(library1_9, library1_10);
1242Assert.NotSame(localTypes1_9, localTypes1_10);
1269Assert.NotSame(tc1.GetReferencedAssemblySymbol(localTypes1Ref),
1295Assert.NotSame(tc1.GetReferencedAssemblySymbol(localTypes1Ref),
1325Assert.NotSame(tc1.GetReferencedAssemblySymbol(localTypes1Ref),
2673Assert.NotSame(compilation1.SourceAssembly.CorLibrary, compilation2.SourceAssembly.CorLibrary);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (10)
125Assert.NotSame(interfaceV1, interfaceV2);
161Assert.NotSame(interfaceV1Method1, retargetedClassCMethod1Impl);
190Assert.NotSame(interfaceV1Method4, retargetedClassCMethod4Impl);
200Assert.NotSame(interfaceV1Property1, retargetedClassCProperty1Impl);
227Assert.NotSame(interfaceV1Property4, retargetedClassCProperty4Impl);
238Assert.NotSame(interfaceV1Indexer1, retargetedClassCIndexer1Impl);
265Assert.NotSame(interfaceV1Indexer4, retargetedClassCIndexer4Impl);
276Assert.NotSame(interfaceV1Event1, retargetedClassCEvent1Impl);
303Assert.NotSame(interfaceV1Event4, retargetedClassCEvent4Impl);
463Assert.NotSame(compilation2.GetTypeByMetadataName("C1`1"), compilation3.GetTypeByMetadataName("C1`1"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.Features.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (27)
Collections\BoxesTest.cs (16)
19Assert.NotSame(Boxes.Box(true), Boxes.Box(false));
23Assert.NotSame(Boxes.Box((byte)3), Boxes.Box((byte)3));
27Assert.NotSame(Boxes.Box((sbyte)3), Boxes.Box((sbyte)3));
31Assert.NotSame(Boxes.Box((short)3), Boxes.Box((short)3));
35Assert.NotSame(Boxes.Box((ushort)3), Boxes.Box((ushort)3));
42Assert.NotSame(Boxes.Box(3), Boxes.Box(3));
46Assert.NotSame(Boxes.Box(3u), Boxes.Box(3u));
50Assert.NotSame(Boxes.Box(3L), Boxes.Box(3L));
54Assert.NotSame(Boxes.Box(3UL), Boxes.Box(3UL));
58Assert.NotSame(Boxes.Box(0.0f), Boxes.Box(-0.0f));
59Assert.NotSame(Boxes.Box(1.0f), Boxes.Box(1.0f));
63Assert.NotSame(Boxes.Box(0.0), Boxes.Box(-0.0));
64Assert.NotSame(Boxes.Box(1.0), Boxes.Box(1.0));
68Assert.NotSame(Boxes.Box(0m), Boxes.Box(decimal.Negate(0m)));
71Assert.NotSame(Boxes.Box(decimal.Zero), Boxes.Box(strangeDecimalZero));
77Assert.NotSame(Boxes.Box('\u1234'), Boxes.Box('\u1234')); // non ASCII
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (42)
SolutionTests\SolutionTests.cs (24)
312Assert.NotSame(root, actualRoot);
1017Assert.NotSame(newSolution1, newSolution2);
1039Assert.NotSame(newSolution1, newSolution2);
1061Assert.NotSame(newSolution1, newSolution2);
2651Assert.NotSame(document1, document2);
2677Assert.NotSame(document1, document2);
2678Assert.NotSame(document1.Project, document2.Project);
3233Assert.NotSame(tree, tree2);
3234Assert.NotSame(annotatedRoot, root2);
4125Assert.NotSame(frozenDocument, documentToFreeze);
4150Assert.NotSame(frozenDocument, documentToFreeze);
4184Assert.NotSame(frozenDocument, documentToFreezeChanged);
4229Assert.NotSame(frozenDocument, documentToFreezeChanged);
4479Assert.NotSame(doc1Root, doc2Root);
4489Assert.NotSame(frozenDoc1Root, frozenDoc2Root);
4504Assert.NotSame(frozenDoc1Root, frozenDoc2Root);
4724Assert.NotSame(originalCompilation, newCompilation);
4891Assert.NotSame(originalCompilation, newCompilation);
5118Assert.NotSame(compilation1, compilation1New);
5150Assert.NotSame(compilation1, compilation1New);
5218Assert.NotSame(compilation1, compilation1New);
5484Assert.NotSame(root, newRoot);
5486Assert.NotSame(doc, newDoc);
5813Assert.NotSame(generatedDocuments.Single(), forkedGeneratedDocuments.Single());
Microsoft.Data.Analysis.Tests (14)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.Tests (14)
Microsoft.Extensions.Caching.Hybrid.Tests (16)
Microsoft.Extensions.Localization.Tests (3)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
Microsoft.Extensions.ObjectPool.Tests (3)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.JSInterop.Tests (1)
Microsoft.Net.Http.Headers.Tests (18)
Shared.Tests (2)
System.Xaml.Tests (2)
WindowsBase.Tests (159)
System\Windows\FreezableTests.cs (62)
1331Assert.NotSame(freezable, clone);
1352Assert.NotSame(freezable, clone);
1353Assert.NotSame(clone, clone2);
1421Assert.NotSame(freezable, clone);
1427Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
1430Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
1433Assert.NotSame(anotherFreezable3, ((SubFreezable)clone.GetValue(SubFreezable.Property8)));
1490Assert.NotSame(freezable, clone);
1496Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
1499Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
1502Assert.NotSame(anotherFreezable3, ((SubFreezable)clone.GetValue(SubFreezable.Property8)));
1540Assert.NotSame(freezable, clone);
1610Assert.NotSame(freezable, clone);
1643Assert.NotSame(freezable, clone);
1723Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
1726Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
1729Assert.NotSame(anotherFreezable3, ((SubFreezable)freezable.GetValue(SubFreezable.Property8)));
1827Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
1830Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
1833Assert.NotSame(anotherFreezable3, ((SubFreezable)freezable.GetValue(SubFreezable.Property8)));
2217Assert.NotSame(freezable, clone);
2238Assert.NotSame(freezable, clone);
2239Assert.NotSame(clone, clone2);
2307Assert.NotSame(freezable, clone);
2313Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
2316Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
2319Assert.NotSame(anotherFreezable3, ((SubFreezable)clone.GetValue(SubFreezable.Property8)));
2376Assert.NotSame(freezable, clone);
2382Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
2385Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
2388Assert.NotSame(anotherFreezable3, ((SubFreezable)clone.GetValue(SubFreezable.Property8)));
2426Assert.NotSame(freezable, clone);
2493Assert.NotSame(freezable, clone);
2526Assert.NotSame(freezable, clone);
2606Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
2609Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
2612Assert.NotSame(anotherFreezable3, ((SubFreezable)freezable.GetValue(SubFreezable.Property8)));
2710Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
2713Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
2716Assert.NotSame(anotherFreezable3, ((SubFreezable)freezable.GetValue(SubFreezable.Property8)));
4363Assert.NotSame(freezable, clone);
4383Assert.NotSame(freezable, clone);
4384Assert.NotSame(clone, clone2);
4450Assert.NotSame(freezable, clone);
4456Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
4459Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
4518Assert.NotSame(freezable, clone);
4524Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
4527Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
4719Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
4722Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
5216Assert.NotSame(freezable, clone);
5236Assert.NotSame(freezable, clone);
5237Assert.NotSame(clone, clone2);
5303Assert.NotSame(freezable, clone);
5309Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
5312Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
5371Assert.NotSame(freezable, clone);
5377Assert.NotSame(anotherFreezable1, ((SubFreezable)clone.GetValue(SubFreezable.Property6)));
5380Assert.NotSame(anotherFreezable2, ((SubFreezable)clone.GetValue(SubFreezable.Property7)));
5572Assert.NotSame(anotherFreezable1, ((SubFreezable)freezable.GetValue(SubFreezable.Property6)));
5575Assert.NotSame(anotherFreezable2, ((SubFreezable)freezable.GetValue(SubFreezable.Property7)));
System\Windows\Markup\Primitives\MarkupObjectTests.cs (30)
25Assert.NotSame(obj.Properties, obj.Properties);
39Assert.NotSame(obj.Properties, obj.Properties);
73Assert.NotSame(obj.Properties, obj.Properties);
93Assert.NotSame(properties[0].Items, properties[0].Items);
108Assert.NotSame(obj.Properties, obj.Properties);
127Assert.NotSame(obj, Assert.Single(properties[0].Items));
128Assert.NotSame(properties[0].Items, properties[0].Items);
147Assert.NotSame(properties[1].Items, properties[1].Items);
167Assert.NotSame(obj.Properties, obj.Properties);
187Assert.NotSame(properties[0].Items, properties[0].Items);
203Assert.NotSame(obj.Properties, obj.Properties);
223Assert.NotSame(properties[0].Items, properties[0].Items);
241Assert.NotSame(obj.Properties, obj.Properties);
260Assert.NotSame(obj, Assert.Single(properties[0].Items));
261Assert.NotSame(properties[0].Items, properties[0].Items);
280Assert.NotSame(obj.Properties, obj.Properties);
299Assert.NotSame(obj, Assert.Single(properties[0].Items));
300Assert.NotSame(properties[0].Items, properties[0].Items);
319Assert.NotSame(obj.Properties, obj.Properties);
338Assert.NotSame(obj, Assert.Single(properties[0].Items));
339Assert.NotSame(properties[0].Items, properties[0].Items);
363Assert.NotSame(obj.Properties, obj.Properties);
382Assert.NotSame(obj, Assert.Single(properties[0].Items));
383Assert.NotSame(properties[0].Items, properties[0].Items);
398Assert.NotSame(obj.Properties, obj.Properties);
412Assert.NotSame(obj.Properties, obj.Properties);
431Assert.NotSame(obj, Assert.Single(properties[0].Items));
432Assert.NotSame(properties[0].Items, properties[0].Items);
450Assert.NotSame(obj, Assert.Single(properties[1].Items));
451Assert.NotSame(properties[1].Items, properties[1].Items);
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (28)
26Assert.NotSame(obj.Properties, obj.Properties);
60Assert.NotSame(obj.Properties, obj.Properties);
80Assert.NotSame(properties[0].Items, properties[0].Items);
95Assert.NotSame(obj.Properties, obj.Properties);
114Assert.NotSame(obj, Assert.Single(properties[0].Items));
115Assert.NotSame(properties[0].Items, properties[0].Items);
134Assert.NotSame(properties[1].Items, properties[1].Items);
154Assert.NotSame(obj.Properties, obj.Properties);
174Assert.NotSame(properties[0].Items, properties[0].Items);
190Assert.NotSame(obj.Properties, obj.Properties);
210Assert.NotSame(properties[0].Items, properties[0].Items);
228Assert.NotSame(obj.Properties, obj.Properties);
247Assert.NotSame(obj, Assert.Single(properties[0].Items));
248Assert.NotSame(properties[0].Items, properties[0].Items);
267Assert.NotSame(obj.Properties, obj.Properties);
286Assert.NotSame(obj, Assert.Single(properties[0].Items));
287Assert.NotSame(properties[0].Items, properties[0].Items);
306Assert.NotSame(obj.Properties, obj.Properties);
325Assert.NotSame(obj, Assert.Single(properties[0].Items));
326Assert.NotSame(properties[0].Items, properties[0].Items);
350Assert.NotSame(obj.Properties, obj.Properties);
369Assert.NotSame(obj, Assert.Single(properties[0].Items));
370Assert.NotSame(properties[0].Items, properties[0].Items);
385Assert.NotSame(obj.Properties, obj.Properties);
404Assert.NotSame(obj, Assert.Single(properties[0].Items));
405Assert.NotSame(properties[0].Items, properties[0].Items);
423Assert.NotSame(obj, Assert.Single(properties[1].Items));
424Assert.NotSame(properties[1].Items, properties[1].Items);
System\Windows\NameScopeTests.cs (16)
134Assert.NotSame(nameScope.Keys, nameScope.Keys);
137Assert.NotSame(nameScope.Values, nameScope.Values);
147Assert.NotSame(nameScope.Keys, nameScope.Keys);
150Assert.NotSame(nameScope.Values, nameScope.Values);
255Assert.NotSame(nameScope.Keys, nameScope.Keys);
258Assert.NotSame(nameScope.Values, nameScope.Values);
268Assert.NotSame(nameScope.Keys, nameScope.Keys);
271Assert.NotSame(nameScope.Values, nameScope.Values);
349Assert.NotSame(nameScope.Keys, nameScope.Keys);
352Assert.NotSame(nameScope.Values, nameScope.Values);
362Assert.NotSame(nameScope.Keys, nameScope.Keys);
365Assert.NotSame(nameScope.Values, nameScope.Values);
852Assert.NotSame(nameScope.Keys, nameScope.Keys);
855Assert.NotSame(nameScope.Values, nameScope.Values);
865Assert.NotSame(nameScope.Keys, nameScope.Keys);
868Assert.NotSame(nameScope.Values, nameScope.Values);
System\Windows\WeakEventManagerTests.cs (19)
763Assert.NotSame(list, manager.NewListenerList());
1142Assert.NotSame(list2, list1);
1510Assert.NotSame(list2, list1);
1922Assert.NotSame(list3, list1);
1934Assert.NotSame(list3, list1);
2352Assert.NotSame(list3, list1);
2364Assert.NotSame(list3, list1);
3118Assert.NotSame(originalList, list);
3124Assert.NotSame(originalList, list);
3221Assert.NotSame(originalList, list);
3294Assert.NotSame(originalList, list);
3933Assert.NotSame(list, newList);
3950Assert.NotSame(list, newList);
3978Assert.NotSame(list, newList);
4014Assert.NotSame(list, newList);
5695Assert.NotSame(list, newList);
5712Assert.NotSame(list, newList);
5740Assert.NotSame(list, newList);
5776Assert.NotSame(list, newList);