135 references to Equal
InteractiveHost.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
2251AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
2280AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
4668AssertEx.Equal(new[]
11440AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11444AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11448AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11452AssertEx.Equal(new[] { "--", "b", "c" }, args.ScriptArguments);
11456AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11460AssertEx.Equal(new[] { "a", "--", "b", "c" }, args.ScriptArguments);
11465AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11470AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11476AssertEx.Equal(new[] { "--" }, args.ScriptArguments);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (7)
2689AssertEx.Equal(Array.Empty<CodeAnalysis.NullableAnnotation>(), GetAnonymousTypeNullableAnnotations(type));
2702AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, GetAnonymousTypeNullableAnnotations(type));
2708AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated }, GetAnonymousTypeNullableAnnotations(type));
3038AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3046AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3073AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3081AssertEx.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);
111AssertEx.Equal(expectedTextSpans, actualTextSpans);
153AssertEx.Equal(expectedLineMappings, actualLineMappings);
192AssertEx.Equal(expectedLineMappings, actualLineMappings);
204AssertEx.Equal(expectedTextSpans, actualTextSpans);
243AssertEx.Equal(expectedLineMappings, actualLineMappings);
262AssertEx.Equal(expectedVisibility, actualVisibility);
274AssertEx.Equal(expectedTextSpans, actualTextSpans);
311AssertEx.Equal(expectedLineMappings, actualLineMappings);
320AssertEx.Equal(expectedTextSpans, actualTextSpans);
363AssertEx.Equal(expectedLineMappings, actualLineMappings);
375AssertEx.Equal(expectedTextSpans, actualTextSpans);
424AssertEx.Equal(expectedLineMappings, actualLineMappings);
437AssertEx.Equal(expectedTextSpans, actualTextSpans);
580AssertEx.Equal(expectedLineMappings, actualLineMappings);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (8)
135AssertEx.Equal(new[] { documentId }, captureMatchingDocuments);
233AssertEx.Equal(new byte[] { 1, 2 }, delta.ILDelta);
234AssertEx.Equal(new byte[] { 3, 4 }, delta.MetadataDelta);
235AssertEx.Equal(new byte[] { 5, 6 }, delta.PdbDelta);
236AssertEx.Equal(new[] { 0x06000001 }, delta.UpdatedMethods);
237AssertEx.Equal(new[] { 0x02000001 }, delta.UpdatedTypes);
241AssertEx.Equal(new[] { new SourceLineUpdate(1, 2) }, lineEdit.LineUpdates);
270AssertEx.Equal(new[] { documentId, inProcOnlyDocumentId }, documentIds);
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.UnitTests (51)
Collections\ArrayBuilderTests.cs (5)
88AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => n));
91AssertEx.Equal(new[] { 1 }, builder.SelectDistinct(n => n));
94AssertEx.Equal(new int[0], builder.SelectDistinct(n => n));
97AssertEx.Equal(new[] { 10 }, builder.SelectDistinct(n => 10));
100AssertEx.Equal(new byte[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => (byte)n));
Collections\Extensions\ImmutableArrayExtensionsTests.cs (8)
377AssertEx.Equal(new[] { 10 }, ImmutableArray.Create(1).SelectAsArray(i => 10 * i));
378AssertEx.Equal(new[] { 10, 20 }, ImmutableArray.Create(1, 2).SelectAsArray(i => 10 * i));
379AssertEx.Equal(new[] { 10, 20, 30 }, ImmutableArray.Create(1, 2, 3).SelectAsArray(i => 10 * i));
380AssertEx.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i));
381AssertEx.Equal(new[] { 10, 20, 30, 40, 50 }, ImmutableArray.Create(1, 2, 3, 4, 5).SelectAsArray(i => 10 * i));
390AssertEx.Equal(new[] { 2, 3, 4, 5, 6 }, array.SelectAsArray(item => true, item => item + 1));
391AssertEx.Equal(new[] { 3, 5 }, array.SelectAsArray(item => item % 2 == 0, item => item + 1));
498AssertEx.Equal(new[] { 3, 4, 5 }, a.WhereAsArray((i, j) => i > j, 2));
Collections\TopologicalSortTests.cs (3)
42AssertEx.Equal(new[] { 4, 5, 2, 3, 1, 0 }, sorted);
63AssertEx.Equal(new[] { "4", "5", "2", "3", "1", "0" }, sorted);
86AssertEx.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 (11)
90AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
122AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
134AssertEx.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
146AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.DynamicLocals));
209AssertEx.Equal(new byte[] { 0xFF, 0xC0, 0x00, 0x4E, 0x20, 0x81, 0xC0, 0x00, 0x4E, 0x1F, 0x0A, 0x9A, 0x00, 0x0A }, bytes);
238AssertEx.Equal(new byte[] { 0x7C, 0x80, 0xC8, 0x03, 0x64, 0x80, 0xD2, 0x00, 0x80, 0xDC, 0x03, 0x80, 0x96, 0x02, 0x14, 0x01 }, bytes);
261AssertEx.Equal(new byte[] { 0x00, 0x01, 0x00, 0x15, 0x01 }, bytes);
285AssertEx.Equal(new byte[] { 0x0B, 0x01, 0x00 }, bytes);
315AssertEx.Equal(new byte[] { 0x06, 0x00, 0x02, 0x10, 0x04, 0x10, 0x00, 0x10, 0x06, 0x20, 0x08, 0x20, 0x0A, 0x30 }, bytes);
322AssertEx.Equal(new[]
782AssertEx.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.Emit.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)