129 references to Equal
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
MapSourceRootTests.cs (2)
344AssertEx.Equal(new[] 449AssertEx.Equal(new[]
TestUtilities\DotNetSdkTestBase.cs (1)
238AssertEx.Equal(expectedResults, evaluationResult);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
513AssertEx.Equal(new[] { "first.cs", "second.cs", "b.cs", "a.cs", "c.cs", "d.cs", "last.cs" }.Select(prependBasePath), resolvedSourceFiles); 515AssertEx.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray()); 1195AssertEx.Equal(new[] { "a", "b", "c" }, 1202AssertEx.Equal(new[] { " b " }, 1238AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs", "{DIR}\\d2\\e.cs" }, 1243AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs" }, 1273AssertEx.Equal(new[] { "a", "b", "c" }, 1280AssertEx.Equal(new[] { " b " }, 2333AssertEx.Equal( 2339AssertEx.Equal( 2345AssertEx.Equal( 2351AssertEx.Equal( 2357AssertEx.Equal( 2363AssertEx.Equal( 6636AssertEx.Equal(new[] { "a.cs", "b.cs", @"c.cs e.cs", "hello", "world" }, args); 6649AssertEx.Equal(new[] { "a.cs", "b#.cs", "c#d.cs", "#f.cs", "#g.cs #h.cs" }, args); 6656AssertEx.Equal(new[] { @"a\b\c", @"d\\e\\f\\", @"\\\g\\\h\\\i", @"\\\\", @"\\\\\k\\\\\" }, args); 6663AssertEx.Equal(new[] { @"a\""a", @"b\\""b c\\\""c d\\\\""d", @"e\\\\\""e", @"f"" g""" }, args); 6670AssertEx.Equal(new[] { @"/o:""goo.cs""", @"/o:""abc def""\baz", @"""/o:baz bar""bing" }, args);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Debugging\ProximityExpressionsGetterTests.cs (1)
64AssertEx.Equal((string[])["yy", "xx"], terms);
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
171AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start)); 183AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start)); 187AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start)); 199AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenCapturing.cs (1)
211AssertEx.Equal(expectedCtx[depth], ctx.VariablesByScope[depth]);
Emit\CompilationEmitTests.cs (2)
658AssertEx.Equal(new[] { ".text", ".rsrc", ".reloc", ".mvid" }, 2624AssertEx.Equal(expected, entries.Select(e => e.Type));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
508AssertEx.Equal(expected, reader.GetAssemblyReferences().Select(aref => $"{reader.GetString(aref.Name)}, {aref.Version}"));
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
74AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
PDB\PortablePdbTests.cs (4)
177AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type)); 192AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name))); 237AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type)); 253AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
CommandLineRunnerTests.cs (2)
683AssertEx.Equal(new[] 694AssertEx.Equal(new[]
ScriptTests.cs (3)
403AssertEx.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name)); 404AssertEx.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value)); 405AssertEx.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\DelegateTypeTests.cs (1)
10393AssertEx.Equal(expectedInfo, variables.Select(v => getVariableInfo(model, v)));
Semantics\LambdaTests.cs (2)
3621AssertEx.Equal(expectedAttributes, pairs.Select(p => getAttributesInternal(p.Item1, p.Item2))); 3622AssertEx.Equal(expectedAttributes, pairs.Select(p => getAttributesPublic(p.Item1, p.Item2)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\UsedAssembliesTests.cs (1)
98AssertEx.Equal(expected, used.Skip(1));
Symbols\Source\NullablePublicAPITests.cs (2)
507AssertEx.Equal(expectedAnnotations, actualAnnotations); 1066AssertEx.Equal(expectedNullabilities, members.Select(nullabilityFunc));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\LocationsTests.cs (5)
156AssertEx.Equal(new[] 220AssertEx.Equal(new[] 253AssertEx.Equal(new[] 267AssertEx.Equal(new[] 287AssertEx.Equal(new[]
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
FunctionPointerUtilities.cs (2)
198AssertEx.Equal(expectedSymbolCandidates, semanticInfo.MemberGroup.Select(s => s.ToTestDisplayString(includeNonNullable: false))); 226AssertEx.Equal(expectedSymbolCandidates, semanticInfo.CandidateSymbols.Select(s => s.ToTestDisplayString(includeNonNullable: false)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
776AssertEx.Equal(expectedSelectedSpans, textView.Selection.SelectedSpans.Select(snapshotSpan => snapshotSpan.Span));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
FunctionResolverTestBase.cs (1)
31AssertEx.Equal(expectedSignatures, actualSignatures);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
50AssertEx.Equal(expectedSortedResults, actualSortedResults);
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RudeEditDiagnosticTests.cs (1)
116AssertEx.Equal(allKinds, allKinds.Distinct());
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
TelemetryLoggerTests.cs (3)
102AssertEx.Equal(new[] 127AssertEx.Equal(new[] 135AssertEx.Equal(new[]
Microsoft.CodeAnalysis.Test.Utilities (30)
Compilation\CompilationDifference.cs (1)
175AssertEx.Equal(
Compilation\TestOperationVisitor.cs (26)
143AssertEx.Equal(children, operation.ChildOperations); 157AssertEx.Equal(children, operation.ChildOperations); 165AssertEx.Equal(new[] { operation.Value }.Concat(operation.Cases), operation.ChildOperations); 172AssertEx.Equal(operation.Clauses.Concat(operation.Body), operation.ChildOperations); 285AssertEx.Equal(children, operation.ChildOperations); 305AssertEx.Equal(children, operation.ChildOperations); 326AssertEx.Equal(children, operation.ChildOperations); 335AssertEx.Equal(children, operation.ChildOperations); 436AssertEx.Equal(children, operation.ChildOperations); 457AssertEx.Equal(children, operation.ChildOperations); 551AssertEx.Equal(children, operation.ChildOperations); 573AssertEx.Equal(children, operation.ChildOperations); 601AssertEx.Equal(new[] { operation.ArrayReference }.Concat(operation.Indices), operation.ChildOperations); 676AssertEx.Equal(children, operation.ChildOperations); 1042AssertEx.Equal(children, operation.ChildOperations); 1069AssertEx.Equal(children, operation.ChildOperations); 1075AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations); 1081AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations); 1146AssertEx.Equal(children, operation.ChildOperations); 1315AssertEx.Equal(children, operation.ChildOperations); 1322AssertEx.Equal(children, operation.ChildOperations); 1474AssertEx.Equal(children, operation.ChildOperations); 1518AssertEx.Equal(children, operation.ChildOperations); 1554AssertEx.Equal(children, operation.ChildOperations); 1620AssertEx.Equal(new IOperation[] { operation.EventReference }.Concat(operation.Arguments), operation.ChildOperations); 1821AssertEx.Equal(children, operation.ChildOperations);
Mocks\MoqExtensions.cs (2)
16AssertEx.Equal( 22AssertEx.Equal(expectedInvocations[i].Args, invocations[i].Arguments);
Mocks\TestMissingMetadataReferenceResolver.cs (1)
57AssertEx.Equal(expected, ResolutionAttempts.Select(a => a.ToString()));
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\CompilationWithAnalyzersTests.cs (1)
52AssertEx.Equal(new[] { d1 }, filtered);
EmbeddedTextTests.cs (1)
194AssertEx.Equal(Encoding.Unicode.GetPreamble().Concat(Encoding.Unicode.GetBytes(LargeSource)), Decompress(text.Blob.Skip(4)));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\AttributeTests_Tuples.vb (1)
437AssertEx.Equal(expectedElementNames, actualElementNames)
CodeGen\CodeGenClosureLambdaTests.vb (1)
3492AssertEx.Equal({
CodeGen\CodeGenLateBound.vb (1)
2399AssertEx.Equal(
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (1)
8178AssertEx.Equal(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Compilation\CompilationAPITests.vb (6)
384AssertEx.Equal(Of Boolean)(False, comp.IsCaseSensitive) 799AssertEx.Equal(Of Boolean)(False, b1) 802AssertEx.Equal(Of Boolean)(True, b1) 805AssertEx.Equal(Of Boolean)(False, comp.ContainsSyntaxTree(xt)) 816AssertEx.Equal(Of Integer)(1, comp.SyntaxTrees.Length) 817AssertEx.Equal(Of String)("Object", comp.ObjectType.Name)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (1)
179AssertEx.Equal(Of ISymbol)(member, propSymbol)
SymbolsTests\TypedConstantTests.vb (2)
41AssertEx.Equal(Of Object)(common.Type, lang.Type) 54AssertEx.Equal(Of Object)(commonArray.Type, langArray.Type)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Parser\XmlDocComments.vb (9)
577AssertEx.Equal(Of String)(expected, actual) 597AssertEx.Equal(Of String)(expected, actual) 625AssertEx.Equal(Of String)(expected, actual) 668AssertEx.Equal(Of String)(expected, actual) 694AssertEx.Equal(Of String)(expected, actual) 721AssertEx.Equal(Of String)(expected, actual) 752AssertEx.Equal(Of String)(expected, actual) 777AssertEx.Equal(Of String)(expected, actual) 802AssertEx.Equal(Of String)(expected, actual)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
29AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind == WorkspaceDiagnosticKind.Failure).Select(d => d.Message));
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
CodeCleanup\CodeCleanupTests.cs (1)
411AssertEx.Equal(expectedSpans, sortedSpans);
SolutionTests\SolutionTests.cs (10)
1983AssertEx.Equal((ProjectReference[])[projectRef2], solution3.GetProject(projectId)!.ProjectReferences); 1984AssertEx.Equal((ProjectReference[])[projectRef2, externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences); 2016AssertEx.Equal((ProjectReference[])[projectRef2], solution2.GetProject(projectId)!.AllProjectReferences); 2020AssertEx.Equal((ProjectReference[])[externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences); 2103AssertEx.Equal((MetadataReference[])[metadataRef1, metadataRef2], solution3.GetProject(projectId)!.MetadataReferences); 2126AssertEx.Equal((MetadataReference[])[metadataRef2], solution2.GetProject(projectId)!.MetadataReferences); 2173AssertEx.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.GetProject(projectId)!.AnalyzerReferences); 2199AssertEx.Equal((AnalyzerReference[])[analyzerRef2], solution2.GetProject(projectId)!.AnalyzerReferences); 2241AssertEx.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.AnalyzerReferences); 2265AssertEx.Equal((AnalyzerReference[])[analyzerRef2], solution2.AnalyzerReferences);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Interactive\Commands\ResetInteractiveTests.cs (1)
129AssertEx.Equal(expectedSubmissions, executedSubmissionCalls);
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
110AssertEx.Equal(expectedNames, entityHandles.Select(handle =>