164 references to Equal
InteractiveHost.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
2198AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
2227AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
4487AssertEx.Equal(new[]
11184AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11188AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11192AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11196AssertEx.Equal(new[] { "--", "b", "c" }, args.ScriptArguments);
11200AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11204AssertEx.Equal(new[] { "a", "--", "b", "c" }, args.ScriptArguments);
11209AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11214AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11220AssertEx.Equal(new[] { "--" }, args.ScriptArguments);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (7)
2691AssertEx.Equal(Array.Empty<CodeAnalysis.NullableAnnotation>(), GetAnonymousTypeNullableAnnotations(type));
2704AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, GetAnonymousTypeNullableAnnotations(type));
2710AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated }, GetAnonymousTypeNullableAnnotations(type));
3040AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3048AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3075AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3083AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Diagnostics\LineSpanDirectiveTests.cs (17)
50AssertEx.Equal(expectedLineMappings, actualLineMappings);
62AssertEx.Equal(expectedTextSpans, actualTextSpans);
96AssertEx.Equal(expectedLineMappings, actualLineMappings);
114AssertEx.Equal(expectedTextSpans, actualTextSpans);
156AssertEx.Equal(expectedLineMappings, actualLineMappings);
195AssertEx.Equal(expectedLineMappings, actualLineMappings);
207AssertEx.Equal(expectedTextSpans, actualTextSpans);
246AssertEx.Equal(expectedLineMappings, actualLineMappings);
265AssertEx.Equal(expectedVisibility, actualVisibility);
277AssertEx.Equal(expectedTextSpans, actualTextSpans);
314AssertEx.Equal(expectedLineMappings, actualLineMappings);
323AssertEx.Equal(expectedTextSpans, actualTextSpans);
366AssertEx.Equal(expectedLineMappings, actualLineMappings);
378AssertEx.Equal(expectedTextSpans, actualTextSpans);
427AssertEx.Equal(expectedLineMappings, actualLineMappings);
440AssertEx.Equal(expectedTextSpans, actualTextSpans);
583AssertEx.Equal(expectedLineMappings, actualLineMappings);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (22)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (8)
151AssertEx.Equal(new[] { documentId }, captureMatchingDocuments);
251AssertEx.Equal(new byte[] { 1, 2 }, delta.ILDelta);
252AssertEx.Equal(new byte[] { 3, 4 }, delta.MetadataDelta);
253AssertEx.Equal(new byte[] { 5, 6 }, delta.PdbDelta);
254AssertEx.Equal(new[] { 0x06000001 }, delta.UpdatedMethods);
255AssertEx.Equal(new[] { 0x02000001 }, delta.UpdatedTypes);
259AssertEx.Equal(new[] { new SourceLineUpdate(1, 2) }, lineEdit.LineUpdates);
316AssertEx.Equal(new[] { documentId, inProcOnlyDocumentId }, documentIds);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (49)
Collections\ArrayBuilderTests.cs (5)
64AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => n));
67AssertEx.Equal(new[] { 1 }, builder.SelectDistinct(n => n));
70AssertEx.Equal(new int[0], builder.SelectDistinct(n => n));
73AssertEx.Equal(new[] { 10 }, builder.SelectDistinct(n => 10));
76AssertEx.Equal(new byte[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => (byte)n));
Collections\ImmutableArrayExtensionsTests.cs (8)
365AssertEx.Equal(new[] { 10 }, ImmutableArray.Create(1).SelectAsArray(i => 10 * i));
366AssertEx.Equal(new[] { 10, 20 }, ImmutableArray.Create(1, 2).SelectAsArray(i => 10 * i));
367AssertEx.Equal(new[] { 10, 20, 30 }, ImmutableArray.Create(1, 2, 3).SelectAsArray(i => 10 * i));
368AssertEx.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i));
369AssertEx.Equal(new[] { 10, 20, 30, 40, 50 }, ImmutableArray.Create(1, 2, 3, 4, 5).SelectAsArray(i => 10 * i));
378AssertEx.Equal(new[] { 2, 3, 4, 5, 6 }, array.SelectAsArray(item => true, item => item + 1));
379AssertEx.Equal(new[] { 3, 5 }, array.SelectAsArray(item => item % 2 == 0, item => item + 1));
486AssertEx.Equal(new[] { 3, 4, 5 }, a.WhereAsArray((i, j) => i > j, 2));
Collections\TopologicalSortTests.cs (3)
37AssertEx.Equal(new[] { 4, 5, 2, 3, 1, 0 }, sorted);
58AssertEx.Equal(new[] { "4", "5", "2", "3", "1", "0" }, sorted);
81AssertEx.Equal(new[] { 1, 4, 3, 5, 6, 7, 2 }, sorted);
EmbeddedTextTests.cs (3)
85AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
97AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
110AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
Emit\CustomDebugInfoTests.cs (9)
94AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
126AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
138AssertEx.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
150AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.DynamicLocals));
213AssertEx.Equal(new byte[] { 0xFF, 0xC0, 0x00, 0x4E, 0x20, 0x81, 0xC0, 0x00, 0x4E, 0x1F, 0x0A, 0x9A, 0x00, 0x0A }, bytes);
242AssertEx.Equal(new byte[] { 0x7C, 0x80, 0xC8, 0x03, 0x64, 0x80, 0xD2, 0x00, 0x80, 0xDC, 0x03, 0x80, 0x96, 0x02, 0x14, 0x01 }, bytes);
265AssertEx.Equal(new byte[] { 0x00, 0x01, 0x00, 0x15, 0x01 }, bytes);
289AssertEx.Equal(new byte[] { 0x0B, 0x01, 0x00 }, bytes);
736AssertEx.Equal(new byte[] { 0x01, 0x00, 0x00, 0x06 }, records[0].Data);
MetadataReferences\AssemblyIdentityTests.cs (10)
161AssertEx.Equal(PublicKey1, id.PublicKey);
162AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
173AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
183AssertEx.Equal(PublicKey1, id.PublicKey);
184AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
194AssertEx.Equal(PublicKey1, id.PublicKey);
195AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
265AssertEx.Equal(PublicKey1, id.PublicKey);
266AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
372AssertEx.Equal(PublicKeyToken1, aiPkt);
MetadataReferences\MetadataReferenceTests.cs (7)
302AssertEx.Equal(new[] { "a" }, r.Properties.Aliases);
314AssertEx.Equal(new[] { "b", "c" }, r3.Properties.Aliases);
332AssertEx.Equal(new[] { "x" }, r6.Properties.Aliases);
349AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
361AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases);
380AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
392AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Compilation\CompilationAPITests.vb (7)
1708AssertEx.Equal(Array.Empty(Of CodeAnalysis.NullableAnnotation)(), GetAnonymousTypeNullableAnnotations(type))
1720AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1726AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1949AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1956AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1981AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1988AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)