122 references to SetEqual
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1733AssertEx.SetEqual(new[] { "default", "1", "2", "3", "4", "5", "6", "7.0", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "13.0", "latest", "latestmajor", "preview" },
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
1145AssertEx.SetEqual(new[] { "AsyncIteratorStateMachineAttribute" },
CodeGen\CodeGenDynamicTests.cs (2)
595AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(container.GetAttributes())); 832AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(d.GetAttributes()));
CodeGen\CodeGenTupleTest.cs (11)
28695AssertEx.SetEqual(new[] { 28703AssertEx.SetEqual(new[] { 28711AssertEx.SetEqual(new[] { 28723AssertEx.SetEqual(new[] { 28735AssertEx.SetEqual(new[] { 28750AssertEx.SetEqual(new[] { 28809AssertEx.SetEqual(new[] { 28831AssertEx.SetEqual(new[] { 28854AssertEx.SetEqual(new[] { 28892AssertEx.SetEqual(new[] { 28905AssertEx.SetEqual(new[] {
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\SymbolMatcherTests.cs (2)
1592AssertEx.SetEqual(new[] 1662AssertEx.SetEqual(new[]
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (81)
Attributes\AttributeTests.cs (40)
1805AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes())); 1806AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes())); 1809AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes())); 1813AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes())); 1817AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(2)" }), GetAttributeStrings(field2.GetAttributes())); 1821AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes())); 1825AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(33)" }), GetAttributeStrings(field3.GetAttributes())); 1829AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes())); 1833AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(44)", "A(444)" }), GetAttributeStrings(field4.GetAttributes())); 1866AssertEx.SetEqual(s_backingFieldAttributes.Concat(dynamicAndTupleNames), GetAttributeStrings(field1.GetAttributes())); 1904AssertEx.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes1)); 1908AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1)); 1916AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes())); 1923AssertEx.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes3)); 1966AssertEx.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes1)); 1970AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1)); 1978AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes())); 1985AssertEx.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes3)); 2202AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }), 2209AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }), 2253AssertEx.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field1.GetAttributes())); 2257AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field1.GetAttributes())); 2265AssertEx.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field2.GetAttributes())); 2270AssertEx.SetEqual(decimalAttributeExpected, GetAttributeStrings(field3.GetAttributes())); 2333AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.ObsoleteAttribute" }), 2343AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { @"System.ObsoleteAttribute(""obsolete"", true)" }), 2465AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes())); 2466AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes())); 2469AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes())); 2475AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes())); 2476AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.SetMethod.GetAttributes())); 2479AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes())); 2635AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event1.AddMethod.GetAttributes())); 2636AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event1.RemoveMethod.GetAttributes())); 2645AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event2.AddMethod.GetAttributes())); 2646AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event2.RemoveMethod.GetAttributes())); 2654AssertEx.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.AddMethod.GetAttributes())); 2655AssertEx.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.RemoveMethod.GetAttributes())); 2663AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event4.AddMethod.GetAttributes())); 2664AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event4.RemoveMethod.GetAttributes()));
Attributes\AttributeTests_Conditional.cs (2)
217AssertEx.SetEqual( 231AssertEx.SetEqual(
Attributes\AttributeTests_Synthesized.cs (15)
132AssertEx.SetEqual(expectedAttrs, actualAttrs); 154AssertEx.SetEqual(expectedAttrs, actualAttrs); 265AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(displayClass.GetAttributes())); 304AssertEx.SetEqual(expected, GetAttributeNames(anon.GetAttributes())); 335AssertEx.SetEqual(expected, actual); 431AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes())); 444AssertEx.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes())); 450AssertEx.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes())); 486AssertEx.SetEqual(options.OptimizationLevel == OptimizationLevel.Debug ? 491AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes())); 501AssertEx.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes())); 505AssertEx.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes())); 545AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(attributes)); 582AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes())); 625AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes()));
Diagnostics\GetDiagnosticsTests.cs (8)
1632AssertEx.SetEqual(expectedSymbolCallbacks, analyzer.AnalyzedSymbols.Select(s => s.Name).ToHashSet()); 1637AssertEx.SetEqual(expectedSyntaxNodeCallbacks, analyzer.AnalyzedSyntaxNodes.Select(s => s.ToString()).ToHashSet()); 1641AssertEx.SetEqual(expectedSyntaxNodeInsideBlockCallbacks, analyzer.AnalyzedSyntaxNodesInsideCodeBlock.Select(s => s.ToString()).ToHashSet()); 1646AssertEx.SetEqual(expectedOperationCallbacks, analyzer.AnalyzedOperations.Select(op => op.Syntax.ToString()).ToHashSet()); 1650AssertEx.SetEqual(expectedOperationInsideBlockCallbacks, analyzer.AnalyzedOperationsInsideOperationBlock.Select(op => op.Syntax.ToString()).ToHashSet()); 1662AssertEx.SetEqual(expectedBlockSymbolCallbacks, actualBlockSymbolCallbacks.Select(s => s.Name).ToHashSet()); 1667AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolStartSymbols.Select(s => s.Name).ToHashSet()); 1669AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolEndSymbols.Select(s => s.Name).ToHashSet());
Semantics\PrimaryConstructorTests.cs (1)
3039AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
Semantics\RecordTests.cs (15)
25087AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1)); 25090AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1)); 25093AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 25147AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1)); 25150AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1)); 25153AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 25224AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1)); 25227AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1)); 25230AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 25281AssertEx.SetEqual(new string[] { }, getAttributeStrings(prop1)); 25284AssertEx.SetEqual(new string[] { }, getAttributeStrings(field1)); 25287AssertEx.SetEqual(new string[] { }, getAttributeStrings(param1)); 25362AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 25446AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 25516AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (3)
10501AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1)); 10504AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1)); 10507AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
783AssertEx.SetEqual(new[] { "goo", "global" }, c.ExternAliases); 790AssertEx.SetEqual(new[] { "goo", "bar" }, c.ExternAliases);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Rename\RenamerTests.cs (1)
98AssertEx.SetEqual(endDocument.DocumentFolders, updatedDocument.Folders);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
SuggestedActions\SuggestedActionSourceProviderTests.cs (1)
23AssertEx.SetEqual(attributes.Select(a => a.Priority), SuggestedActionsSourceProvider.Orderings);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
152AssertEx.SetEqual(new[] { "MultiModule.dll", "mod2.netmodule", "mod3.netmodule" }, scFiles.Select(p => Path.GetFileName(p)));
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\CompilationDifference.cs (1)
164AssertEx.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
ReflectionAssert.cs (1)
23AssertEx.SetEqual(expectedFieldsAndProperties, fieldsAndProps, itemSeparator: "\r\n");
Microsoft.CodeAnalysis.UnitTests (7)
Analyzers\AnalyzerFileReferenceTests.cs (3)
371AssertEx.SetEqual(new[] 408AssertEx.SetEqual(new[] 430AssertEx.SetEqual(new[]
AssemblyUtilitiesTests.cs (4)
76AssertEx.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase); 89AssertEx.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase); 103AssertEx.SetEqual(new[] { satelliteFileDE, satelliteFileFR }, results, StringComparer.OrdinalIgnoreCase); 133AssertEx.SetEqual(new[] { "netstandard", "Gamma" }, results);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenClosureLambdaTests.vb (5)
3500AssertEx.SetEqual({ 3509AssertEx.SetEqual({ 3518AssertEx.SetEqual({ 3527AssertEx.SetEqual({ 3581AssertEx.SetEqual({
CodeGen\CodeGenTests.vb (1)
10669AssertEx.SetEqual({"<Module>",
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\ReferenceManagerTests.vb (1)
565AssertEx.SetEqual({"mscorlib 4.0", "RefLibV1 1.0", "Lib 2.0"}, reader.DumpAssemblyReferences())