129 references to Equal
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
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)
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)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
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)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (30)
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);
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
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)
Roslyn.Test.PdbUtilities (1)