159 references to Equal
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (21)
CommandLineTests.cs (21)
514AssertEx.Equal(new[] { typeof(object).Assembly.Location, @"..\v4.0.30319\System.dll", @".\System.Data.dll" }, references); 608AssertEx.Equal(new[] { @"C:\temp\a.cs", @"C:\temp\b.cs", @"C:\temp\c.cs", @"C:\temp\a\x.cs", @"C:\temp\a\b\b.cs", @"C:\temp\a\c.cs" }, resolvedSourceFiles); 716AssertEx.Equal(new[] { folder.Path + @"\c.cpp", folder.Path + @"\B\B_c.cpx", folder.Path + @"\a\A_a.cs", folder.Path + @"\a\A_b.cs", }, resolvedSourceFiles); 2317AssertEx.Equal(slContent, actualData); 8850AssertEx.Equal(new byte[] { 0x4D, 0x5A }, ReadBytes(libDll.Path, 2)); 8851AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3)); 8853AssertEx.Equal(new byte[] { 0x4D, 0x69 }, ReadBytes(libPdb.Path, 2)); 8854AssertEx.Equal(new[] { (byte)'P', (byte)'D', (byte)'B' }, ReadBytes(fsPdb, 3)); 8910AssertEx.Equal(new[] { (byte)'B', (byte)'S', (byte)'J', (byte)'B' }, ReadBytes(libPdb.Path, 4)); 8952AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(libDll.Path, 3)); 8953AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3)); 10064AssertEx.Equal(expectedWarningsAll, compileAndRun(featureOpt: null)); 10065AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis")); 10066AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always")); 10067AssertEx.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never")); 10068AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored 10069AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored 10070AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored 10071AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored 10072AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored 11597AssertEx.Equal(expected, CommandLineParser.SplitWithDoubledSeparatorEscaping(str, ','));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\EmitMetadataTests.cs (4)
2309AssertEx.Equal(new byte[] 2322AssertEx.Equal(new byte[] 2349AssertEx.Equal(new byte[] { 0xFF, 0x25, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00 }, startupStub); 2407AssertEx.Equal(new byte[] { 0, 0x20, 0, 0, 0x0c, 0, 0, 0, 0x80, 0x33, 0, 0 }, relocBytes);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
227AssertEx.Equal(expectedValue, attributeData);
PDB\PDBSourceLinkTests.cs (2)
57AssertEx.Equal(sourceLinkBlob, actualData); 192AssertEx.Equal(sourceLinkBlob, actualData);
PDB\PortablePdbTests.cs (2)
88AssertEx.Equal(new byte[] 136AssertEx.Equal(new byte[]
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_NativeInteger.cs (1)
1615AssertEx.Equal(expectedNames, actualNames);
Attributes\AttributeTests_WellKnownAttributes.cs (2)
1127AssertEx.Equal(expectedConstant, actual); 1212AssertEx.Equal(expectedConstant, actual);
FieldKeywordTests.cs (2)
9458AssertEx.Equal(expectedValues, actualValues); 9469AssertEx.Equal(expectedValues, actualValues);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (6)
InteractiveSessionTests.cs (6)
1024AssertEx.Equal(new object[] { 1, 1, null }, result); 1038AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1); 1041AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2); 1044AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue); 1047AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue); 1050AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (36)
Semantics\NullableContextTests.cs (36)
211AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 260AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 319AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 357AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 396AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 431AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 727AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 728AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 987AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 988AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1068AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1069AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1152AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1153AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1211AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1212AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1302AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1303AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1359AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1360AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1455AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 1495AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1496AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1531AssertEx.Equal(new[] { "= null", "= null", "F2" }, actualAnalyzedKeys); 1617AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys); 1741AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1742AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1784AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1785AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1846AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true)); 1847AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData)); 1884AssertEx.Equal(new[] { "A(A.F1 = null)" }, actualAnalyzedKeys); 1939AssertEx.Equal(new[] { expectedAnalyzedKey }, actualAnalyzedKeys); 1975AssertEx.Equal(new[] { "o1" }, actualAnalyzedKeys); 2016AssertEx.Equal(new[] { "F2", "F3" }, actualAnalyzedKeys); 2055AssertEx.Equal(new[] { "P2", "P3" }, actualAnalyzedKeys);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
DocumentationComments\CrefTests.cs (4)
937AssertEx.Equal(expected, actual); 1033AssertEx.Equal(expected, actual); 1132AssertEx.Equal(expected, actual); 5090AssertEx.Equal(expectedSymbols, actualSymbols);
Symbols\Source\NullablePublicAPITests.cs (3)
966AssertEx.Equal(expectedAnnotations, actualAnnotations); 1024AssertEx.Equal(expectedAnnotations, actualAnnotations); 4789AssertEx.Equal(expectedAnnotations, actualAnnotations);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
PdbTests.cs (2)
98AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'i', (byte)'c', (byte)'r', (byte)'o' }, pdbStream.GetBuffer().Take(6).ToArray()); 99AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'Z' }, peStream.GetBuffer().Take(3).ToArray());
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
33AssertEx.Equal(internalValues, externalValues); 34AssertEx.Equal(internalNames, externalNames);
Microsoft.CodeAnalysis.Test.Utilities (7)
Assert\AssertEx.cs (1)
165Equal<T>(expected.ToArray(), actual);
Compilation\CompilationExtensions.cs (3)
418AssertEx.Equal(positions, getPositionsFromEnd(separatedList)); 427AssertEx.Equal(positions, getPositionsFromStart(new SeparatedWithManyChildren(green, null, separatedList.Position))); 430AssertEx.Equal(positions, getPositionsFromEnd(new SeparatedWithManyChildren(green, null, separatedList.Position)));
Metadata\MetadataReaderUtils.cs (1)
511AssertEx.Equal(ThrowNull, il);
Metadata\MetadataValidation.cs (2)
95AssertEx.Equal(expectedBlob, actualBlob); 126AssertEx.Equal(expectedBlob, actualBlob);
Microsoft.CodeAnalysis.UnitTests (27)
CryptoBlobParserTests.cs (16)
34AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 }); 38AssertEx.Equal(expectedModulus, privKey.Modulus); 42AssertEx.Equal(expectedP, privKey.P); 46AssertEx.Equal(expectedQ, privKey.Q); 50AssertEx.Equal(expectedDP, privKey.DP); 54AssertEx.Equal(expectedDQ, privKey.DQ); 58AssertEx.Equal(expectedInverseQ, privKey.InverseQ); 62AssertEx.Equal(expectedD, privKey.D); 77AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 }); 81AssertEx.Equal(expectedModulus, privKey.Modulus); 85AssertEx.Equal(expectedP, privKey.P); 89AssertEx.Equal(expectedQ, privKey.Q); 93AssertEx.Equal(expectedDP, privKey.DP); 97AssertEx.Equal(expectedDQ, privKey.DQ); 101AssertEx.Equal(expectedInverseQ, privKey.InverseQ); 105AssertEx.Equal(expectedD, privKey.D);
EmbeddedTextTests.cs (3)
166AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4))); 181AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4))); 245AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
MetadataReferences\AssemblyIdentityTests.cs (7)
314AssertEx.Equal(new byte[0], an.GetPublicKeyToken()); 315AssertEx.Equal(null, an.GetPublicKey()); 330AssertEx.Equal(PublicKeyToken1, an.GetPublicKeyToken()); 331AssertEx.Equal(PublicKey1, an.GetPublicKey()); 346AssertEx.Equal(new byte[0], an.GetPublicKeyToken()); 347AssertEx.Equal(null, an.GetPublicKey()); 371AssertEx.Equal(PublicKeyToken1, anPkt);
MetadataReferences\MetadataHelpersTests.cs (1)
258AssertEx.Equal(expectedArrayRanks, decodedName.ArrayRanks);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
2445AssertEx.Equal({folder.Path + "\c.cpp", folder.Path + "\b\B_e.vb"}, resolvedSourceFiles)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (35)
FlowAnalysis\FlowTestBase.vb (13)
228AssertEx.Equal(If(alwaysAssigned, {}), analysis.AlwaysAssigned.Select(Function(s) s.Name).ToArray()) 229AssertEx.Equal(If(captured, {}), analysis.Captured.Select(Function(s) s.Name).ToArray()) 230AssertEx.Equal(If(dataFlowsIn, {}), analysis.DataFlowsIn.Select(Function(s) s.Name).ToArray()) 231AssertEx.Equal(If(dataFlowsOut, {}), analysis.DataFlowsOut.Select(Function(s) s.Name).ToArray()) 232AssertEx.Equal(If(definitelyAssignedOnEntry, {}), analysis.DefinitelyAssignedOnEntry.Select(Function(s) s.Name).ToArray()) 233AssertEx.Equal(If(definitelyAssignedOnExit, {}), analysis.DefinitelyAssignedOnExit.Select(Function(s) s.Name).ToArray()) 234AssertEx.Equal(If(readInside, {}), analysis.ReadInside.Select(Function(s) s.Name).ToArray()) 235AssertEx.Equal(If(readOutside, {}), analysis.ReadOutside.Select(Function(s) s.Name).ToArray()) 236AssertEx.Equal(If(variablesDeclared, {}), analysis.VariablesDeclared.Select(Function(s) s.Name).ToArray()) 237AssertEx.Equal(If(writtenInside, {}), analysis.WrittenInside.Select(Function(s) s.Name).ToArray()) 238AssertEx.Equal(If(writtenOutside, {}), analysis.WrittenOutside.Select(Function(s) s.Name).ToArray()) 239AssertEx.Equal(If(capturedInside, {}), analysis.CapturedInside.Select(Function(s) s.Name).ToArray()) 240AssertEx.Equal(If(capturedOutside, {}), analysis.CapturedOutside.Select(Function(s) s.Name).ToArray())
Semantics\FieldInitializerBindingTests.vb (22)
908AssertEx.Equal(_ZERO4, actual) 979AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 981AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT}, 987AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 989AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4}, 995AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 997AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT}, 1003AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1005AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1}, 1011AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value)) 1013AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4}, 1019AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value)) 1021AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1}, 1027AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1034AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1041AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1048AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value)) 1055AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1062AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value)) 1320AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1325AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1330AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
195AssertEx.Equal(new byte[] { 0x3f }, deserialized.GetBytes("\u1234"));