135 references to Equal
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
100AssertEx.Equal(expectedOutput, output);
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)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
106AssertEx.Equal(expected, actualFormatted);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (3)
12699AssertEx.Equal(new[] { 16577AssertEx.Equal(new[] { 16614AssertEx.Equal(new[] {
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\NumericIntPtrTests.cs (1)
583AssertEx.Equal(expectedMembers, actualMembers);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Tuples.cs (1)
640AssertEx.Equal(expectedElementNames, actualElementNames);
Semantics\CollectionExpressionTests.cs (3)
15599AssertEx.Equal(new[] { "<>y__InlineArray2", "<>y__InlineArray3" }, getInlineArrayTypeNames(module)); 15627AssertEx.Equal(new[] { "<>y__InlineArray3" }, getInlineArrayTypeNames(module)); 15655AssertEx.Equal(new[] { $"<>y__InlineArray{n}" }, getInlineArrayTypeNames(module));
Semantics\RecordTests.cs (2)
12553AssertEx.Equal(expectedModifiers, returnType.CustomModifiers); 12560AssertEx.Equal(expectedModifiers, parameterType.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\LambdaTests.cs (1)
3904AssertEx.Equal(expectedAttributes, actualAttributes);
Semantics\NativeIntegerTests.cs (9)
1825AssertEx.Equal(expectedMembers, actualMembers); 1990AssertEx.Equal(expectedMembers, actualMembers); 2154AssertEx.Equal(expectedMembers, actualMembers); 2253AssertEx.Equal(expectedMembers, actualMembers); 2378AssertEx.Equal(expectedMembers, actualMembers); 2506AssertEx.Equal(expectedMembers, actualMembers); 2655AssertEx.Equal(expectedMembers, actualMembers); 2756AssertEx.Equal(expectedMembers, actualMembers); 2907AssertEx.Equal(expectedMembers, actualMembers);
Semantics\NullableReferenceTypesTests.cs (3)
111756AssertEx.Equal(expectedTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true))); 111821AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true))); 111874AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
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);
Compilation\UsedAssembliesTests.cs (2)
102AssertEx.Equal(expected, used); 283AssertEx.Equal(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Assembly), comp.GetUsedAssemblyReferences());
Symbols\Source\FileModifierTests.cs (4)
4415AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt); 4424AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt); 4433AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt); 4482AssertEx.Equal(
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)
CSharpTestBase.cs (1)
1850AssertEx.Equal(resolvedReferences, used);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\PatternMatcherTests.cs (2)
119=> Roslyn.Test.Utilities.AssertEx.Equal(parts, BreakIntoWordParts(original)); 122=> Roslyn.Test.Utilities.AssertEx.Equal(parts, BreakIntoCharacterParts(original));
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
2314AssertEx.Equal(documentKind == TextDocumentKind.Document ? new[] { documentId } : [],
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)
ScriptOptionsTests.cs (1)
114AssertEx.Equal(new[] { "", "blah.", "b\0lah", ".blah", "b\0lah", ".blah" }, options.Imports);
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);
CryptoBlobParserTests.cs (3)
118AssertEx.Equal(TestResources.General.snPublicKey, pubKey); 129AssertEx.Equal(TestResources.General.snPublicKey2, pubKey); 158AssertEx.Equal(snBlob, pubKey);
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\MetadataReferencePropertiesTests.cs (1)
26AssertEx.Equal(new[] { "\\/[.'\":_)??\t\n*#$@^%*&)", "goo" }, m.Aliases);
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)
Attributes\InternalsVisibleToAndStrongNameTests.vb (3)
1141AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp.Assembly.Identity.PublicKeyToken) 1159AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp2.Assembly.Identity.PublicKeyToken) 1166AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp3.Assembly.Identity.PublicKeyToken)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
UsedAssembliesTests.vb (1)
91AssertEx.Equal(expected, used)