4353 references to AssertEx
InteractiveHost.UnitTests (43)
AbstractInteractiveHostTests.cs (2)
83
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", errorOutput);
97
AssertEx
.Equal(expectedOutput, output);
InteractiveHostCoreInitTests.cs (7)
36
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
37
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"(home, {dir}, 1)", output);
48
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@$"
63
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output);
67
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output);
75
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.Path), output);
83
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(dllDir), output);
InteractiveHostDesktopInitTests.cs (8)
36
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(fxDir), output);
40
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output);
48
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.Path), output);
56
AssertEx
.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(fxDir, dllDir), output);
74
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
75
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", output);
81
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
82
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", output);
InteractiveHostDesktopTests.cs (26)
82
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
493
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
494
AssertEx
.AssertEqualToleratingWhitespaceDifferences("1", output);
720
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
721
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
747
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
800
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", error);
801
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
826
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"{initFile.Path}(1,3): error CS1002: {CSharpResources.ERR_SemicolonExpected}
829
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
851
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
864
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"(1,8): error CS0234: {string.Format(CSharpResources.ERR_DottedTypeNameNotFoundInNS, "Missing", "Microsoft")}",
951
AssertEx
.AssertEqualToleratingWhitespaceDifferences("C { P=null }", output);
991
AssertEx
.AssertEqualToleratingWhitespaceDifferences("120", output);
992
AssertEx
.AssertEqualToleratingWhitespaceDifferences("System.Exception: Bang!", error);
999
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1000
AssertEx
.AssertEqualToleratingWhitespaceDifferences("8\r\n", await ReadOutputToEnd());
1003
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1004
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadOutputToEnd());
1007
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1008
AssertEx
.AssertEqualToleratingWhitespaceDifferences("4\r\n", await ReadOutputToEnd());
1011
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1012
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadOutputToEnd());
1015
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1016
AssertEx
.AssertEqualToleratingWhitespaceDifferences("8\r\n", await ReadOutputToEnd());
1036
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (39)
CopyRefAssemblyTests.cs (3)
76
AssertEx
.AssertEqualToleratingWhitespaceDifferences($$"""Copying reference assembly from "{{file.Path}}" to "{{dest}}".""", engine.Log);
98
AssertEx
.AssertEqualToleratingWhitespaceDifferences($$"""
129
AssertEx
.AssertEqualToleratingWhitespaceDifferences($$"""
CscTests.cs (4)
222
AssertEx
.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents());
231
AssertEx
.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents());
241
AssertEx
.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4;NS5.NS6;NS7.NS8" /out:test.exe test.cs""", csc.GenerateResponseFileContents());
561
AssertEx
.Equal("/reportivts", csc.GenerateResponseFileContents());
DotNetSdkTests.cs (6)
107
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
146
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
184
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
222
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
264
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
304
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
MapSourceRootTests.cs (14)
55
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", engine.Log);
104
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", engine.Log);
142
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
181
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", engine.Log);
219
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", engine.Log);
267
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
328
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
343
AssertEx
.NotNull(task.MappedSourceRoots);
344
AssertEx
.Equal(new[]
377
AssertEx
.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
406
AssertEx
.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
440
AssertEx
.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
448
AssertEx
.NotNull(task.MappedSourceRoots);
449
AssertEx
.Equal(new[]
TargetTests.cs (10)
266
AssertEx
.NotNull(itemType);
270
AssertEx
.NotNull(metaName);
274
AssertEx
.NotNull(customMeta);
308
AssertEx
.NotNull(itemType);
312
AssertEx
.NotNull(metaName);
316
AssertEx
.NotNull(customMeta);
348
AssertEx
.NotNull(itemType);
352
AssertEx
.NotNull(metaName);
383
AssertEx
.NotNull(itemType);
387
AssertEx
.NotNull(metaName);
TestUtilities\DotNetSdkTestBase.cs (1)
238
AssertEx
.Equal(expectedResults, evaluationResult);
VbcTests.cs (1)
528
AssertEx
.Equal("/optionstrict:custom /reportivts", vbc.GenerateResponseFileContents());
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (97)
CommandLineIVTTests.cs (4)
45
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"""
122
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"""
201
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"""
286
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"""
CommandLineTests.cs (93)
226
AssertEx
.Equal("Class1.cs(1,1): warning ID1000:", output.Trim());
249
AssertEx
.Equal("", outWriter.ToString());
460
AssertEx
.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference));
461
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path));
513
AssertEx
.Equal(new[] { "first.cs", "second.cs", "b.cs", "a.cs", "c.cs", "d.cs", "last.cs" }.Select(prependBasePath), resolvedSourceFiles);
514
AssertEx
.Equal(new[] { typeof(object).Assembly.Location, @"..\v4.0.30319\System.dll", @".\System.Data.dll" }, references);
515
AssertEx
.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray());
524
AssertEx
.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
536
AssertEx
.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
550
AssertEx
.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
566
AssertEx
.Equal(ImmutableArray<string>.Empty, parser.ReferencePaths);
608
AssertEx
.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);
716
AssertEx
.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);
1195
AssertEx
.Equal(new[] { "a", "b", "c" },
1202
AssertEx
.Equal(new[] { " b " },
1238
AssertEx
.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs", "{DIR}\\d2\\e.cs" },
1243
AssertEx
.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs" },
1273
AssertEx
.Equal(new[] { "a", "b", "c" },
1280
AssertEx
.Equal(new[] { " b " },
1733
AssertEx
.SetEqual(new[] { "default", "1", "2", "3", "4", "5", "6", "7.0", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "13.0", "latest", "latestmajor", "preview" },
1771
AssertEx
.SetEqual(versions, errorCodes);
2262
AssertEx
.Equal(File.ReadAllBytes(sl.Path), blob);
2291
AssertEx
.Equal(File.ReadAllBytes(sl.Path), blob);
2317
AssertEx
.Equal(slContent, actualData);
2332
AssertEx
.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles);
2333
AssertEx
.Equal(
2339
AssertEx
.Equal(
2345
AssertEx
.Equal(
2351
AssertEx
.Equal(
2357
AssertEx
.Equal(
2363
AssertEx
.Equal(
3603
AssertEx
.Equal(
3630
AssertEx
.Equal(
3680
AssertEx
.Equal("""
3703
AssertEx
.Equal("""
4679
AssertEx
.Equal(new[]
5340
AssertEx
.Equal(new[] { "Goo.Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5344
AssertEx
.Equal(new[] { "Goo.Bar", "Baz", "System.Core", "System" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5348
AssertEx
.Equal(new[] { "Goo", "Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5450
AssertEx
.Equal(
5454
AssertEx
.Equal(expectedOptions, actualOrdered.Select(entry => entry.Value));
6636
AssertEx
.Equal(new[] { "a.cs", "b.cs", @"c.cs e.cs", "hello", "world" }, args);
6649
AssertEx
.Equal(new[] { "a.cs", "b#.cs", "c#d.cs", "#f.cs", "#g.cs #h.cs" }, args);
6656
AssertEx
.Equal(new[] { @"a\b\c", @"d\\e\\f\\", @"\\\g\\\h\\\i", @"\\\\", @"\\\\\k\\\\\" }, args);
6663
AssertEx
.Equal(new[] { @"a\""a", @"b\\""b c\\\""c d\\\\""d", @"e\\\\\""e", @"f"" g""" }, args);
6670
AssertEx
.Equal(new[] { @"/o:""goo.cs""", @"/o:""abc def""\baz", @"""/o:baz bar""bing" }, args);
6681
AssertEx
.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path));
8466
AssertEx
.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[]
8845
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", outWriter.ToString());
8850
AssertEx
.Equal(new byte[] { 0x4D, 0x5A }, ReadBytes(libDll.Path, 2));
8851
AssertEx
.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8853
AssertEx
.Equal(new byte[] { 0x4D, 0x69 }, ReadBytes(libPdb.Path, 2));
8854
AssertEx
.Equal(new[] { (byte)'P', (byte)'D', (byte)'B' }, ReadBytes(fsPdb, 3));
8859
AssertEx
.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
8889
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
8910
AssertEx
.Equal(new[] { (byte)'B', (byte)'S', (byte)'J', (byte)'B' }, ReadBytes(libPdb.Path, 4));
8916
AssertEx
.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
8952
AssertEx
.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(libDll.Path, 3));
8953
AssertEx
.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8957
AssertEx
.Equal(new[] { "Lib.cs", "Lib.dll" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
10064
AssertEx
.Equal(expectedWarningsAll, compileAndRun(featureOpt: null));
10065
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis"));
10066
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always"));
10067
AssertEx
.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never"));
10068
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored
10069
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored
10070
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored
10071
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored
10072
AssertEx
.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored
11450
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11451
AssertEx
.Equal(new[] { "b", "c" }, args.ScriptArguments);
11454
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path));
11455
AssertEx
.Equal(new[] { "b", "c" }, args.ScriptArguments);
11458
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path));
11459
AssertEx
.Equal(new[] { "b", "c" }, args.ScriptArguments);
11462
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11463
AssertEx
.Equal(new[] { "--", "b", "c" }, args.ScriptArguments);
11466
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11467
AssertEx
.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11470
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11471
AssertEx
.Equal(new[] { "a", "--", "b", "c" }, args.ScriptArguments);
11475
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11476
AssertEx
.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11480
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11481
AssertEx
.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11485
AssertEx
.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path));
11487
AssertEx
.Equal(new[] { "--" }, args.ScriptArguments);
11597
AssertEx
.Equal(expected, CommandLineParser.SplitWithDoubledSeparatorEscaping(str, ','));
11757
AssertEx
.Equal(programExe32.ReadAllBytes(), programExe64.ReadAllBytes());
11758
AssertEx
.Equal(programPdb32.ReadAllBytes(), programPdb64.ReadAllBytes());
12058
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
12268
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
12274
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", result.Output.Trim());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (495)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
85
AssertEx
.Equal(expected, actualFormatted);
Classification\SyntacticClassifierTests.cs (2)
6053
AssertEx
.Equal(
6083
AssertEx
.Equal(
Classification\TotalClassifierTests.cs (2)
3077
AssertEx
.Equal(
3178
AssertEx
.Equal(
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
190
AssertEx
.EqualOrDiff(expectedSourceOriginal, actualText);
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (1)
46
AssertEx
.EqualOrDiff(
Completion\CompletionProviders\CompletionProviderOrderTests.cs (1)
78
AssertEx
.EqualOrDiff(
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (2)
454
AssertEx
.SetEqual(items.Select(i => i.DisplayText), toTypes);
516
AssertEx
.SetEqual(items.Select(i => i.DisplayText), expected);
Debugging\ProximityExpressionsGetterTests.cs (2)
64
AssertEx
.Equal((string[])["yy", "xx"], terms);
110
AssertEx
.Equal(expectedTerms, actualTerms ?? Array.Empty<string>());
Debugging\ProximityExpressionsGetterTests.Lines.cs (291)
135
AssertEx
.SetEqual(["expression"], terms);
147
AssertEx
.SetEqual(["expression"], terms);
159
AssertEx
.SetEqual(["expression"], terms);
204
AssertEx
.SetEqual(["position", "expression", "terms"], terms);
216
AssertEx
.SetEqual(["expression", "position", "terms"], terms);
228
AssertEx
.SetEqual(["expression", "position", "terms"], terms);
240
AssertEx
.SetEqual(["expression"], terms);
252
AssertEx
.SetEqual(["expression"], terms);
275
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
287
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
299
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
311
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
323
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
335
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
347
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
359
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
371
AssertEx
.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
383
AssertEx
.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
395
AssertEx
.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
407
AssertEx
.SetEqual(["terms", "expression", "ConvertToString"], terms);
419
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "terms", "expression", "ConvertToString"], terms);
453
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
465
AssertEx
.SetEqual(["expression", "position", "terms", "expressionType"], terms);
477
AssertEx
.SetEqual(["expression", "position", "terms", "expressionType"], terms);
489
AssertEx
.SetEqual(["expression"], terms);
501
AssertEx
.SetEqual(["expression"], terms);
524
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
536
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
548
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
560
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
572
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
584
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
596
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
608
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
620
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
632
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
644
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
656
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
668
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
680
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
692
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
704
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
716
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
728
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
740
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
752
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
764
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
776
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
788
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
800
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
812
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
824
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
836
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
848
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
860
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
872
AssertEx
.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
884
AssertEx
.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
896
AssertEx
.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
908
AssertEx
.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
920
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
932
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
944
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
956
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
968
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms", "expression.Kind"], terms);
980
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms"], terms);
992
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1004
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1016
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms", "expression.Kind"], terms);
1028
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms"], terms);
1040
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1052
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1064
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms", "expression.Kind"], terms);
1076
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms"], terms);
1088
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1100
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1112
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms", "expression.Kind"], terms);
1124
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms"], terms);
1136
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
1148
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1160
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1172
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1184
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1196
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1208
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax"], terms);
1220
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms", "PrefixUnaryExpressionSyntax"], terms);
1232
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms"], terms);
1255
AssertEx
.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
1267
AssertEx
.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
1279
AssertEx
.SetEqual(["expression", "PostfixUnaryExpressionSyntax"], terms);
1291
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms", "PostfixUnaryExpressionSyntax"], terms);
1303
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms"], terms);
1326
AssertEx
.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
1338
AssertEx
.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
1350
AssertEx
.SetEqual(["expression", "BinaryExpressionSyntax"], terms);
1362
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms", "BinaryExpressionSyntax"], terms);
1374
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms"], terms);
1397
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
1409
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
1421
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
1455
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1467
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "flags", "position", "expression", "terms", "expressionType"], terms);
1479
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1491
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1503
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1515
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1527
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1539
AssertEx
.SetEqual(["position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms", "expression", "(MemberAccessExpressionSyntax)expression"], terms);
1551
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1563
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1575
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1587
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1599
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1611
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1623
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1635
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
1647
AssertEx
.SetEqual(["terms", "memberAccess", "memberAccess.Expression", "ConvertToString", "ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
1659
AssertEx
.SetEqual(["terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1671
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1683
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1695
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1707
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1719
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1731
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1743
AssertEx
.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidTerm", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1755
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
1767
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1779
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1791
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "flags", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1803
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
1815
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "expressionType", "ExpressionType.ValidTerm"], terms);
1849
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1861
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1873
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1885
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1897
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1909
AssertEx
.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
1921
AssertEx
.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
1933
AssertEx
.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "expression", "(ObjectCreationExpressionSyntax)expression"], terms);
1945
AssertEx
.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt"], terms);
1957
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "objectionCreation", "objectionCreation.ArgumentListOpt", "flags"], terms);
1969
AssertEx
.SetEqual(["position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
1981
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
1993
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2005
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2017
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2029
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2041
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "flags", "ExpressionType.ValidTerm"], terms);
2053
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2065
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expressionType", "ExpressionType.ValidExpression"], terms);
2077
AssertEx
.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2111
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2123
AssertEx
.SetEqual(["validTerm", "position", "expression", "terms", "expressionType"], terms);
2135
AssertEx
.SetEqual(["expression", "(ArrayCreationExpressionSyntax)expression", "validTerm", "arrayCreation"], terms);
2147
AssertEx
.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
2159
AssertEx
.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
2171
AssertEx
.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt"], terms);
2183
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arrayCreation", "arrayCreation.InitializerOpt", "flags"], terms);
2195
AssertEx
.SetEqual(["arrayCreation.InitializerOpt.Expressions", "flags", "ExpressionType", "ExpressionType.Invalid"], terms);
2207
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
2219
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
2231
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm"], terms);
2243
AssertEx
.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2255
AssertEx
.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2267
AssertEx
.SetEqual(["validTerm"], terms);
2279
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "validTerm"], terms);
2291
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2303
AssertEx
.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2315
AssertEx
.SetEqual(["validTerm"], terms);
2327
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "validTerm"], terms);
2339
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
2351
AssertEx
.SetEqual(["validTerm", "ExpressionType", "expressionType", "ExpressionType.ValidExpression", "ExpressionType.Invalid"], terms);
2385
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2397
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2409
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2421
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2433
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "leftFlags", "rightFlags"], terms);
2445
AssertEx
.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
2457
AssertEx
.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
2469
AssertEx
.SetEqual(["position", "invocation", "invocation.Expression", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(InvocationExpressionSyntax)expression"], terms);
2481
AssertEx
.SetEqual(["position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms", "invocation.Expression", "leftFlags", "CollectExpressionTerms"], terms);
2493
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
2505
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
2517
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
2529
AssertEx
.SetEqual(["terms", "invocation", "invocation.Expression", "ConvertToString", "ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
2541
AssertEx
.SetEqual(["terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2553
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "rightFlags", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2565
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2577
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2589
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
2623
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2635
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2647
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2659
AssertEx
.SetEqual(["expression", "(PrefixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "prefixUnaryExpression"], terms);
2671
AssertEx
.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2683
AssertEx
.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2695
AssertEx
.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2707
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2719
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2731
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2743
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2755
AssertEx
.SetEqual(["flags", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
2767
AssertEx
.SetEqual(["terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2779
AssertEx
.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2791
AssertEx
.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2803
AssertEx
.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2815
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2827
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2839
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType"], terms);
2851
AssertEx
.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType"], terms);
2885
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2897
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2909
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2921
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2933
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2945
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2957
AssertEx
.SetEqual(["expression", "(PostfixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "postfixUnaryExpression"], terms);
2969
AssertEx
.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
2981
AssertEx
.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
2993
AssertEx
.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
3005
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3017
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3029
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3041
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
3053
AssertEx
.SetEqual(["flags", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3065
AssertEx
.SetEqual(["terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString"], terms);
3077
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString"], terms);
3111
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
3123
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "leftFlags", "rightFlags", "position", "expression", "terms", "expressionType"], terms);
3135
AssertEx
.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
3147
AssertEx
.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
3159
AssertEx
.SetEqual(["position", "binaryExpression", "binaryExpression.Left", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(BinaryExpressionSyntax)expression"], terms);
3171
AssertEx
.SetEqual(["position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms", "binaryExpression.Left", "leftFlags"], terms);
3183
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
3195
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
3207
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
3219
AssertEx
.SetEqual(["leftFlags", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3231
AssertEx
.SetEqual(["terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3243
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3255
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3267
AssertEx
.SetEqual(["rightFlags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3279
AssertEx
.SetEqual(["rightFlags", "terms", "binaryExpression", "binaryExpression.Right", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3291
AssertEx
.SetEqual(["terms", "binaryExpression", "binaryExpression.Right", "ConvertToString"], terms);
3303
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3315
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3327
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3339
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3351
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3363
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3375
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3387
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3400
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3412
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
3424
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
3436
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
3448
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3460
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3472
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "binaryExpression", "binaryExpression.Kind"], terms);
3484
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
3496
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3508
AssertEx
.SetEqual(["binaryExpression", "binaryExpression.Kind"], terms);
3542
AssertEx
.SetEqual(["position", "argumentList", "terms", "expressionType"], terms);
3554
AssertEx
.SetEqual(["validExpr", "position", "argumentList", "terms", "expressionType"], terms);
3566
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3578
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3590
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3602
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3614
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments"], terms);
3626
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arg", "argumentList", "argumentList.Arguments", "flags"], terms);
3638
AssertEx
.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
3650
AssertEx
.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
3662
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
3674
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3686
AssertEx
.SetEqual(["flags", "terms", "arg", "arg.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3698
AssertEx
.SetEqual(["terms", "arg", "arg.Expression", "ConvertToString"], terms);
3710
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
3722
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
3734
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr"], terms);
3746
AssertEx
.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3758
AssertEx
.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3770
AssertEx
.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3782
AssertEx
.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3794
AssertEx
.SetEqual(["ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType"], terms);
3828
AssertEx
.SetEqual(["position", "declarators", "terms"], terms);
3840
AssertEx
.SetEqual(["declarator", "declarators", "position", "terms"], terms);
3852
AssertEx
.SetEqual(["declarator", "declarators"], terms);
3864
AssertEx
.SetEqual(["declarator", "declarator.InitializerOpt", "declarators"], terms);
3876
AssertEx
.SetEqual(["declarator", "declarator.InitializerOpt"], terms);
3888
AssertEx
.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms", "declarator"], terms);
3900
AssertEx
.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
3912
AssertEx
.SetEqual(["declarator", "declarator.InitializerOpt", "position", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
3924
AssertEx
.SetEqual(["declarator", "declarators", "position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
Debugging\ProximityExpressionsGetterTests.Statements.cs (142)
28
AssertEx
.SetEqual(["expression"], terms);
42
AssertEx
.SetEqual(["expression"], terms);
56
AssertEx
.SetEqual(["position", "expression", "terms"], terms);
70
AssertEx
.SetEqual(["expression", "position", "terms"], terms);
84
AssertEx
.SetEqual(["expression"], terms);
98
AssertEx
.SetEqual(["expression"], terms);
112
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
126
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
140
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
154
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
168
AssertEx
.SetEqual(["terms", "expressionType", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
182
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
196
AssertEx
.SetEqual(["expression", "position", "terms", "expressionType"], terms);
210
AssertEx
.SetEqual(["expression"], terms);
224
AssertEx
.SetEqual(["expression"], terms);
238
AssertEx
.SetEqual(["expression", "expression.Kind"], terms);
252
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
266
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
280
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
294
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
308
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
322
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
336
AssertEx
.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
350
AssertEx
.SetEqual(["expression", "position", "terms", "expressionType", "CollectExpressionTerms"], terms);
364
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms", "expression.Kind"], terms);
378
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms"], terms);
392
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms", "expression.Kind"], terms);
406
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms"], terms);
420
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms", "expression.Kind"], terms);
434
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms"], terms);
448
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms", "expression.Kind"], terms);
462
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms"], terms);
476
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
490
AssertEx
.SetEqual(["expression", "PrefixUnaryExpressionSyntax"], terms);
504
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms", "PrefixUnaryExpressionSyntax"], terms);
518
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms"], terms);
532
AssertEx
.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
546
AssertEx
.SetEqual(["expression", "PostfixUnaryExpressionSyntax"], terms);
560
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms", "PostfixUnaryExpressionSyntax"], terms);
574
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms"], terms);
588
AssertEx
.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
602
AssertEx
.SetEqual(["expression", "BinaryExpressionSyntax"], terms);
616
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms", "BinaryExpressionSyntax"], terms);
630
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms"], terms);
644
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
658
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
672
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "flags", "position", "expression", "terms", "expressionType"], terms);
686
AssertEx
.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
700
AssertEx
.SetEqual(["position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms", "expression", "(MemberAccessExpressionSyntax)expression"], terms);
714
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
728
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
742
AssertEx
.SetEqual(["flags", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
756
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
770
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
784
AssertEx
.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidTerm", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
798
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
812
AssertEx
.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
826
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
840
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
854
AssertEx
.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
868
AssertEx
.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "expression", "(ObjectCreationExpressionSyntax)expression"], terms);
882
AssertEx
.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt"], terms);
896
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "objectionCreation", "objectionCreation.ArgumentListOpt", "flags"], terms);
910
AssertEx
.SetEqual(["position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
924
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
938
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
952
AssertEx
.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidExpression", "ExpressionType.ValidTerm"], terms);
966
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
980
AssertEx
.SetEqual(["validTerm", "position", "expression", "terms", "expressionType"], terms);
994
AssertEx
.SetEqual(["expression", "(ArrayCreationExpressionSyntax)expression", "validTerm", "arrayCreation"], terms);
1008
AssertEx
.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
1022
AssertEx
.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt"], terms);
1036
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arrayCreation", "arrayCreation.InitializerOpt", "flags"], terms);
1050
AssertEx
.SetEqual(["arrayCreation.InitializerOpt.Expressions", "flags", "ExpressionType", "ExpressionType.Invalid"], terms);
1064
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
1078
AssertEx
.SetEqual(["flags", "validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1092
AssertEx
.SetEqual(["validTerm"], terms);
1106
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "validTerm"], terms);
1120
AssertEx
.SetEqual(["validTerm"], terms);
1134
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "validTerm"], terms);
1148
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1162
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1176
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "leftFlags", "rightFlags"], terms);
1190
AssertEx
.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
1204
AssertEx
.SetEqual(["position", "invocation", "invocation.Expression", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(InvocationExpressionSyntax)expression"], terms);
1218
AssertEx
.SetEqual(["position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms", "invocation.Expression", "leftFlags", "CollectExpressionTerms"], terms);
1232
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
1246
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
1260
AssertEx
.SetEqual(["leftFlags", "terms", "invocation", "invocation.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1274
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
1288
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1302
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1316
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
1330
AssertEx
.SetEqual(["expression", "(PrefixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "prefixUnaryExpression"], terms);
1344
AssertEx
.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
1358
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
1372
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1386
AssertEx
.SetEqual(["flags", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1400
AssertEx
.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
1414
AssertEx
.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
1428
AssertEx
.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
1442
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1456
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1470
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
1484
AssertEx
.SetEqual(["expression", "(PostfixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "postfixUnaryExpression"], terms);
1498
AssertEx
.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
1512
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
1526
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
1540
AssertEx
.SetEqual(["flags", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1554
AssertEx
.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1568
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "leftFlags", "rightFlags", "position", "expression", "terms", "expressionType"], terms);
1582
AssertEx
.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
1596
AssertEx
.SetEqual(["position", "binaryExpression", "binaryExpression.Left", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(BinaryExpressionSyntax)expression"], terms);
1610
AssertEx
.SetEqual(["position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms", "binaryExpression.Left", "leftFlags"], terms);
1624
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
1638
AssertEx
.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
1652
AssertEx
.SetEqual(["leftFlags", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1666
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
1680
AssertEx
.SetEqual(["rightFlags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1694
AssertEx
.SetEqual(["terms", "rightFlags", "binaryExpression", "binaryExpression.Right", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1708
AssertEx
.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
1722
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
1736
AssertEx
.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
1750
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "binaryExpression", "binaryExpression.Kind"], terms);
1764
AssertEx
.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
1778
AssertEx
.SetEqual(["position", "argumentList", "terms", "expressionType"], terms);
1792
AssertEx
.SetEqual(["validExpr", "position", "argumentList", "terms", "expressionType"], terms);
1806
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
1820
AssertEx
.SetEqual(["arg", "argumentList", "argumentList.Arguments"], terms);
1834
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arg", "argumentList", "argumentList.Arguments", "flags"], terms);
1848
AssertEx
.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
1862
AssertEx
.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
1876
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
1890
AssertEx
.SetEqual(["flags", "terms", "arg", "arg.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1904
AssertEx
.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
1918
AssertEx
.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
1932
AssertEx
.SetEqual(["position", "declarators", "terms"], terms);
1946
AssertEx
.SetEqual(["declarator", "declarators", "position", "terms"], terms);
1960
AssertEx
.SetEqual(["declarator", "declarators"], terms);
1974
AssertEx
.SetEqual(["declarator", "declarator.InitializerOpt", "declarators"], terms);
1988
AssertEx
.SetEqual(["declarator", "declarator.InitializerOpt"], terms);
2002
AssertEx
.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms", "declarator"], terms);
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
261
AssertEx
.Equal(expected, test.ToString());
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
341
AssertEx
.Any(diagnostics, d => d.Id == DocumentAnalysisExecutor.AnalyzerExceptionDiagnosticId);
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (9)
52
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
64
AssertEx
.SetEqual(expectedApplicableAccessibilityList, symbolSpec.ApplicableAccessibilityList);
122
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
183
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
191
AssertEx
.SetEqual(expectedApplicableAccessibilityList, symbolSpec.ApplicableAccessibilityList);
231
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
272
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
311
AssertEx
.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList);
455
AssertEx
.SetEqual(expectedApplicableTypeKindList, symbolSpec.ApplicableSymbolKindList);
EditAndContinue\ActiveStatementTrackingServiceTests.cs (6)
79
AssertEx
.Equal(
86
AssertEx
.Equal(["(0,10)-(0,15)", "(0,20)-(0,25)"], spans2.Select(s => s.LineSpan.ToString()));
93
AssertEx
.Equal(
99
AssertEx
.Empty(await trackingSession.GetAdjustedTrackingSpansAsync(document2, snapshot2, CancellationToken.None));
106
AssertEx
.Equal(
117
AssertEx
.Equal(
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (4)
336
var update =
AssertEx
.Single(updates);
359
var update =
AssertEx
.Single(updates);
372
update =
AssertEx
.Single(updates);
392
var update =
AssertEx
.Single(updates);
ExtractMethod\ExtractMethodBase.cs (1)
103
AssertEx
.EqualOrDiff(expected, actual);
Formatting\FormattingEngineTests.cs (1)
2930
AssertEx
.EqualOrDiff(expected, newSnapshot.GetText());
Formatting\RazorLineFormattingOptionsTests.cs (1)
76
AssertEx
.Equal(@"
Intents\IntentTestsBase.cs (1)
89
AssertEx
.EqualOrDiff(expectedTexts[i], actualDocumentTexts[i]);
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
171
AssertEx
.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
183
AssertEx
.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
187
AssertEx
.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
199
AssertEx
.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (3)
116
AssertEx
.EqualOrDiff(expected, actual.ToString());
154
AssertEx
.NotNull(file, $"No source document was found in the pdb for the symbol.");
234
AssertEx
.NotNull(symbol, $"Couldn't find symbol to go-to-def for.");
PdbSourceDocument\PdbSourceDocumentTests.cs (13)
799
AssertEx
.NotNull(actualText);
800
AssertEx
.NotNull(actualText.Encoding);
801
AssertEx
.Equal(encoding.WebName, actualText.Encoding.WebName);
802
AssertEx
.EqualOrDiff(source, actualText.ToString());
828
AssertEx
.NotNull(actualText);
829
AssertEx
.NotNull(actualText.Encoding);
830
AssertEx
.Equal(encoding.WebName, actualText.Encoding.WebName);
831
AssertEx
.EqualOrDiff(source, actualText.ToString());
857
AssertEx
.NotNull(actualText);
858
AssertEx
.NotNull(actualText.Encoding);
859
AssertEx
.Equal(encoding.WebName, actualText.Encoding.WebName);
860
AssertEx
.EqualOrDiff(source, actualText.ToString());
949
AssertEx
.NotNull(symbol, $"Couldn't find symbol to go-to-def for.");
QuickInfo\SemanticQuickInfoSourceTests.cs (3)
84
AssertEx
.NotNull(info);
146
AssertEx
.NotNull(info);
315
AssertEx
.NotNull(info);
Rename\CSharpInlineRenameServiceTests.cs (1)
75
AssertEx
.AreEqual<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>?>(expectedContext, context, comparer: ContextDictionaryComparer.Instance);
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1425
AssertEx
.SetEqual(workspace.Projects.SelectMany(p => p.Documents).Select(d => d.Id), eventArgs.Select(e => e.DocumentId));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (2)
74
AssertEx
.Equal(expectedTree!.Replace("\"", "\"\""), actualTree);
82
AssertEx
.Equal(RemoveMessagesInNonSupportedLanguage(expectedDiagnostics).Replace("\"", "\"\""), actualDiagnostics);
Recommendations\RecommenderTests.cs (1)
98
AssertEx
.NotNull(result);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (176)
CodeGen\CodeGenAsyncIteratorTests.cs (6)
1145
AssertEx
.SetEqual(new[] { "AsyncIteratorStateMachineAttribute" },
1868
AssertEx
.SetEqual(new[] {
1888
AssertEx
.SetEqual(new[] {
2409
AssertEx
.SetEqual(new[] {
2430
AssertEx
.SetEqual(new[] {
4218
AssertEx
.SetEqual(expectedFields, fields);
CodeGen\CodeGenAsyncLocalsTests.cs (7)
238
AssertEx
.Equal(new[]
251
AssertEx
.Equal(new[]
290
AssertEx
.Equal(new[]
308
AssertEx
.Equal(new[]
997
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
1155
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
1249
AssertEx
.Equal(new[]
CodeGen\CodeGenAsyncSpillTests.cs (2)
947
AssertEx
.Equal(new[]
962
AssertEx
.Equal(new[]
CodeGen\CodeGenCapturing.cs (1)
211
AssertEx
.Equal(expectedCtx[depth], ctx.VariablesByScope[depth]);
CodeGen\CodeGenClosureLambdaTests.cs (7)
3973
AssertEx
.Equal(new[]
3982
AssertEx
.SetEqual(new[]
3992
AssertEx
.SetEqual(new[]
4002
AssertEx
.SetEqual(new[]
4012
AssertEx
.SetEqual(new[]
4044
AssertEx
.Equal(new[]
4085
AssertEx
.SetEqual(new[]
CodeGen\CodeGenDynamicTests.cs (3)
595
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(container.GetAttributes()));
649
AssertEx
.SetEqual(new[] { "<>p__0", "<>p__1", "<>p__2" }, memberNames);
832
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(d.GetAttributes()));
CodeGen\CodeGenExplicitImplementationTests.cs (4)
1003
AssertEx
.All(classCMembers.Select(m => m.Name), name => name == WellKnownMemberNames.InstanceConstructorName || name.StartsWith("Q::I.", StringComparison.Ordinal));
1004
AssertEx
.All(classCMembers.Select(m => m.MetadataName), metadataName => metadataName == WellKnownMemberNames.InstanceConstructorName || metadataName.StartsWith("Q::I.", StringComparison.Ordinal));
1005
AssertEx
.None(classCMembers.Select(m => m.ToString()), id => id.Contains("Q"));
1006
AssertEx
.None(classCMembers.Select(m => m.GetDocumentationCommentId()), id => id.Contains("Q"));
CodeGen\CodeGenFunctionPointersTests.cs (13)
123
AssertEx
.Equal("delegate* unmanaged[Thiscall, Stdcall]<System.Void modopt(System.Runtime.CompilerServices.CallConvThiscall) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", funcPtr.ToTestDisplayString());
3083
AssertEx
.Equal(expectedMembers, model.GetMemberGroup(addressOfs[0].Operand).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
3084
AssertEx
.Equal(expectedMembers, model.GetMemberGroup(addressOfs[1].Operand).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
4125
AssertEx
.Equal(new[] { "void C.M1()" }, model.GetMemberGroup(methodGroup1).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
6483
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6536
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6594
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString());
6660
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6738
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6817
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
10810
AssertEx
.Equal("System.Func<delegate*<System.Int32, System.Void>>",
10812
AssertEx
.Equal("System.Func<delegate*<System.Int32, System.Void>>",
10819
AssertEx
.Equal("System.Func<delegate* unmanaged<System.Int32, System.Void>>",
CodeGen\CodeGenInterfaceImplementation.cs (1)
2746
AssertEx
.Equal(baseMethods, interfaceMethods.Select(interfaceMethod => derivedType.FindImplementationForInterfaceMember(interfaceMethod)));
CodeGen\CodeGenIterators.cs (6)
1178
AssertEx
.Equal(new[]
1195
AssertEx
.Equal(new[]
1235
AssertEx
.Equal(new[]
1251
AssertEx
.Equal(new[]
1283
AssertEx
.Equal(new[]
1295
AssertEx
.Equal(new[]
CodeGen\CodeGenLocalFunctionTests.cs (1)
5360
AssertEx
.Equal(new[] { "NullableContextAttribute", "CompilerGeneratedAttribute" }, attrs1.Select(a => a.AttributeClass.Name));
CodeGen\CodeGenTupleTest.cs (54)
4478
AssertEx
.Equal(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" }, vt2.TupleElements.ToTestDisplayStrings());
4481
AssertEx
.Equal(new[] {
5940
AssertEx
.SetEqual(vt2.MemberNames.ToArray(), new[] { ".ctor", "ToString" });
6086
AssertEx
.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]",
6136
AssertEx
.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
6486
AssertEx
.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]",
6506
AssertEx
.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
6527
AssertEx
.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
11167
AssertEx
.SetEqual(new[] {
11185
AssertEx
.SetEqual(new[] {
11430
AssertEx
.Equal(new[] {
11457
AssertEx
.Equal(new[] {
11494
AssertEx
.Equal(new[] { "T1", "T2", "T3", "T4", "T5", "T6", "T7", "TRest" }, m1Tuple.TypeParameters.ToTestDisplayStrings());
11499
AssertEx
.Equal(new[] { "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "(System.Int32, System.Int32)" },
12699
AssertEx
.Equal(new[] {
13878
AssertEx
.Equal(baseLine, symbols.Select(s => s.ToTestDisplayString()));
14101
AssertEx
.Equal("System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, (System.Int32 a, System.Int32 b)>",
16577
AssertEx
.Equal(new[] {
16582
AssertEx
.Equal("System.Int32 (System.Int32, System.Int32)[missing].Item1",
16614
AssertEx
.Equal(new[] {
16621
AssertEx
.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].Item1",
16624
AssertEx
.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].a",
22776
AssertEx
.SetEqual(new[] { "mscorlib 4.0", "System.ValueTuple 4.0" }, reader.DumpAssemblyReferences());
22785
AssertEx
.SetEqual(new[] { "mscorlib 4.0", "System.ValueTuple 4.0" }, reader.DumpAssemblyReferences());
22816
AssertEx
.SetEqual(new[] { "mscorlib 4.0", "lib 0.0" }, reader.DumpAssemblyReferences());
22825
AssertEx
.SetEqual(new[] { "mscorlib 4.0", "lib 0.0" }, reader.DumpAssemblyReferences());
22859
AssertEx
.SetEqual(xSymbol.GetMembers().OfType<IFieldSymbol>().Select(f => f.Name),
26825
AssertEx
.Equal("System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.ValueTuple<System.Int32>[missing]>[missing]", tuple.ToTestDisplayString());
26878
AssertEx
.Equal("System.Collections.Generic.IEnumerable<Container<(System.Int32 alice, System.Int32 bob)>[missing]>",
26950
AssertEx
.Equal(decodingSuccessful
27984
AssertEx
.SetEqual(new string[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "(T1, T2)..ctor()" },
27986
AssertEx
.SetEqual(new string[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "(T1, T2)..ctor()" },
28071
AssertEx
.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" }, fields.ToTestDisplayStrings());
28201
AssertEx
.SetEqual(new[] {
28207
AssertEx
.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" },
28310
AssertEx
.SetEqual(new[] { "System.ValueTuple<T1>",
28406
AssertEx
.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).field" }, namedType.GetFieldsToEmit().ToTestDisplayStrings());
28409
AssertEx
.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).field" }, fields.ToTestDisplayStrings());
28494
AssertEx
.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).<Property>k__BackingField" }, fields.ToTestDisplayStrings());
28695
AssertEx
.SetEqual(new[] {
28703
AssertEx
.SetEqual(new[] {
28711
AssertEx
.SetEqual(new[] {
28723
AssertEx
.SetEqual(new[] {
28735
AssertEx
.SetEqual(new[] {
28750
AssertEx
.SetEqual(new[] {
28809
AssertEx
.SetEqual(new[] {
28831
AssertEx
.SetEqual(new[] {
28854
AssertEx
.SetEqual(new[] {
28892
AssertEx
.SetEqual(new[] {
28905
AssertEx
.SetEqual(new[] {
29003
AssertEx
.Equal("System.ValueTuple<System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, (System.Object, System.Object)>",
29021
AssertEx
.Equal("System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>",
29035
AssertEx
.Equal($"System.Object{nullabilityString} System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>.{name}",
29062
AssertEx
.Equal($"System.Object{nullabilityString} System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>.Item{i + 1}",
CodeGen\WinMdDelegateTests.cs (1)
43
AssertEx
.SetEqual(actualMembers.Select(s => s.Name), expectedMembers);
Emit\CompilationEmitTests.cs (49)
658
AssertEx
.Equal(new[] { ".text", ".rsrc", ".reloc", ".mvid" },
899
AssertEx
.Equal(
913
AssertEx
.Equal(new[] {
934
AssertEx
.SetEqual(attributes.Select(a => MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor)),
956
AssertEx
.Equal(new string[] {
1214
AssertEx
.Equal(image1.GetBuffer(), image2.GetBuffer(), message: $"Expecting match for includePrivateMembers={includePrivateMembers} case, but differences were found.");
1218
AssertEx
.NotEqual(image1.GetBuffer(), image2.GetBuffer(), message: $"Expecting difference for includePrivateMembers={includePrivateMembers} case, but they matched.");
1262
AssertEx
.NotEqual(image1, image2, message: "Expecting different main assemblies produced by refout");
1263
AssertEx
.Equal(metadataImage1, metadataImage2, message: "Expecting identical ref assemblies produced by refout");
1272
AssertEx
.Equal(refOnlyMetadataImage1, refOnlyMetadataImage2, message: "Expecting identical ref assemblies produced by refonly");
1911
AssertEx
.Equal(refOut1, refOut1);
1921
AssertEx
.Equal(refOut1, refOut15);
1935
AssertEx
.NotEqual(refOut1, refOut2);
1936
AssertEx
.NotEqual(refOut1, refOnly2);
1941
AssertEx
.Equal(refOut1, refOut2);
1942
AssertEx
.Equal(refOut1, refOnly2);
2134
AssertEx
.Equal(
2138
AssertEx
.Equal(
2149
AssertEx
.Equal(
2165
AssertEx
.Equal(
2169
AssertEx
.Equal(
2180
AssertEx
.Equal(
2193
AssertEx
.Equal(
2197
AssertEx
.Equal(
2207
AssertEx
.Equal(
2222
AssertEx
.Equal(
2226
AssertEx
.Equal(
2233
AssertEx
.Equal(
2300
AssertEx
.Equal(
2304
AssertEx
.Equal(
2367
AssertEx
.Equal(
2371
AssertEx
.Equal(
2434
AssertEx
.Equal(
2438
AssertEx
.Equal(
2469
AssertEx
.Equal(
2473
AssertEx
.Equal(new[] { "Microsoft.CodeAnalysis" }, globalNamespace.GetMember<NamespaceSymbol>("Microsoft").GetMembers().Select(m => m.ToDisplayString()));
2474
AssertEx
.Equal(
2478
AssertEx
.Equal(
2481
AssertEx
.Equal(
2485
AssertEx
.Equal(
2511
AssertEx
.Equal(
2515
AssertEx
.Equal(
2624
AssertEx
.Equal(expected, entries.Select(e => e.Type));
3923
AssertEx
.SetEqual(expectedCMembers, actualCMembers.Select(s => s.Name));
3946
AssertEx
.SetEqual(expectedAMembers, actualAMembers.Select(s => s.Name));
3951
AssertEx
.SetEqual(expectedBMembers, actualBMembers.Select(s => s.Name));
3956
AssertEx
.SetEqual(expectedCMembers, actualCMembers.Select(s => s.Name));
5375
AssertEx
.Equal(expectedNames, actualNames);
5438
AssertEx
.Equal(expectedNames, actualNames);
Emit\DeterministicTests.cs (13)
155
AssertEx
.NotEqual(result1.pe, result2.pe);
220
AssertEx
.Equal(result1.pe, result2.pe);
221
AssertEx
.Equal(result1.pdb, result2.pdb);
225
AssertEx
.Equal(result3.pe, result4.pe);
226
AssertEx
.Equal(result3.pdb, result4.pdb);
230
AssertEx
.Equal(result5.pe, result6.pe);
231
AssertEx
.Equal(result5.pdb, result6.pdb);
247
AssertEx
.Equal(result1.pe, result2.pe);
248
AssertEx
.Equal(result1.pdb, result2.pdb);
252
AssertEx
.Equal(result3.pe, result4.pe);
253
AssertEx
.Equal(result3.pdb, result4.pdb);
257
AssertEx
.Equal(result5.pe, result6.pe);
258
AssertEx
.Equal(result5.pdb, result6.pdb);
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (2)
1066
AssertEx
.Equal(expected, reader.GetSpans(methodData.Blob).Select(s => $"({s.StartLine},{s.StartColumn})-({s.EndLine},{s.EndColumn})"));
1080
AssertEx
.Equal(expected, actual);
Emit\EmitMetadataTests.cs (6)
90
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
270
AssertEx
.Equal(new[]
2309
AssertEx
.Equal(new byte[]
2322
AssertEx
.Equal(new byte[]
2349
AssertEx
.Equal(new byte[] { 0xFF, 0x25, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00 }, startupStub);
2407
AssertEx
.Equal(new byte[] { 0, 0x20, 0, 0, 0x0c, 0, 0, 0, 0x80, 0x33, 0, 0 }, relocBytes);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (49)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (8)
2072
AssertEx
.NotNull(container);
2133
AssertEx
.NotNull(container);
2190
AssertEx
.NotNull(container);
2196
AssertEx
.NotNull(m);
6307
AssertEx
.NotNull(field);
6357
AssertEx
.NotNull(container);
6361
AssertEx
.SetEqual(expectedFields, fields);
6370
AssertEx
.NotNull(containingType);
Emit\EditAndContinue\AssemblyReferencesTests.cs (3)
97
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL);
171
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL);
508
AssertEx
.Equal(expected, reader.GetAssemblyReferences().Select(aref => $"{reader.GetString(aref.Name)}, {aref.Version}"));
Emit\EditAndContinue\EditAndContinueTestBase.cs (7)
163
AssertEx
.Equal(
174
AssertEx
.Equal(
185
AssertEx
.Equal(
196
AssertEx
.Equal(
203
AssertEx
.Equal(rows, reader.GetCustomAttributeRows(), itemInspector: AttributeRowToString);
227
AssertEx
.Equal(expectedValue, attributeData);
236
AssertEx
.Equal(expectedValue, attributeData);
Emit\EditAndContinue\EditAndContinueTests.cs (3)
9542
AssertEx
.Equal(new[] { "[0x23000002] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader }));
9565
AssertEx
.Equal(new[] { "[0x23000003] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader, md2.Reader }));
9652
AssertEx
.Equal(new[] { "[0x23000003] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader, md2.Reader }));
Emit\EditAndContinue\SymbolMatcherTests.cs (4)
574
AssertEx
.SetEqual(fields.Select(f => f.Name), new[] { "x1", "x2" });
1128
AssertEx
.SetEqual(fields.Select(f => f.Name), new[] { "x", "y1", "y2" });
1592
AssertEx
.SetEqual(new[]
1662
AssertEx
.SetEqual(new[]
Emit\NumericIntPtrTests.cs (4)
577
AssertEx
.Equal(expectedMembers, actualMembers);
711
AssertEx
.Equal(expectedLocals, actualLocals);
1927
AssertEx
.Equal(expectedOperators, actualOperators);
1991
AssertEx
.Equal(expectedOperators, actualOperators);
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
74
AssertEx
.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
PDB\PDBAsyncTests.cs (1)
2051
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
PDB\PDBIteratorTests.cs (3)
915
AssertEx
.Equal(new[]
933
AssertEx
.Equal(new[]
1644
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
PDB\PDBSourceLinkTests.cs (3)
57
AssertEx
.Equal(sourceLinkBlob, actualData);
99
AssertEx
.Equal(sourceLinkBlob, actualBlob);
192
AssertEx
.Equal(sourceLinkBlob, actualData);
PDB\PDBUsingTests.cs (1)
3328
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
PDB\PortablePdbTests.cs (10)
79
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
88
AssertEx
.Equal(new byte[]
135
AssertEx
.AssertEqualToleratingWhitespaceDifferences("0: (12,31)-(12,36)", spString);
136
AssertEx
.Equal(new byte[]
177
AssertEx
.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
192
AssertEx
.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
237
AssertEx
.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
253
AssertEx
.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
317
AssertEx
.Equal(sourceLinkBlob, actualBlob);
360
AssertEx
.Equal(sourceLinkBlob, actualBlob);
PDB\TypeDefinitionDocumentTests.cs (1)
481
AssertEx
.Equal(expected, actual, itemSeparator: ",\n", itemInspector: i => $"(\"{i.typeName}\", \"{i.documentName}\")");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (679)
Attributes\AttributeTests.cs (40)
1805
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes()));
1806
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes()));
1809
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes()));
1813
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes()));
1817
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "A(2)" }), GetAttributeStrings(field2.GetAttributes()));
1821
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes()));
1825
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "A(33)" }), GetAttributeStrings(field3.GetAttributes()));
1829
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes()));
1833
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "A(44)", "A(444)" }), GetAttributeStrings(field4.GetAttributes()));
1866
AssertEx
.SetEqual(s_backingFieldAttributes.Concat(dynamicAndTupleNames), GetAttributeStrings(field1.GetAttributes()));
1904
AssertEx
.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes1));
1908
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1));
1916
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
1923
AssertEx
.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes3));
1966
AssertEx
.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes1));
1970
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1));
1978
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
1985
AssertEx
.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes3));
2202
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }),
2209
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }),
2253
AssertEx
.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field1.GetAttributes()));
2257
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(field1.GetAttributes()));
2265
AssertEx
.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field2.GetAttributes()));
2270
AssertEx
.SetEqual(decimalAttributeExpected, GetAttributeStrings(field3.GetAttributes()));
2333
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "System.ObsoleteAttribute" }),
2343
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { @"System.ObsoleteAttribute(""obsolete"", true)" }),
2465
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes()));
2466
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes()));
2469
AssertEx
.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes()));
2475
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes()));
2476
AssertEx
.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.SetMethod.GetAttributes()));
2479
AssertEx
.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
2635
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event1.AddMethod.GetAttributes()));
2636
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event1.RemoveMethod.GetAttributes()));
2645
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event2.AddMethod.GetAttributes()));
2646
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event2.RemoveMethod.GetAttributes()));
2654
AssertEx
.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.AddMethod.GetAttributes()));
2655
AssertEx
.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.RemoveMethod.GetAttributes()));
2663
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event4.AddMethod.GetAttributes()));
2664
AssertEx
.SetEqual(accessorsExpected, GetAttributeNames(event4.RemoveMethod.GetAttributes()));
Attributes\AttributeTests_Assembly.cs (13)
1820
Assert.True(expectedStr.Equals(actualStr),
AssertEx
.GetAssertMessage(expectedStr, actualStr));
1846
AssertEx
.SetEqual(new[]
2299
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2300
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2301
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
2302
AssertEx
.Equal("A1(1)", attrs[3].ToString());
2355
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2356
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2357
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
2358
AssertEx
.Equal("A1(typeof(C1))", attrs[3].ToString());
2383
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2384
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2385
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
Attributes\AttributeTests_CallerInfoAttributes.cs (4)
3243
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], goo.Parameters[0].GetAttributes().SelectAsArray(attr => attr.ToString()));
3244
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], goo.Parameters[1].GetAttributes().SelectAsArray(attr => attr.ToString()));
3245
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], goo.Parameters[2].GetAttributes().SelectAsArray(attr => attr.ToString()));
5950
AssertEx
.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("value")"""], indexer.Parameters[1].GetAttributes().SelectAsArray(attr => attr.ToString()));
Attributes\AttributeTests_Conditional.cs (2)
217
AssertEx
.SetEqual(
231
AssertEx
.SetEqual(
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
566
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_NativeInteger.cs (4)
1384
AssertEx
.Equal(ImmutableArray.Create(true, true, true, false, true, true), reader.ReadBoolArray(customAttribute.Value));
1615
AssertEx
.Equal(expectedNames, actualNames);
1626
AssertEx
.Equal(expectedNames, actualNames);
1637
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_Nullable.cs (16)
70
AssertEx
.SetEqual(
74
AssertEx
.SetEqual(
91
AssertEx
.SetEqual(
97
AssertEx
.SetEqual(
134
AssertEx
.SetEqual(
138
AssertEx
.SetEqual(
169
AssertEx
.SetEqual(
173
AssertEx
.SetEqual(
276
AssertEx
.SetEqual(
280
AssertEx
.SetEqual(
4758
AssertEx
.Equal(ImmutableArray.Create<byte>(0, 0, 2, 0, 2, 0, 0, 0, 0, 2, 0, 2), reader.ReadByteArray(customAttribute.Value));
4767
AssertEx
.Equal(ImmutableArray.Create<byte>(0, 2, 0, 2, 0, 2, 0, 2, 0, 0, 2), reader.ReadByteArray(customAttribute.Value));
4907
AssertEx
.Equal(expectedBits, reader.ReadByteArray(customAttribute.Value));
5386
AssertEx
.SetEqual(expectedNames, actualNames);
5424
AssertEx
.SetEqual(expectedNames, actualNames);
5435
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_NullableContext.cs (1)
426
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_NullablePublicOnly.cs (1)
622
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_Synthesized.cs (15)
132
AssertEx
.SetEqual(expectedAttrs, actualAttrs);
154
AssertEx
.SetEqual(expectedAttrs, actualAttrs);
265
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(displayClass.GetAttributes()));
304
AssertEx
.SetEqual(expected, GetAttributeNames(anon.GetAttributes()));
335
AssertEx
.SetEqual(expected, actual);
431
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes()));
444
AssertEx
.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes()));
450
AssertEx
.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes()));
486
AssertEx
.SetEqual(options.OptimizationLevel == OptimizationLevel.Debug ?
491
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes()));
501
AssertEx
.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes()));
505
AssertEx
.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes()));
545
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(attributes));
582
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes()));
625
AssertEx
.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes()));
Attributes\AttributeTests_Tuples.cs (2)
268
AssertEx
.Equal(srcMembers, peMembers);
640
AssertEx
.Equal(expectedElementNames, actualElementNames);
Attributes\AttributeTests_WellKnownAttributes.cs (3)
1127
AssertEx
.Equal(expectedConstant, actual);
1212
AssertEx
.Equal(expectedConstant, actual);
4900
AssertEx
.SetEqual(expectedAttributes, typeC.GetAttributes().Select(a => a.ToString()));
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
485
AssertEx
.Equal(identity.PublicKey, s_publicKey);
514
AssertEx
.Equal(identity.PublicKey, s_publicKey);
Diagnostics\DiagnosticSuppressorTests.cs (1)
662
AssertEx
.SetEqual(programmaticSuppression.Suppressions, suppressionInfo.ProgrammaticSuppressions);
Diagnostics\GetDiagnosticsTests.cs (15)
285
AssertEx
.Equal([
303
AssertEx
.Equal(["file1"], completedCompilationUnits.OrderBy(name => name));
1632
AssertEx
.SetEqual(expectedSymbolCallbacks, analyzer.AnalyzedSymbols.Select(s => s.Name).ToHashSet());
1636
AssertEx
.All(analyzer.AnalyzedSyntaxNodes, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
1637
AssertEx
.SetEqual(expectedSyntaxNodeCallbacks, analyzer.AnalyzedSyntaxNodes.Select(s => s.ToString()).ToHashSet());
1640
AssertEx
.All(analyzer.AnalyzedSyntaxNodesInsideCodeBlock, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
1641
AssertEx
.SetEqual(expectedSyntaxNodeInsideBlockCallbacks, analyzer.AnalyzedSyntaxNodesInsideCodeBlock.Select(s => s.ToString()).ToHashSet());
1645
AssertEx
.All(analyzer.AnalyzedOperations, operation => operation.Kind == OperationKind.VariableDeclaration);
1646
AssertEx
.SetEqual(expectedOperationCallbacks, analyzer.AnalyzedOperations.Select(op => op.Syntax.ToString()).ToHashSet());
1649
AssertEx
.All(analyzer.AnalyzedOperationsInsideOperationBlock, operation => operation.Kind == OperationKind.VariableDeclaration);
1650
AssertEx
.SetEqual(expectedOperationInsideBlockCallbacks, analyzer.AnalyzedOperationsInsideOperationBlock.Select(op => op.Syntax.ToString()).ToHashSet());
1662
AssertEx
.SetEqual(expectedBlockSymbolCallbacks, actualBlockSymbolCallbacks.Select(s => s.Name).ToHashSet());
1667
AssertEx
.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolStartSymbols.Select(s => s.Name).ToHashSet());
1669
AssertEx
.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolEndSymbols.Select(s => s.Name).ToHashSet());
1673
AssertEx
.SetEqual(expectedSemanticModelTreeCallbacks, analyzer.AnalyzedSemanticModels.Select(s => s.SyntaxTree).ToHashSet());
FieldKeywordTests.cs (53)
90
AssertEx
.Equal(expectedMembers, actualMembers);
155
AssertEx
.Equal(expectedMembers, actualMembers);
424
AssertEx
.Equal(expectedMembers, actualMembers);
474
AssertEx
.Equal(expectedMembers, actualMembers);
820
AssertEx
.Equal(expectedMembers, actualMembers);
918
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
1021
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
1128
AssertEx
.Equal(expectedMembers, actualMembers);
1243
AssertEx
.Equal(expectedMembers, actualMembers);
1517
AssertEx
.Equal([], actualFields);
1687
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
1854
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
1960
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
2044
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
2165
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
2247
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
4669
AssertEx
.Equal(expectedMembers, actualMembers);
4820
AssertEx
.Equal(expectedMembers, actualMembers);
4892
AssertEx
.Equal(expectedMembers, actualMembers);
4971
AssertEx
.Equal(expectedMembers, actualMembers);
5098
AssertEx
.Equal(expectedMembers, actualMembers);
5155
AssertEx
.Equal(expectedMembers, actualMembers);
5166
AssertEx
.Equal(expectedMembers, actualMembers);
8098
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8395
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8469
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8637
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8700
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8754
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8832
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
8907
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9007
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9083
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9160
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9283
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9368
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9437
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9458
AssertEx
.Equal(expectedValues, actualValues);
9469
AssertEx
.Equal(expectedValues, actualValues);
9566
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9797
AssertEx
.Equal(expectedMembers, actualMembers);
9857
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
9934
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
10008
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
10092
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
10094
AssertEx
.Equal(["A(2)"], actualFields[0].GetAttributes().ToStrings());
10095
AssertEx
.Equal(["A(3)"], actualFields[1].GetAttributes().ToStrings());
10096
AssertEx
.Equal(["A(5)", "A(6)"], actualFields[2].GetAttributes().ToStrings());
10159
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
10161
AssertEx
.Equal(["A(2)"], actualFields[0].GetAttributes().ToStrings());
10162
AssertEx
.Equal(["A(3)"], actualFields[1].GetAttributes().ToStrings());
10163
AssertEx
.Equal(["A(5)", "A(6)"], actualFields[2].GetAttributes().ToStrings());
10358
AssertEx
.Equal(expectedFields, actualFields.ToTestDisplayStrings());
FirstClassSpanTests.cs (22)
5002
AssertEx
.Equal("System.Int32[]", aSymbol.Type.ToTestDisplayString());
5006
AssertEx
.Equal("System.Int32 System.Span<System.Int32>.M(System.Int32 y)", lookupResult.Single().ToTestDisplayString());
8549
AssertEx
.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp));
8581
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8613
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8628
AssertEx
.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp));
8660
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8692
AssertEx
.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp));
8707
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8722
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8754
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8773
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure));
8792
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure));
8825
AssertEx
.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp));
8840
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8855
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8870
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8919
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8951
AssertEx
.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp));
8966
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
8981
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
9013
AssertEx
.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
OverloadResolutionPriorityTests.cs (10)
762
AssertEx
.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[0]).Symbol!.ToTestDisplayString());
763
AssertEx
.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[1]).Symbol!.ToTestDisplayString());
809
AssertEx
.Equal("Derived..ctor(System.Object o)", model.GetSymbolInfo(creation).Symbol!.ToTestDisplayString());
907
AssertEx
.Equal("C..ctor(System.Object o)", attr.AttributeConstructor.ToTestDisplayString());
989
AssertEx
.Equal(["System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", "System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Object priority)"],
995
AssertEx
.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)",
1482
AssertEx
.Equal("System.Int32 C.this[System.Object x] { get; set; }", indexer.ToTestDisplayString());
1488
AssertEx
.Equal("System.Int32 C.this[System.String x] { get; set; }", indexer.ToTestDisplayString());
2373
AssertEx
.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
2500
AssertEx
.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
RefReadonlyParameterTests.cs (3)
980
AssertEx
.SetEqual(new[]
1129
AssertEx
.SetEqual(new[]
1181
AssertEx
.SetEqual(new[]
RefStructInterfacesTests.cs (233)
4383
AssertEx
.Equal("C<T> where T : allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5099
AssertEx
.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5123
AssertEx
.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5770
AssertEx
.Equal("C<T>", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
7579
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7580
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7584
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7586
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
7769
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7770
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7774
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7776
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
7989
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7990
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7994
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7996
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8179
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8180
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8184
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8186
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8372
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8373
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8377
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8379
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8651
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8652
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8656
AssertEx
.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8658
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9022
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9023
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9024
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9025
AssertEx
.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
9029
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9030
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9032
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9036
AssertEx
.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
9226
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9227
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9228
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9229
AssertEx
.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
9233
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9234
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9236
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9240
AssertEx
.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
9590
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9591
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9592
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9593
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
9597
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9598
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9600
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9814
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9815
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9816
AssertEx
.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9817
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
9821
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9822
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9824
AssertEx
.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10023
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10024
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10025
AssertEx
.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10026
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
10030
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10031
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10033
AssertEx
.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10250
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10251
AssertEx
.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10252
AssertEx
.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10253
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
10257
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10258
AssertEx
.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10260
AssertEx
.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10633
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10634
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10635
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10636
AssertEx
.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
10640
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10641
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10643
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10647
AssertEx
.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
10830
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10831
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10832
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10833
AssertEx
.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
10837
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10838
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10840
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10844
AssertEx
.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
11071
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11072
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11073
AssertEx
.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11074
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11078
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11079
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11081
AssertEx
.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11298
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11299
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11300
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11301
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11305
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11306
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11308
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11510
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11511
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11512
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11513
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11517
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11518
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11520
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11610
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11611
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11612
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11617
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11618
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11620
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11705
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11706
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11707
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11712
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11713
AssertEx
.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11715
AssertEx
.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
14262
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
14263
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14267
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
14269
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
14603
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
14604
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14608
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
14610
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
14966
AssertEx
.Equal("new S()", foreachSyntax.Expression.ToString());
14970
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
14971
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14975
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
14977
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
15313
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
15314
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
15318
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
15320
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
15661
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
15662
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
15666
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
15668
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
16099
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
16100
AssertEx
.Equal("System.Int32", info.ElementType.ToTestDisplayString());
16104
AssertEx
.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
16106
AssertEx
.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
16764
AssertEx
.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16770
AssertEx
.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
16829
AssertEx
.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16835
AssertEx
.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
16894
AssertEx
.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16978
AssertEx
.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16984
AssertEx
.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
17066
AssertEx
.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
17072
AssertEx
.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
17256
AssertEx
.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
17766
AssertEx
.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
17767
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
17771
AssertEx
.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
17773
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
17963
AssertEx
.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
17964
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
17968
AssertEx
.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
17970
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18183
AssertEx
.Equal("new S()", foreachSyntax.Expression.ToString());
18187
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18188
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
18192
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18194
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18383
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18384
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
18388
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18390
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18584
AssertEx
.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18585
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
18589
AssertEx
.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18591
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18868
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18869
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
18873
AssertEx
.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18875
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19203
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
19204
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19205
AssertEx
.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19210
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19211
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19213
AssertEx
.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19374
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
19375
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19376
AssertEx
.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19381
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19382
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19384
AssertEx
.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19699
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
19700
AssertEx
.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19701
AssertEx
.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19706
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19707
AssertEx
.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19709
AssertEx
.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19867
AssertEx
.Equal("System.Object", info.ElementType.ToTestDisplayString());
19868
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19869
AssertEx
.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19870
AssertEx
.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
19874
AssertEx
.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19875
AssertEx
.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19877
AssertEx
.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
21241
AssertEx
.Equal("scoped T u", parameter.ToTestDisplayString());
21251
AssertEx
.Equal("scoped T u", parameter.ToTestDisplayString());
21262
AssertEx
.Equal("scoped T x", p.ToTestDisplayString());
21306
AssertEx
.Equal("x = default", declarator.ToString());
21308
AssertEx
.Equal("T x", local.ToTestDisplayString());
21510
AssertEx
.Equal("params T x", p.ToTestDisplayString());
21647
AssertEx
.Equal("params T x", p.ToTestDisplayString());
21651
AssertEx
.Equal("params S y", p.ToTestDisplayString());
21655
AssertEx
.Equal("params T z", p.ToTestDisplayString());
21710
AssertEx
.Equal("params T x", p.ToTestDisplayString());
21714
AssertEx
.Equal("params S y", p.ToTestDisplayString());
21718
AssertEx
.Equal("params T z", p.ToTestDisplayString());
22850
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1[] arg)", m.ToTestDisplayString());
22874
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1, T2>.Invoke(T1 arg1, params T2[] arg2)", m.ToTestDisplayString());
22902
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(System.Int32* arg1, params System.Int32[] arg2)", m.ToTestDisplayString());
22932
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString());
22963
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString());
22994
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params T1[] arg3)", m.ToTestDisplayString());
23025
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[] arg2)", m.ToTestDisplayString());
23057
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString());
23088
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString());
23119
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[][] arg2)", m.ToTestDisplayString());
23143
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int32> arg)", m.ToTestDisplayString());
23173
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1[] arg2)", m.ToTestDisplayString());
23204
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2)", m.ToTestDisplayString());
23228
AssertEx
.Equal("void <>A{00000001}<T1, T2>.Invoke(ref T1 arg1, T2 arg2)", m.ToTestDisplayString());
28946
AssertEx
.Equal("void ITest29.M21<T1>() where T1 : allows ref struct", m21.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
Semantics\CollectionExpressionTests.cs (5)
13444
AssertEx
.Equal(
13719
AssertEx
.Equal(
15586
AssertEx
.Equal(new[] { "<>y__InlineArray2", "<>y__InlineArray3" }, getInlineArrayTypeNames(module));
15614
AssertEx
.Equal(new[] { "<>y__InlineArray3" }, getInlineArrayTypeNames(module));
15642
AssertEx
.Equal(new[] { $"<>y__InlineArray{n}" }, getInlineArrayTypeNames(module));
Semantics\InlineArrayTests.cs (2)
14641
AssertEx
.Equal("System.Span<TElement> <PrivateImplementationDetails>.InlineArrayAsSpan<TBuffer, TElement>(ref TBuffer buffer, System.Int32 length)",
14691
AssertEx
.Equal("System.ReadOnlySpan<TElement> <PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<TBuffer, TElement>(in TBuffer buffer, System.Int32 length)",
Semantics\ParamsCollectionTests.cs (41)
2744
AssertEx
.Equal("void Program.<>c.<Main>b__0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString());
2758
AssertEx
.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString());
2792
AssertEx
.Equal("params System.Int64[] x", parameter.ToTestDisplayString());
2800
AssertEx
.Equal("void Program.<>c.<Main>b__0_0(System.Int64[] x)", l1.ToTestDisplayString());
2946
AssertEx
.Equal("void Program.<Main>g__local|0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString());
2956
AssertEx
.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString());
2987
AssertEx
.Equal("params System.Int64[] x", parameter.ToTestDisplayString());
2995
AssertEx
.Equal("void Program.<Main>g__local|0_0(System.Int64[] x)", l1.ToTestDisplayString());
4341
AssertEx
.Equal("System.Collections.Generic.IEnumerable<System.Int64> e1", parameter.ToTestDisplayString());
4347
AssertEx
.Equal("System.Int64[] e2", parameter.ToTestDisplayString());
4467
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4471
AssertEx
.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4529
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4533
AssertEx
.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4539
AssertEx
.Equal("void Program.<>c.<Main>b__0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString());
4543
AssertEx
.Equal("void Program.<>c.<Main>b__0_1(System.Int64[] a)", l2.ToTestDisplayString());
4625
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod.ToTestDisplayString());
4626
AssertEx
.Equal("void <>f__AnonymousDelegate1.Invoke(params System.Collections.Generic.List<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1").DelegateInvokeMethod.ToTestDisplayString());
4627
AssertEx
.Equal("void <>f__AnonymousDelegate2<T1>.Invoke(params T1[] arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate2`1").DelegateInvokeMethod.ToTestDisplayString());
4682
AssertEx
.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4686
AssertEx
.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4692
AssertEx
.Equal("void Program.<Main>g__Test1|0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString());
4696
AssertEx
.Equal("void Program.<Main>g__Test2|0_1(System.Int64[] a)", l2.ToTestDisplayString());
4816
AssertEx
.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1 arg)", delegateInvokeMethod.ToTestDisplayString());
10404
AssertEx
.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10405
AssertEx
.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10418
AssertEx
.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10419
AssertEx
.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10528
AssertEx
.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10529
AssertEx
.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10542
AssertEx
.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10543
AssertEx
.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10652
AssertEx
.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10653
AssertEx
.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10666
AssertEx
.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10667
AssertEx
.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10769
AssertEx
.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10770
AssertEx
.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10783
AssertEx
.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10784
AssertEx
.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
12822
AssertEx
.Equal(adjustedMemberDisplay, member.ToTestDisplayString());
Semantics\PatternMatchingTestBase.cs (1)
470
AssertEx
.Equal(expectedDecisionDag, decisionDag.Dump());
Semantics\PatternMatchingTests.cs (1)
11391
AssertEx
.Equal(new[] { "System.ReadOnlySpan<System.Char>", "System.Span<System.Char>" }, types);
Semantics\PatternMatchingTests_ListPatterns.cs (6)
74
AssertEx
.Multiple(
284
AssertEx
.Multiple(
541
AssertEx
.Multiple(
728
AssertEx
.Multiple(
2454
AssertEx
.Multiple(
6692
AssertEx
.Multiple(
Semantics\PatternMatchingTests4.cs (11)
4021
AssertEx
.Equal(
4090
AssertEx
.Equal(
4163
AssertEx
.Equal(
4235
AssertEx
.Equal(
4279
AssertEx
.Equal(
4326
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
4408
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
4490
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
4572
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
4654
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
4738
AssertEx
.AssertEqualToleratingWhitespaceDifferences("""
Semantics\PrimaryConstructorTests.cs (24)
3039
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
6834
AssertEx
.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString());
6905
AssertEx
.SetEqual(new string[] { "A..ctor()" },
6907
AssertEx
.SetEqual(new string[] { "B..ctor()" },
6909
AssertEx
.SetEqual(new string[] { "C..ctor(System.Int32 x)" },
6911
AssertEx
.SetEqual(new string[] { "D..ctor(System.Int32 x)" },
6933
AssertEx
.SetEqual(new string[] { "A..ctor()" },
6935
AssertEx
.SetEqual(new string[] { "B..ctor()" },
6937
AssertEx
.SetEqual(new string[] { "C..ctor(System.Int32 x)", "C..ctor()" },
6939
AssertEx
.SetEqual(new string[] { "D..ctor(System.Int32 x)", "D..ctor()" },
6961
AssertEx
.SetEqual(new string[] { ".ctor" },
6963
AssertEx
.SetEqual(new string[] { ".ctor" },
6965
AssertEx
.SetEqual(new string[] { ".ctor" },
6967
AssertEx
.SetEqual(new string[] { ".ctor" },
6989
AssertEx
.SetEqual(new string[] { ".ctor" },
6991
AssertEx
.SetEqual(new string[] { ".ctor" },
6993
AssertEx
.SetEqual(new string[] { ".ctor" },
6995
AssertEx
.SetEqual(new string[] { ".ctor" },
19777
AssertEx
.Equal("System.Int32 C.this[System.Int32 i] { get; }", info.Symbol.ToTestDisplayString());
22026
AssertEx
.Equal(new[] { "<x>P", "<y>P" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
22047
AssertEx
.Equal(new[] { "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
22073
AssertEx
.Equal(new[] { "b", "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
22099
AssertEx
.Equal(new[] { "<x>P", "<y>P", "a", "b" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
22130
AssertEx
.Equal(new[] { "b", "<x>P", "<y>P", "a", "c" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
Semantics\RecordTests.cs (147)
295
AssertEx
.SetEqual(new[] { "System.Boolean RecordB.op_Equality(RecordB? left, RecordB? right)" },
509
AssertEx
.Equal(expectedMembers,
512
AssertEx
.Equal(new[] { "A..ctor(System.Int32 i, ?)", "A..ctor(A original)" },
598
AssertEx
.Equal(expectedMembers,
632
AssertEx
.Equal(expectedMembers,
635
AssertEx
.Equal(new[] { "A..ctor(System.Int32, System.String)", "A..ctor(A original)" },
666
AssertEx
.Equal(expectedMembers,
669
AssertEx
.Equal(new[] { "A..ctor(System.Int32, System.Int32)", "A..ctor(A original)" },
840
AssertEx
.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1018
AssertEx
.Equal(expectedMembers,
1044
AssertEx
.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1070
AssertEx
.Equal(expectedMembers,
1096
AssertEx
.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1148
AssertEx
.Equal(expectedMembers, actualMembers);
1584
AssertEx
.Equal(expectedMembers, actualMembers);
1635
AssertEx
.Equal(expectedMembers, actualMembers);
5983
AssertEx
.Equal(expectedMembers, actualMembers);
6026
AssertEx
.Equal(expectedMembers, actualMembers);
6067
AssertEx
.Equal(expectedMembers, actualMembers);
6108
AssertEx
.Equal(expectedMembers, actualMembers);
9750
AssertEx
.Equal(expectedMembers, actualMembers);
9777
AssertEx
.Equal(new[] { "System.Type A.B.EqualityContract { get; }" }, actualMembers);
9800
AssertEx
.Equal(new[] { "System.Type C1.EqualityContract { get; }" }, GetProperties(comp, "C1").ToTestDisplayStrings());
9813
AssertEx
.Equal(new[] { "System.Type C2.EqualityContract { get; }", "System.Object C2.P { get; init; }" }, GetProperties(comp, "C2").ToTestDisplayStrings());
9865
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9896
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9943
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9977
AssertEx
.Equal(new[] { "System.Type B1.EqualityContract { get; }", "System.Int32 B1.X { get; init; }" }, GetProperties(comp, "B1").ToTestDisplayStrings());
9978
AssertEx
.Equal(new[] { "System.Type B2.EqualityContract { get; }", "System.Int32 B2.X { get; init; }" }, GetProperties(comp, "B2").ToTestDisplayStrings());
10016
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Int32 C.X { get; init; }", "System.Int32 C.Y { get; init; }" }, actualMembers);
10061
AssertEx
.Equal(expectedMembers, actualMembers);
10083
AssertEx
.Equal(expectedMemberNames, c.GetPublicSymbol().MemberNames);
10090
AssertEx
.Equal(expectedCtors, c.GetPublicSymbol().Constructors.ToTestDisplayStrings());
10184
AssertEx
.Equal(expectedMembers, actualMembers);
10221
AssertEx
.Equal(expectedMembers, actualMembers);
10264
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10297
AssertEx
.Equal(expectedMembers, actualMembers);
10343
AssertEx
.Equal(expectedMembers, actualMembers);
10390
AssertEx
.Equal(expectedMembers, actualMembers);
10439
AssertEx
.Equal(expectedMembers, actualMembers);
10491
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
10551
AssertEx
.Equal(expectedMembers, actualMembers);
10588
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10664
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10696
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10754
AssertEx
.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("B").GetMembers().ToTestDisplayStrings());
10778
AssertEx
.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("C").GetMembers().ToTestDisplayStrings());
10822
AssertEx
.Equal(expectedMembers, actualMembers);
10847
AssertEx
.Equal(expectedMembers, actualMembers);
10870
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10876
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10900
AssertEx
.Equal(expectedMembers, actualMembers);
10924
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10925
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Object C.P { get; init; }", "System.Object C.I.P { get; }" }, GetProperties(comp, "C").ToTestDisplayStrings());
10987
AssertEx
.Equal(expectedMembers, actualMembers);
11055
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
11150
AssertEx
.Equal(expectedMembers, actualMembers);
11202
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11263
AssertEx
.Equal(expectedMembers, actualMembers);
11299
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11340
AssertEx
.Equal(expectedMembers, actualMembers);
11554
AssertEx
.Equal(expectedMembers, actualMembers);
11790
AssertEx
.Equal(expectedMembers, actualMembers);
12103
AssertEx
.Equal(new[] { "System.Type C.EqualityContract { get; }", }, GetProperties(comp, "C").ToTestDisplayStrings());
12211
AssertEx
.Equal(new[] { "System.Type CA.EqualityContract { get; }", "System.Object CA.P { get; init; }" }, GetProperties(comp, "CA").ToTestDisplayStrings());
12212
AssertEx
.Equal(new[] { "System.Type CB.EqualityContract { get; }" }, GetProperties(comp, "CB").ToTestDisplayStrings());
12493
AssertEx
.Equal(expectedModifiers, returnType.CustomModifiers);
12500
AssertEx
.Equal(expectedModifiers, parameterType.CustomModifiers);
12583
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
12743
AssertEx
.Equal(expectedMembers, actualMembers);
13476
AssertEx
.Equal(expectedMembers, actualMembers);
15780
AssertEx
.Equal(expectedMembers, actualMembers);
15839
AssertEx
.Equal(expectedMembers, actualMembers);
20707
AssertEx
.Equal(expectedMembers, actualMembers);
20749
AssertEx
.Equal(expectedMembers, actualMembers);
20779
AssertEx
.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
23640
AssertEx
.Equal(expectedMembers, actualMembers);
23788
AssertEx
.Equal(expectedMembers, actualMembers);
24021
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24022
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24025
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24026
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24076
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24077
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24080
AssertEx
.Equal(new[] { "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24081
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24141
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24142
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24145
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24146
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24186
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24187
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24190
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24191
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24211
AssertEx
.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24212
AssertEx
.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24215
AssertEx
.Equal(new[] { "System.IEquatable<B1>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24216
AssertEx
.Equal(new[] { "System.IEquatable<B2>", "System.IEquatable<A<System.Object>>", "System.IEquatable<B1>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24219
AssertEx
.Equal(new[] { "System.IEquatable<B2>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24220
AssertEx
.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<A<System.Int32>>", "System.IEquatable<B2>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24240
AssertEx
.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24241
AssertEx
.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24244
AssertEx
.Equal(new[] { "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24245
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Object>>", "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24305
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24306
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24309
AssertEx
.Equal(new[] { "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24310
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24375
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24376
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24379
AssertEx
.Equal(new[] { "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24380
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24449
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24450
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24453
AssertEx
.Equal(new[] { "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24454
AssertEx
.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24879
AssertEx
.Equal(expectedMembers, actualMembers);
24924
AssertEx
.Equal(expectedMembers, actualMembers);
25087
AssertEx
.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25090
AssertEx
.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25093
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25147
AssertEx
.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25150
AssertEx
.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25153
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25224
AssertEx
.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25227
AssertEx
.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25230
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25281
AssertEx
.SetEqual(new string[] { }, getAttributeStrings(prop1));
25284
AssertEx
.SetEqual(new string[] { }, getAttributeStrings(field1));
25287
AssertEx
.SetEqual(new string[] { }, getAttributeStrings(param1));
25362
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25446
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25516
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
28153
AssertEx
.Equal(
28305
AssertEx
.Equal(
28597
AssertEx
.Equal(
28644
AssertEx
.Equal(
28692
AssertEx
.Equal(
28740
AssertEx
.Equal(
28792
AssertEx
.Equal(
28843
AssertEx
.Equal(
28901
AssertEx
.Equal(
29008
AssertEx
.Equal(
29059
AssertEx
.Equal(
30186
AssertEx
.Equal(expectedMembers, actualMembers);
30216
AssertEx
.Equal(expectedMembers, actualMembers);
30373
AssertEx
.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (20)
EditAndContinue\BreakpointSpansTests.cs (2)
56
AssertEx
.AreEqual(
81
AssertEx
.Equal(expectedSpans, actualSpans,
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
115
AssertEx
.Equal(Array.Empty<SyntaxKind>(), unhandledKinds);
768
AssertEx
.Equal([expectedDiagnostic], result.RudeEdits.Select(d => d.ToDiagnostic(newSyntaxTree))
EditAndContinue\SyntaxComparerTests.cs (4)
32
AssertEx
.Equal(
48
AssertEx
.Equal(
64
AssertEx
.Equal(
80
AssertEx
.Equal(
EditAndContinue\SyntaxUtilitiesTests.cs (4)
257
AssertEx
.Empty(SyntaxUtilities.GetSuspensionPoints(x.Initializer));
258
AssertEx
.Equal(["yield return 1;"], SyntaxUtilities.GetSuspensionPoints(m1.Body).Select(n => n.ToString()));
259
AssertEx
.Empty(SyntaxUtilities.GetSuspensionPoints(m2.Body));
261
AssertEx
.Equal(
SemanticSearch\CSharpSemanticSearchServiceTests.cs (7)
83
AssertEx
.Equal(["namespace N"], results.Select(Inspect));
178
AssertEx
.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage);
181
AssertEx
.Equal($"CSharpAssembly1: [179..179) 'F(x + 1);': InsufficientExecutionStackException: '{expectedMessage}'", Inspect(exception, query));
183
AssertEx
.Equal(
236
AssertEx
.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage);
239
AssertEx
.Equal($"CSharpAssembly1: [190..190) 'var x = s.ToString();': NullReferenceException: '{expectedMessage}'", Inspect(exception, query));
240
AssertEx
.Equal(
Testing\CSharpTestMethodFinderTests.cs (1)
561
AssertEx
.Equal(expectedTestNames, testMethodNames);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (65)
CommandLineRunnerTests.cs (42)
53
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
68
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
91
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
126
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
151
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
166
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
257
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
258
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
281
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
304
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
321
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
348
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
370
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
389
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
404
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
405
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
415
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
428
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
432
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
436
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
440
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
458
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
459
AssertEx
.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
468
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
476
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
495
AssertEx
.AssertEqualToleratingWhitespaceDifferences("3", runner.Console.Out.ToString());
547
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
584
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
608
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
623
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
644
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
659
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
683
AssertEx
.Equal(new[]
694
AssertEx
.Equal(new[]
714
AssertEx
.AssertEqualToleratingWhitespaceDifferences(@"
734
AssertEx
.AssertEqualToleratingWhitespaceDifferences($@"
743
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
843
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
866
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
879
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
895
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
914
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
InteractiveSessionTests.cs (20)
900
AssertEx
.Equal(new[] { "hello", "hello" }, result);
1024
AssertEx
.Equal(new object[] { 1, 1, null }, result);
1038
AssertEx
.Equal(new[] { 1, 2, 3, 4 }, result1);
1041
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5 }, result2);
1044
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue);
1047
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue);
1050
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue);
1675
AssertEx
.SetEqual(new[] { "<implicit>", "<host>" }, aliases);
1682
AssertEx
.SetEqual(new[] { "<host>", "global" }, aliases);
1687
AssertEx
.SetEqual(new[] { "<host>" }, aliases);
1723
AssertEx
.SetEqual(Array.Empty<string>(), aliases);
1729
AssertEx
.SetEqual(new[] { "<implicit>", "global" }, aliases);
1737
AssertEx
.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases);
1744
AssertEx
.SetEqual(new[] { "<host>", "global" }, aliases);
1751
AssertEx
.SetEqual(new[] { "<host>", "global" }, aliases);
1789
AssertEx
.SetEqual(Array.Empty<string>(), aliases);
1795
AssertEx
.SetEqual(new[] { "<implicit>", "global" }, aliases);
1803
AssertEx
.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases);
1810
AssertEx
.SetEqual(new[] { "<host>", "global" }, aliases);
1817
AssertEx
.SetEqual(new[] { "<host>", "global" }, aliases);
ScriptTests.cs (3)
403
AssertEx
.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name));
404
AssertEx
.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value));
405
AssertEx
.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (990)
Semantics\DelegateTypeTests.cs (30)
1381
AssertEx
.Equal(["void System.Object.F(System.Object y)", "void System.Object.F<T>(T y)"],
1424
AssertEx
.Equal(["void System.Object.F<T>()", "void System.Object.F()"],
2087
AssertEx
.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2152
AssertEx
.Equal(["void C.M()", "void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2215
AssertEx
.Equal(["void C.M()", "void C.M(System.Object o)", "void C.M(System.Object o)"],
2273
AssertEx
.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2322
AssertEx
.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2362
AssertEx
.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2405
AssertEx
.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2456
AssertEx
.Equal(["void C.M(C c)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2497
AssertEx
.Equal(["void C.M<T>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2545
AssertEx
.Equal(["void C.M<T>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2597
AssertEx
.Equal(["void C.M<C>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2643
AssertEx
.Equal(["void C.M<System.Int32, System.Int32>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2691
AssertEx
.Equal(["void C.M<System.Int32, System.Int32>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2738
AssertEx
.Equal(["void C.M<T>()", "void C.M<T, U>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2782
AssertEx
.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2832
AssertEx
.Equal(["void System.Object.M<System.Object>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2862
AssertEx
.Equal(["void C<System.Int32, System.Int64>.M<System.Int32, System.Int64>()"],
2891
AssertEx
.Equal(["void C.M<T>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
2920
AssertEx
.Equal(["void C.M<System.Int32>()", "void C.M<System.Int32>(System.Object o)"],
2951
AssertEx
.Equal(["void C.M<System.Object?>()", "void C.M<System.Object?>(System.Object o)"],
2983
AssertEx
.Equal(["void C.M<System.Object?>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
3014
AssertEx
.Equal(["void System.Object.M<System.Object>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings());
3046
AssertEx
.Equal(["void System.Object.M<System.Object>()", "void System.Object.M<System.Object>(System.Object ignored)"],
3081
AssertEx
.Equal(["void System.Object.F<System.Object>()", "void System.Object.F()"],
10393
AssertEx
.Equal(expectedInfo, variables.Select(v => getVariableInfo(model, v)));
12038
AssertEx
.Equal(expectedTypes, actualTypes);
12083
AssertEx
.Equal(expectedTypes, actualTypes);
12132
AssertEx
.Equal(expectedTypes, actualTypes);
Semantics\DynamicTests.cs (591)
4982
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
4986
AssertEx
.Equal(@"i1.Test(""name"", value)", call.ToString());
4988
AssertEx
.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
4990
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
4991
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
4994
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5063
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5106
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5110
AssertEx
.Equal(@"i1.Test(""name"", value)", call.ToString());
5112
AssertEx
.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5114
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5115
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5118
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5186
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5229
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5233
AssertEx
.Equal(@"i1.Test(""name"", value)", call.ToString());
5235
AssertEx
.Equal("dynamic I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5237
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5238
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5241
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5310
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5347
AssertEx
.Equal(@"new C().Test(""name"", d)", call.ToString());
5388
AssertEx
.Equal(@"Test(name: ""name"", d)", call.ToString());
5390
AssertEx
.Equal(@"System.Int32 C.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5392
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5393
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5432
AssertEx
.Equal(@"Test(&name, d)", call.ToString());
5434
AssertEx
.Equal("System.Int32 C.Test(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5436
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5437
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5476
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
5478
AssertEx
.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString());
5480
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5481
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5484
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5520
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
5522
AssertEx
.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
5524
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5525
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5528
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5697
AssertEx
.Equal(@"i1(""name"", value)", call.ToString());
5699
AssertEx
.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5701
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5702
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5705
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5738
AssertEx
.Equal(@"Test(name: ""name"", d)", call.ToString());
5740
AssertEx
.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5742
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5743
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5783
AssertEx
.Equal(@"Test(&name, d)", call.ToString());
5785
AssertEx
.Equal("System.Int32 C.D.Invoke(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5787
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5788
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5828
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
5830
AssertEx
.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString());
5832
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5833
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5836
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
5873
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
5875
AssertEx
.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
5877
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5878
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5881
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6028
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6033
AssertEx
.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6035
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6036
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6039
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6108
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6151
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6156
AssertEx
.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6158
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6159
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6162
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6231
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6271
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6276
AssertEx
.Equal("dynamic I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6278
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6279
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6282
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6351
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6384
AssertEx
.Equal("System.Int32 C.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6386
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6387
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6390
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6426
AssertEx
.Equal("System.Int32 C.this[System.String* name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6428
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6429
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6473
AssertEx
.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6475
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6476
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6517
AssertEx
.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6519
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6520
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6562
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6564
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6565
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6573
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6574
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6616
AssertEx
.Equal("System.Int32* C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6618
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6619
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6677
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6682
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6684
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6685
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6692
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6693
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6696
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6697
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
6698
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6702
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
6703
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
6740
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6786
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6791
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6793
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6794
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6801
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6802
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6805
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6806
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
6807
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6811
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
6812
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
6849
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6896
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6901
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6903
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6904
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6911
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6912
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6915
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6916
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
6917
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
6921
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6922
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6960
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6998
AssertEx
.Equal("System.IO.Stream C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7000
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7001
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7008
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7009
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7012
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7013
AssertEx
.Equal("System.Object", operation.Value.Type.ToTestDisplayString());
7014
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7018
AssertEx
.Equal("System.Object", typeInfo.Type.ToTestDisplayString());
7019
AssertEx
.Equal("System.Object", typeInfo.ConvertedType.ToTestDisplayString());
7065
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7070
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
7072
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7073
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7080
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7081
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7085
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7086
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7122
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
7168
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7173
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7175
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7176
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7183
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7184
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7186
AssertEx
.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7189
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7190
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
7191
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7196
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7197
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7234
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7281
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7286
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7288
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7289
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7296
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7297
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7299
AssertEx
.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7302
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7303
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
7304
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7309
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7310
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7350
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7397
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7402
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7404
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7405
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7412
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7413
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7415
AssertEx
.Equal("dynamic dynamic.op_Addition(dynamic left, dynamic right)", symbolInfo.Symbol.ToTestDisplayString());
7418
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7419
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
7420
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7425
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7426
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7467
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7510
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7515
AssertEx
.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7517
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7518
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7525
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7527
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7529
AssertEx
.Equal("dynamic dynamic.op_Addition(dynamic left, C2 right)", symbolInfo.Symbol.ToTestDisplayString());
7532
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7533
AssertEx
.Equal("C2", operation.Value.Type.ToTestDisplayString());
7534
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7540
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
7541
AssertEx
.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
7587
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7592
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
7594
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7595
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7602
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7603
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7605
AssertEx
.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7609
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7610
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7646
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7692
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7697
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7699
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7700
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7707
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7708
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7710
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7713
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7714
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7752
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7798
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7803
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7805
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7806
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7813
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7814
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7816
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7819
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7820
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7858
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7901
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7907
AssertEx
.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7909
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7910
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7917
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7921
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7924
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7925
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
7973
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7978
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7980
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7981
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7988
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7989
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7991
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7994
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7995
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8033
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8079
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8084
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8086
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8087
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8094
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8095
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8097
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
8100
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8101
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8139
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8184
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8189
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
8191
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8192
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8199
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8200
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8202
AssertEx
.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
8205
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8206
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8243
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8289
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8294
AssertEx
.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8296
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8297
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8304
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8305
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8308
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8309
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8310
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8314
AssertEx
.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8315
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8352
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8398
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8403
AssertEx
.Equal("System.Int32? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8405
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8406
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8413
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8414
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8417
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8418
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8419
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8423
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8424
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8461
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8507
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8512
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8514
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8515
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8522
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8523
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8526
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8527
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8528
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8532
AssertEx
.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8533
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8570
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8617
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8622
AssertEx
.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8624
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8625
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8632
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8633
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8636
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8637
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8638
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8642
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8643
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8681
AssertEx
.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8731
AssertEx
.Equal("C2? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8733
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8734
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8741
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8742
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8745
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8746
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8747
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8751
AssertEx
.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8752
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8800
AssertEx
.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8802
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8803
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8810
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8811
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8814
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8815
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8816
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8820
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
8821
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8867
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8872
AssertEx
.Equal("ref System.Int32? C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
8874
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8875
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8882
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8883
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8886
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8887
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8888
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8892
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8893
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8930
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8931
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8938
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8939
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8942
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8943
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8944
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
8948
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8949
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9020
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9021
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9028
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9029
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9032
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9033
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9034
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9038
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
9039
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9111
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9112
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9119
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9120
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9123
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9124
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9125
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9129
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9130
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9201
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9202
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9209
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9210
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9213
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9214
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9215
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9219
AssertEx
.Equal("System.String", typeInfo.Type.ToTestDisplayString());
9220
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9257
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9258
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9265
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9266
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9269
AssertEx
.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9270
AssertEx
.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9271
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9275
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
9276
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9318
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9319
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9326
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9327
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9330
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9439
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9440
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9447
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9448
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9451
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9559
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9560
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9567
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9568
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9571
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9673
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9674
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9681
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9682
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9685
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9784
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9785
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9792
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9793
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9796
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
9895
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9896
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9903
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9904
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9907
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
10019
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10024
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10026
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10027
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10034
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10035
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10039
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10040
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10051
AssertEx
.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10052
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10056
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10057
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10096
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10147
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10152
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10154
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10155
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10162
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10163
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10167
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10168
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10179
AssertEx
.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10180
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10184
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10185
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10224
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10275
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10280
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10282
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10283
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10290
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10291
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10295
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10296
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10307
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10308
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10312
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10313
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10352
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10429
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10434
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
10436
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10437
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10444
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10445
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10449
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10450
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10461
AssertEx
.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10462
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10466
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10467
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10504
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10563
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10568
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10570
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10571
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10578
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10579
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10583
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10584
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10595
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
10596
AssertEx
.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
10651
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10711
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10716
AssertEx
.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10718
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10719
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10726
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10727
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10731
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10732
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10743
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
10744
AssertEx
.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
10801
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10981
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10986
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
10988
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10989
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10996
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10997
AssertEx
.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
11001
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11002
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11013
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
11014
AssertEx
.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
11067
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11107
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11109
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11110
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11114
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11115
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11119
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11120
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11124
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11125
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11131
AssertEx
.Equal("((System.Int32, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11132
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11136
AssertEx
.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
11137
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11141
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
11142
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11191
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11193
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11194
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11198
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11199
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11203
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11204
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11208
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11209
AssertEx
.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11215
AssertEx
.Equal("(C2, System.Int32)", typeInfo.Type.ToTestDisplayString());
11216
AssertEx
.Equal("(C2, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11220
AssertEx
.Equal("C2", typeInfo.Type.ToTestDisplayString());
11221
AssertEx
.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
11269
AssertEx
.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11271
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11272
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11276
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11277
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11281
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11282
AssertEx
.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11323
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11327
AssertEx
.Equal(@"i1.Test(""name"", value)", call.ToString());
11329
AssertEx
.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11331
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11332
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11335
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11376
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11380
AssertEx
.Equal(@"i1.Test(""name"", value)", call.ToString());
11382
AssertEx
.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11384
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11385
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11388
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11456
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
11458
AssertEx
.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
11460
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11461
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11464
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11500
AssertEx
.Equal(@"i1(""name"", value)", call.ToString());
11502
AssertEx
.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11504
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11505
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11508
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11541
AssertEx
.Equal(@"Test(""name"", d)", call.ToString());
11543
AssertEx
.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
11545
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11546
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11549
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11590
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11595
AssertEx
.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11597
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11598
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11601
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11642
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11647
AssertEx
.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11649
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11650
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11653
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
11687
AssertEx
.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11689
AssertEx
.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11690
AssertEx
.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11693
AssertEx
.Equal("dynamic", operation.Type.ToTestDisplayString());
Semantics\FunctionPointerTests.cs (22)
907
AssertEx
.Equal(expectedOriginalType, typeInfo.Type!.ToTestDisplayString());
908
AssertEx
.Equal(expectedConvertedType, typeInfo.ConvertedType!.ToTestDisplayString());
1664
AssertEx
.Equal("void C.M1<System.String>(delegate*<System.String, System.Void> param1, delegate*<System.String, System.Void> param2)",
1697
AssertEx
.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object, System.Void>, System.Void> param1, delegate*<delegate*<System.Object, System.Void>, System.Void> param2)",
1730
AssertEx
.Equal("void C.M1<System.String>(delegate*<delegate*<System.String>, System.Void> param1, delegate*<delegate*<System.String>, System.Void> param2)",
1824
AssertEx
.Equal("void C.M1<System.Object>(delegate*<System.Object> param1, delegate*<System.Object> param2)",
1857
AssertEx
.Equal("void C.M1<System.String>(delegate*<delegate*<System.String, System.Void>> param1, delegate*<delegate*<System.String, System.Void>> param2)",
1890
AssertEx
.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object>> param1, delegate*<delegate*<System.Object>> param2)",
2009
AssertEx
.Equal("void C<D1, D2, D3, D4, D5, D6>.M1(delegate*<ref modopt(A<D6>) A<D4> modopt(A<D5>), ref modopt(A<T3>) A<D1> modopt(A<D2>)> param)",
2058
AssertEx
.Equal("void C.M1<D1, D2, D3, D4, D5, D6>(delegate*<ref modopt(A<D6>) A<D4> modopt(A<D5>), ref modopt(A<T3>) A<D1> modopt(A<D2>)> param)",
2089
AssertEx
.Equal("ptr = M(C.Field)", localSyntax.ToString());
2092
AssertEx
.Equal("delegate* unmanaged<System.Int32>", local.Type.ToTestDisplayString());
2095
AssertEx
.Equal("delegate* unmanaged<System.Int32>", typeInfo.Type.ToTestDisplayString());
2127
AssertEx
.Equal("delegate* unmanaged[Stdcall, Cdecl]<System.Int32 modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvCdecl)>", funcPtrType.ToTestDisplayString());
2128
AssertEx
.SetEqual(new[]
2246
AssertEx
.Equal(expectedTypes, invocationTypes);
2301
AssertEx
.Equal(expectedTypes, invocationTypes);
2376
AssertEx
.Equal(expectedTypes, invocationTypes);
2444
AssertEx
.Equal(expectedTypes, invocationTypes);
2512
AssertEx
.Equal(expectedTypes, invocationTypes);
2611
AssertEx
.Equal(expectedTypes, invocationTypes);
2684
AssertEx
.Equal(expectedTypes, invocationTypes);
Semantics\GenericConstraintsTests.cs (4)
632
AssertEx
.SetEqual(new[] { "System.Enum", "MyEnum" }, constraintTypeNames);
1145
AssertEx
.SetEqual(new[] { "System.Delegate", "D1" }, constraintTypeNames);
1630
AssertEx
.SetEqual(new[] { "System.MulticastDelegate", "D1" }, constraintTypeNames);
1906
AssertEx
.Equal(new string[] { "Enum", "IDisposable" }, typeParameter.ConstraintTypes().Select(type => type.Name));
Semantics\GlobalUsingDirectiveTests.cs (5)
3286
AssertEx
.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees);
3288
AssertEx
.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees);
3291
AssertEx
.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees);
3293
AssertEx
.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees);
3303
AssertEx
.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees);
Semantics\ImportsTests.cs (4)
49
AssertEx
.SetEqual(new[] { "C", "D" }, usingAliases1.Select(a => a.Key));
57
AssertEx
.SetEqual(new[] { "C", "D" }, usingAliases2.Select(a => a.Key));
85
AssertEx
.SetEqual(new[] { "D", "E", "F" }, usingAliases1.Select(a => a.Key));
94
AssertEx
.SetEqual(new[] { "D", "E", "F" }, usingAliases2.Select(a => a.Key));
Semantics\InitOnlyMemberTests.cs (10)
403
AssertEx
.SetEqual(members.ToTestDisplayStrings(),
1459
AssertEx
.Empty(propertyAttributes);
1468
AssertEx
.Empty(getterAttributes);
1472
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
1485
AssertEx
.Empty(setterAttributes);
1489
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes);
1497
AssertEx
.Empty(backingFieldAttributes);
1501
AssertEx
.Equal(
2429
AssertEx
.SetEqual(members.ToTestDisplayStrings(), new[] {
2540
AssertEx
.SetEqual(new[] {
Semantics\InterceptorsTests.cs (6)
6880
AssertEx
.Equal("xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz", locationSpecifier.Data);
6881
AssertEx
.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax());
6889
AssertEx
.Equal("xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz", otherLocation.Data);
6890
AssertEx
.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz")]""", otherLocation.GetInterceptsLocationAttributeSyntax());
7200
AssertEx
.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "jB4qgCy292LkEGCwmD+R6FIAAAA=")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax());
7958
AssertEx
.Equal("System.Span<System.Int32> D.M(this ref S s)", method.ToTestDisplayString());
Semantics\InterpolationTests.cs (45)
4618
AssertEx
.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
6824
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6850
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6882
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6917
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6957
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6992
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7032
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7070
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7110
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7145
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7185
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7220
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7253
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7293
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7333
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7373
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7413
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7448
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7490
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7525
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7567
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7608
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7648
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7716
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7810
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7922
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7988
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8018
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8120
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8262
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8322
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8442
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8680
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8805
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8956
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9067
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9134
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9190
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9306
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9422
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9547
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9808
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9883
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
11941
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\LambdaTests.cs (6)
3621
AssertEx
.Equal(expectedAttributes, pairs.Select(p => getAttributesInternal(p.Item1, p.Item2)));
3622
AssertEx
.Equal(expectedAttributes, pairs.Select(p => getAttributesPublic(p.Item1, p.Item2)));
3905
AssertEx
.Equal(expectedAttributes, actualAttributes);
7013
AssertEx
.Equal("System.Action", model.GetTypeInfo(action).Type.ToTestDisplayString());
8444
AssertEx
.Equal("TResult <>f__AnonymousDelegate0<T1, TResult>.Invoke(params T1[] arg)", lam1.DelegateInvokeMethod.ToTestDisplayString());
8455
AssertEx
.Equal("TResult <>f__AnonymousDelegate1<T1, T2, TResult>.Invoke(T1 arg1, params T2[] arg2)", lam3.DelegateInvokeMethod.ToTestDisplayString());
Semantics\LocalFunctionTests.cs (2)
7049
AssertEx
.Equal(expectedSymbols, actualSymbols);
7107
AssertEx
.Equal(expectedSymbols, actualSymbols);
Semantics\LookupPositionTests.cs (2)
2302
AssertEx
.SetEqual(new[] { "default", "case int i:", "label1" }, symbols.Select(s => s.ToTestDisplayString()));
3130
AssertEx
.Equal(expectedSymbols, actualSymbols,
Semantics\NameOfTests.cs (2)
1082
AssertEx
.SetEqual(
1246
AssertEx
.SetEqual(
Semantics\NativeIntegerTests.cs (17)
305
AssertEx
.Equal(nativeIntegerMembers.SelectAsArray(m => m.Name), nativeIntegerMemberNames);
309
AssertEx
.Equal(expectedMembers, actualMembers);
414
AssertEx
.Equal(nativeIntegerMembers.SelectAsArray(m => m.Name), nativeIntegerMemberNames);
1799
AssertEx
.Equal(expectedLocals, actualLocals);
1820
AssertEx
.Equal(expectedMembers, actualMembers);
1985
AssertEx
.Equal(expectedMembers, actualMembers);
2149
AssertEx
.Equal(expectedMembers, actualMembers);
2248
AssertEx
.Equal(expectedMembers, actualMembers);
2354
AssertEx
.Equal(expectedLocals, actualLocals);
2373
AssertEx
.Equal(expectedMembers, actualMembers);
2474
AssertEx
.Equal(expectedLocals, actualLocals);
2501
AssertEx
.Equal(expectedMembers, actualMembers);
2650
AssertEx
.Equal(expectedMembers, actualMembers);
2751
AssertEx
.Equal(expectedMembers, actualMembers);
2902
AssertEx
.Equal(expectedMembers, actualMembers);
6071
AssertEx
.Equal(expectedOperators, actualOperators);
6130
AssertEx
.Equal(expectedOperators, actualOperators);
Semantics\NonTrailingNamedArgumentsTests.cs (1)
427
AssertEx
.Equal(new[] { "void C.M(System.Int32 a, System.Int32 b, [System.Int32 c = 1])" },
Semantics\NullableContextTests.cs (36)
211
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
260
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
319
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
357
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
396
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
431
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
727
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
728
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
987
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
988
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1068
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1069
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1152
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1153
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1211
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1212
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1302
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1303
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1359
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1360
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1455
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
1495
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1496
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1531
AssertEx
.Equal(new[] { "= null", "= null", "F2" }, actualAnalyzedKeys);
1617
AssertEx
.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
1741
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1742
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1784
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1785
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1846
AssertEx
.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1847
AssertEx
.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1884
AssertEx
.Equal(new[] { "A(A.F1 = null)" }, actualAnalyzedKeys);
1939
AssertEx
.Equal(new[] { expectedAnalyzedKey }, actualAnalyzedKeys);
1975
AssertEx
.Equal(new[] { "o1" }, actualAnalyzedKeys);
2016
AssertEx
.Equal(new[] { "F2", "F3" }, actualAnalyzedKeys);
2055
AssertEx
.Equal(new[] { "P2", "P3" }, actualAnalyzedKeys);
Semantics\NullableReferenceTypesTests.cs (111)
13512
AssertEx
.Equal("S?[]", model.GetTypeInfo(returnStatement.Expression).Type.ToTestDisplayString());
30175
AssertEx
.Empty(copenAttributes);
30179
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
30186
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, propertyAttributes);
30190
AssertEx
.Empty(propertyAttributes);
30197
AssertEx
.Empty(getterAttributes);
30201
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
30208
AssertEx
.Empty(getterReturnAttributes);
30212
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, getterReturnAttributes);
30219
AssertEx
.Empty(setterAttributes);
30223
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes.Select(a => a.ToString()));
30228
AssertEx
.Empty(setterReturnAttributes);
30278
AssertEx
.Empty(copenAttributes);
30282
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
30289
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
30293
AssertEx
.Empty(propertyAttributes);
30300
AssertEx
.Empty(getterAttributes);
30304
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
30311
AssertEx
.Empty(getterReturnAttributes);
30315
AssertEx
.Equal(new[] {
30802
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
30806
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
40789
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
40793
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
40963
AssertEx
.Empty(copenAttributes);
40967
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
40974
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, propertyAttributes);
40978
AssertEx
.Empty(propertyAttributes);
40983
AssertEx
.Empty(setterAttributes);
40989
AssertEx
.Empty(setterValueAttributes);
40993
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, setterValueAttributes);
40998
AssertEx
.Empty(setterReturnAttributes);
41024
AssertEx
.Empty(copenAttributes);
41028
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
41035
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
41039
AssertEx
.Empty(propertyAttributes);
41044
AssertEx
.Empty(setterAttributes);
41050
AssertEx
.Empty(setterValueAttributes);
41054
AssertEx
.Equal(new[] {
44644
AssertEx
.Empty(copenAttributes);
44648
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
44655
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
44659
AssertEx
.Empty(propertyAttributes);
44666
AssertEx
.Empty(setterAttributes);
44670
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes);
44677
AssertEx
.Empty(setterValueAttributes);
44681
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, setterValueAttributes);
44893
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
44897
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
47981
AssertEx
.Empty(copenAttributes);
47985
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
47992
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
47996
AssertEx
.Empty(propertyAttributes);
48005
AssertEx
.Empty(getterReturnAttributes);
48009
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, getterReturnAttributes);
48093
AssertEx
.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
48097
AssertEx
.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
111714
AssertEx
.Equal(expectedTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
111779
AssertEx
.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
111832
AssertEx
.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
116598
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, actual);
126918
AssertEx
.Equal<NullableAnnotation>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableAnnotation.{na}", "{0,-32:G}", size);
126923
AssertEx
.Equal<NullableFlowState>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableFlowState.{na}", "{0,-32:G}", size);
138242
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138249
AssertEx
.Equal("I<T>", interfaces[0].ToTestDisplayString(includeNonNullable: true));
138251
AssertEx
.Equal("I<T>", interfaces[1].ToTestDisplayString(includeNonNullable: true));
138257
AssertEx
.Equal("I<T>", i.ToTestDisplayString(includeNonNullable: true));
138286
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138290
AssertEx
.Equal("I<T, T>", i.ToTestDisplayString(includeNonNullable: true));
138326
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138330
AssertEx
.Equal("I<T, System.Object?>", i.ToTestDisplayString(includeNonNullable: true));
138334
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138338
AssertEx
.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true));
138374
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138378
AssertEx
.Equal("I<T, System.Object>", i.ToTestDisplayString(includeNonNullable: true));
138382
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138386
AssertEx
.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true));
138411
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138415
AssertEx
.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
138441
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138445
AssertEx
.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
138471
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138475
AssertEx
.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
138499
AssertEx
.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
138503
AssertEx
.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
157922
AssertEx
.Equal(new string[] { "I<dynamic>", "I2<object>" },
157924
AssertEx
.Equal(new string[] { "I<dynamic>", "I2<object>", "I<object>" },
157956
AssertEx
.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>" },
157958
AssertEx
.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>", "I<(int notA, int notB)>" },
157994
AssertEx
.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>" },
157996
AssertEx
.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>", "I<(object notA, object notB)>" },
158022
AssertEx
.Equal(new string[] { "I<object>", "I2<object>" },
158024
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158054
AssertEx
.Equal(new string[] { "I<object>", "I2<object>" },
158056
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158223
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158225
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158264
AssertEx
.Equal(new string[] { "I<object>", "I2<object>" },
158266
AssertEx
.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
158304
AssertEx
.Equal(new string[] { "I<object>", "I2<object>" },
158306
AssertEx
.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
158518
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158520
AssertEx
.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
158560
AssertEx
.Equal(new string[] { "I2<object>", "I<object>" },
158562
AssertEx
.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
158641
AssertEx
.Equal(new string[] { "I<object?>", "I2<object>" },
158643
AssertEx
.Equal(new string[] { "I<object?>", "I2<object>", "I<object!>" },
158673
AssertEx
.Equal(new string[] { "I<object?>", "I2<object>" },
158675
AssertEx
.Equal(new string[] { "I<object?>", "I2<object>", "I<object>" },
158707
AssertEx
.Equal(new string[] { "I<object?>", "I2<object!>" },
158709
AssertEx
.Equal(new string[] { "I<object?>", "I2<object!>", "I<object!>" },
Semantics\ObjectAndCollectionInitializerTests.cs (22)
4229
AssertEx
.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
4231
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4232
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4235
AssertEx
.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString());
4240
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4241
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4244
AssertEx
.Equal("System.Int32", operation.Target.Type.ToTestDisplayString());
4245
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
4246
AssertEx
.Equal("System.Int32", operation.Type.ToTestDisplayString());
4250
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4251
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4283
AssertEx
.Equal("ref System.Int32 C.P { get; }", symbolInfo.Symbol.ToTestDisplayString());
4285
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4286
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4289
AssertEx
.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString());
4294
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4295
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4298
AssertEx
.Equal("System.Int32", operation.Target.Type.ToTestDisplayString());
4299
AssertEx
.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
4300
AssertEx
.Equal("System.Int32", operation.Type.ToTestDisplayString());
4304
AssertEx
.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4305
AssertEx
.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
Semantics\OperatorTests.cs (1)
3217
AssertEx
.Equal(expected, results);
Semantics\OverloadResolutionTestBase.cs (1)
53
AssertEx
.EqualOrDiff(expected, results);
Semantics\RawInterpolationTests_Handler.cs (41)
2919
AssertEx
.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
5080
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5108
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5145
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5185
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5232
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5272
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5319
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5362
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5409
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5449
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5496
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5536
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5583
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5630
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5677
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5717
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5766
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5806
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5855
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5901
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5948
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5978
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6104
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6173
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6203
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6437
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6499
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6621
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6861
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6988
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7141
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7254
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7325
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7385
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7503
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7621
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7749
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8021
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8099
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8526
AssertEx
.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\RecordStructTests.cs (21)
828
AssertEx
.Equal(new[] {
1351
AssertEx
.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1993
AssertEx
.Equal(expectedMembers,
2016
AssertEx
.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
2066
AssertEx
.Equal(expectedMembers, actualMembers);
2749
AssertEx
.Equal(expectedMembers, actualMembers);
2773
AssertEx
.Equal(expectedMembers, actualMembers);
3217
AssertEx
.Equal(
3292
AssertEx
.Equal(
3340
AssertEx
.Equal(
3391
AssertEx
.Equal(
3770
AssertEx
.Equal(new[] {
4152
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4153
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
4174
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4175
AssertEx
.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
5101
AssertEx
.SetEqual(new[] { "System.Boolean RecordB.op_Equality(RecordB left, RecordB right)" },
10501
AssertEx
.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
10504
AssertEx
.SetEqual(new[] { "A" }, getAttributeStrings(field1));
10507
AssertEx
.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
10651
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, SyntaxFactory.TypeDeclaration(SyntaxKind.RecordStructDeclaration, "Point").NormalizeWhitespace().ToString());
Semantics\RefFieldTests.cs (3)
2030
AssertEx
.Equal(expectedMembers, fieldMembers.ToTestDisplayStrings());
2038
AssertEx
.Equal(expectedReferences, fieldReferences.ToTestDisplayStrings());
2270
AssertEx
.Equal(actualFields, expectedFields);
Semantics\ScriptSemanticsTests.cs (2)
420
AssertEx
.SetEqual(new[] { "<Initialize>", "G", ".ctor", "<Main>" }, methods.Select(m => m.Name));
426
AssertEx
.SetEqual(new[] { "F", ".ctor" }, methods.Select(m => m.Name));
SourceGeneration\GeneratorDriverTests.cs (4)
727
AssertEx
.Equal(results.Diagnostics, fullDiagnostics);
2163
AssertEx
.EqualOrDiff(generatedContent, generatedTree.ToString());
2224
AssertEx
.EqualOrDiff(generatedContent[i], trees[i].ToString());
2367
AssertEx
.EqualOrDiff(generatedContent[i], trees[i].ToString());
SourceGeneration\StateTableTests.cs (1)
1335
AssertEx
.Equal(expected[index].Item, entry.Item);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (311)
Compilation\CompilationAPITests.cs (28)
2690
AssertEx
.Equal(Array.Empty<CodeAnalysis.NullableAnnotation>(), GetAnonymousTypeNullableAnnotations(type));
2703
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, GetAnonymousTypeNullableAnnotations(type));
2709
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated }, GetAnonymousTypeNullableAnnotations(type));
2745
AssertEx
.Equal(display, result);
2763
AssertEx
.Equal(display, result);
2782
AssertEx
.Equal("int.operator +(int, int)", result);
2941
AssertEx
.Equal(display, result);
2953
AssertEx
.Equal(display, result);
2972
AssertEx
.Equal("int.operator +(int)", result);
3039
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3040
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3047
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3048
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3074
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3075
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3082
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3083
AssertEx
.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3428
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3453
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3477
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3479
AssertEx
.Equal("N.C<T>", types[1].ToTestDisplayString());
3505
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3534
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3535
AssertEx
.Equal("N.C<T>", types[1].ToTestDisplayString());
3572
AssertEx
.Equal("N.C<T>", types[0].ToTestDisplayString());
3574
AssertEx
.Equal("N.C<T>", types[1].ToTestDisplayString());
3575
AssertEx
.Equal("N.C<T>", types[2].ToTestDisplayString());
3614
AssertEx
.Equal(types.Select(t => t.ToTestDisplayString()), new[] { "C", "C", "C" });
Compilation\ReferenceManagerTests.cs (5)
387
AssertEx
.SetEqual(new[] { $"{RuntimeCorLibName.Name} {RuntimeCorLibName.Version.ToString(2)}", "RefLibV1 1.0", "Lib 2.0", "X 2.0" }, reader.DumpAssemblyReferences());
783
AssertEx
.SetEqual(new[] { "goo", "global" }, c.ExternAliases);
790
AssertEx
.SetEqual(new[] { "goo", "bar" }, c.ExternAliases);
1739
AssertEx
.SetEqual(new[] { "mscorlib 4.0" }, reader.DumpAssemblyReferences());
1797
AssertEx
.Equal(moduleReferences1, moduleReferences2);
Compilation\UsedAssembliesTests.cs (4)
98
AssertEx
.Equal(expected, used.Skip(1));
102
AssertEx
.Equal(expected, used);
283
AssertEx
.Equal(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Assembly), comp.GetUsedAssemblyReferences());
318
AssertEx
.Equal(result, currentResult);
DocumentationComments\CrefTests.cs (26)
305
AssertEx
.All(crefSyntaxes, cref => model.GetSymbolInfo(cref).Symbol == null);
937
AssertEx
.Equal(expected, actual);
1033
AssertEx
.Equal(expected, actual);
1132
AssertEx
.Equal(expected, actual);
1215
AssertEx
.SetEqual(expectedCandidates.AsEnumerable(), actualCandidates.ToArray());
1389
AssertEx
.SetEqual(expectedCandidates, actualCandidates.ToArray());
1558
AssertEx
.None(actualTypeParameters, p => p.IsFromCompilation(compilation));
1559
AssertEx
.None(actualTypeParameters, p => p.IsImplicitlyDeclared);
1560
AssertEx
.All(actualTypeParameters, p => p.Variance == VarianceKind.None);
1561
AssertEx
.All(actualTypeParameters, p => p.Locations.Single() == p.DeclaringSyntaxReferences.Single().GetLocation());
1562
AssertEx
.None(actualTypeParameters, p => p.HasValueTypeConstraint);
1563
AssertEx
.None(actualTypeParameters, p => p.HasReferenceTypeConstraint);
1564
AssertEx
.None(actualTypeParameters, p => p.HasConstructorConstraint);
1565
AssertEx
.All(actualTypeParameters, p => p.ContainingSymbol == null);
1566
AssertEx
.All(actualTypeParameters, p => p.GetConstraintTypes(null).Length == 0);
1567
AssertEx
.All(actualTypeParameters, p => p.GetInterfaces(null).Length == 0);
1639
AssertEx
.Equal(expectedOriginalParameterTypes.Select(t => t.Ordinal), actualParameterTypes.Select(t => t.Ordinal));
1640
AssertEx
.None(expectedOriginalParameterTypes.Zip(actualParameterTypes, object.Equals), x => x);
1670
AssertEx
.All(actualWinner.ContainingType.TypeArguments(), typeParam => TypeSymbol.Equals(typeParam, actualParameterType, TypeCompareKind.ConsiderEverything2)); //CONSIDER: Would be different in Dev11.
2012
AssertEx
.SetEqual(actualCandidates.Select(sym => sym.ContainingAssembly.Name), "Lib1", "Lib2");
2018
AssertEx
.SetEqual(info.CandidateSymbols.Select(sym => sym.ContainingAssembly.Name), "Lib1", "Lib2");
3380
AssertEx
.SetEqual(model.LookupSymbols(position).Select(SymbolExtensions.ToTestDisplayString),
4629
AssertEx
.None(GetCrefSyntaxes(compilation), x => true);
5090
AssertEx
.Equal(expectedSymbols, actualSymbols);
5678
AssertEx
.None(cref.DescendantTokens(descendIntoTrivia: true), token => token.ValueText == null);
5693
AssertEx
.None(cref.DescendantTokens(descendIntoTrivia: true), token => token.ValueText == null);
DocumentationComments\DocumentationCommentCompilerTests.cs (38)
930
AssertEx
.AssertLinesEqual(expected: """
941
AssertEx
.AssertLinesEqual("""
990
AssertEx
.Equal(expected, actualA);
1040
AssertEx
.Equal(expected, actualA);
1091
AssertEx
.Equal(expected, actualA);
1145
AssertEx
.Equal(expected, actualA);
1193
AssertEx
.Equal(expected, actualA);
1249
AssertEx
.Equal(expected, actualA);
1312
AssertEx
.Equal(expected, actual);
1375
AssertEx
.Equal(expected, actual);
1438
AssertEx
.Equal(expected, actual);
1495
AssertEx
.Equal(expected, actual);
1516
AssertEx
.AssertLinesEqual(expected: """
1527
AssertEx
.AssertLinesEqual("""
1577
AssertEx
.Equal(expected, actualA);
1628
AssertEx
.Equal(expected, actualA);
1654
AssertEx
.AssertLinesEqual(expected: """
1665
AssertEx
.AssertLinesEqual("""
1716
AssertEx
.Equal(expected, actualA);
1768
AssertEx
.Equal(expected, actualA);
1823
AssertEx
.Equal(expected, actualA);
1872
AssertEx
.Equal(expected, actualA);
1929
AssertEx
.Equal(expected, actualA);
1993
AssertEx
.Equal(expected, actual);
2057
AssertEx
.Equal(expected, actual);
2121
AssertEx
.Equal(expected, actual);
2179
AssertEx
.Equal(expected, actual);
6924
AssertEx
.None(module.GetReferencedAssemblies(), id => id.Name.Contains("GeneralPia"));
7658
AssertEx
.Equal(expected, actual);
7687
AssertEx
.Equal(expected, actual);
7735
AssertEx
.Equal(expected, actual);
7779
AssertEx
.Equal(expected, actual);
7819
AssertEx
.Equal(expected, actual);
7856
AssertEx
.Equal(expected, actual);
7887
AssertEx
.Equal(expected, actual);
7931
AssertEx
.Equal(expected, actual);
7975
AssertEx
.Equal(expected, actual);
8022
AssertEx
.Equal(expected, actual);
DocumentationComments\DocumentationModeTests.cs (1)
405
AssertEx
.All(modes, mode => mode.IsValid());
DocumentationComments\ParameterTests.cs (34)
335
AssertEx
.SetEqual(parameters, info.CandidateSymbols);
358
AssertEx
.SetEqual(typeParameters, info.CandidateSymbols);
411
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
412
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
413
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
414
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
438
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
439
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
440
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
441
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
465
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
466
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
467
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
468
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
492
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
493
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
494
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
495
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
519
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
520
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
521
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
522
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
546
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
547
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
548
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
549
AssertEx
.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
574
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
575
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
576
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
577
AssertEx
.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
602
AssertEx
.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
603
AssertEx
.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
604
AssertEx
.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
605
AssertEx
.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
SymbolDisplay\SymbolDisplayTests.cs (3)
3629
AssertEx
.Equal(expectedText, actualParts.ToDisplayString());
3632
AssertEx
.Equal(expectedKinds, actualParts.Select(p => p.Kind), itemInspector: p => $" SymbolDisplayPartKind.{p}");
9038
AssertEx
.Equal(
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
716
AssertEx
.SetEqual(interface3PropertyOverriddenOrHidden.HiddenMembers, interface1Property, interface2Property);
720
AssertEx
.SetEqual(interface3GetterOverriddenOrHidden.HiddenMembers, interface1Getter, interface2Getter);
Symbols\CompilationCreationTests.cs (1)
2709
AssertEx
.Equal(new[]
Symbols\ConversionTests.cs (2)
2074
AssertEx
.SetEqual(castInfo.CandidateSymbols, conversionSymbols);
2081
AssertEx
.SetEqual(elementConversion.OriginalUserDefinedConversions.GetPublicSymbols(), conversionSymbols);
Symbols\CustomModifiersTests.cs (2)
2395
AssertEx
.SetEqual(new[] { "A", "B", ".ctor", "I.A", "Main", ".ctor" }, new[] { reader }.GetStrings(reader.GetMethodDefNames()));
2431
AssertEx
.SetEqual(new[] { ".ctor", "F", "I.F", "Main" }, new[] { reader }.GetStrings(reader.GetMethodDefNames()));
Symbols\FunctionPointerTypeSymbolTests.cs (6)
1557
AssertEx
.Equal(expectedMessage, ptr.EnsureCSharpSymbolOrNull(nameof(ptr)).GetUseSiteDiagnostic().ToString());
1639
AssertEx
.Equal($"delegate* unmanaged{expectedText}<System.String>", ptr.ToTestDisplayString());
1641
AssertEx
.Equal($"delegate* unmanaged{expectedText}<ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString());
1654
AssertEx
.Equal("delegate* unmanaged[Cdecl, Stdcall]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", ptr.ToTestDisplayString());
1656
AssertEx
.Equal("delegate* unmanaged[Cdecl, Stdcall]<ref readonly modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall) modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString());
1659
AssertEx
.Equal("delegate* unmanaged[Cdecl]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl)>", ptr.ToTestDisplayString());
Symbols\IndexerTests.cs (1)
2532
AssertEx
.Equal(expected, actual, itemInspector: s => string.Format("\"{0}\"", s));
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (2)
807
AssertEx
.SetEqual(overriddenOrHidden1.HiddenMembers, baseMethod, baseProperty);
813
AssertEx
.SetEqual(overriddenOrHidden2.HiddenMembers, baseMethod, baseProperty);
Symbols\Metadata\MetadataMemberTests.cs (1)
486
AssertEx
.None(type.GetMembersUnordered(), symbol => symbol.Name.StartsWith("_VtblGap", StringComparison.Ordinal));
Symbols\Metadata\PE\LoadingEvents.cs (2)
587
AssertEx
.All(events, e => e.HasAssociatedField);
591
AssertEx
.All(events, e => e.AssociatedField == field);
Symbols\OverriddenOrHiddenMembersTests.cs (12)
276
AssertEx
.SetEqual(derivedInterface1MethodOverriddenOrHidden.HiddenMembers, baseInterface1Method, baseInterface2Method);
280
AssertEx
.SetEqual(derivedInterface1PropertyOverriddenOrHidden.HiddenMembers, baseInterface1Property, baseInterface2Property);
284
AssertEx
.SetEqual(derivedInterface2MethodOverriddenOrHidden.HiddenMembers, baseInterface1Method, baseInterface2Method);
288
AssertEx
.SetEqual(derivedInterface2PropertyOverriddenOrHidden.HiddenMembers, baseInterface1Property, baseInterface2Property);
2920
AssertEx
.All(properties, p =>
2968
AssertEx
.All(properties, p =>
3016
AssertEx
.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3063
AssertEx
.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3110
AssertEx
.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3157
AssertEx
.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3231
AssertEx
.All(properties, p => p.DeclaredAccessibility == Accessibility.ProtectedOrInternal);
3284
AssertEx
.All(events, e =>
Symbols\PartialPropertiesTests.cs (66)
54
AssertEx
.Equal([
62
AssertEx
.Equal([
69
AssertEx
.Equal([
76
AssertEx
.Equal([
84
AssertEx
.Equal([
126
AssertEx
.Equal([
134
AssertEx
.Equal([
141
AssertEx
.Equal([
148
AssertEx
.Equal([
156
AssertEx
.Equal([
915
AssertEx
.Equal([
990
AssertEx
.Equal([
1067
AssertEx
.Equal([
1075
AssertEx
.Equal([
1134
AssertEx
.Equal([
1145
AssertEx
.Equal([
1181
AssertEx
.Equal([
1192
AssertEx
.Equal([
1769
AssertEx
.Equal("System.String C.this[System.String? x] { get; set; }", indexers[0].ToTestDisplayString());
1770
AssertEx
.Equal("System.String? C.this[System.String x, System.Boolean ignored] { get; set; }", indexers[1].ToTestDisplayString());
1771
AssertEx
.Equal("System.String C.this[System.Boolean ignored] { get; }", indexers[2].ToTestDisplayString());
1772
AssertEx
.Equal("System.String? C.this[System.Int32 ignored] { get; }", indexers[3].ToTestDisplayString());
1843
AssertEx
.Equal([
1947
AssertEx
.Equal([
2009
AssertEx
.Equal([
3323
AssertEx
.Equal([declAttribute, implAttribute], property.GetAttributes().ToStrings());
3324
AssertEx
.Equal([declAttribute, implAttribute], property.PartialImplementationPart!.GetAttributes().ToStrings());
3357
AssertEx
.Equal([declAttribute, implAttribute], property.GetAttributes().ToStrings());
3360
AssertEx
.Equal([declAttribute, implAttribute], ((SourcePropertySymbol)property).PartialImplementationPart!.GetAttributes().ToStrings());
3393
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], property.GetAttributes().ToStrings());
3394
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], property.PartialImplementationPart!.GetAttributes().ToStrings());
3433
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.GetAttributes().ToStrings());
3434
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.PartialImplementationPart!.GetAttributes().ToStrings());
3482
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.GetAttributes().ToStrings());
3483
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.PartialImplementationPart!.GetAttributes().ToStrings());
3523
AssertEx
.Equal([], accessor.GetAttributes().ToStrings());
3524
AssertEx
.Equal([], accessor.PartialImplementationPart.GetAttributes().ToStrings());
3525
AssertEx
.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], accessor.Parameters.Single().GetAttributes().ToStrings());
3526
AssertEx
.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], accessor.PartialImplementationPart!.Parameters.Single().GetAttributes().ToStrings());
3556
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], indexer.GetAttributes().ToStrings());
3557
AssertEx
.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], indexer.PartialImplementationPart!.GetAttributes().ToStrings());
3598
AssertEx
.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], param.GetAttributes().ToStrings());
3650
AssertEx
.Equal(["Attr", "Attr"], property.GetAttributes().ToStrings());
3651
AssertEx
.Equal(["Attr", "Attr"], property.GetMethod!.GetAttributes().ToStrings());
3652
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.GetAttributes().ToStrings());
3653
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.Parameters.Single().GetAttributes().ToStrings());
3712
AssertEx
.Equal(["Attr", "Attr"], property.GetAttributes().ToStrings());
3713
AssertEx
.Equal(["Attr", "Attr"], property.GetMethod!.GetAttributes().ToStrings());
3714
AssertEx
.Equal(["Attr", "Attr"], property.GetMethod!.Parameters[0].GetAttributes().ToStrings());
3715
AssertEx
.Equal(["Attr", "Attr"], property.GetMethod!.Parameters[1].GetAttributes().ToStrings());
3716
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.GetAttributes().ToStrings());
3717
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[0].GetAttributes().ToStrings());
3718
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[1].GetAttributes().ToStrings());
3719
AssertEx
.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[2].GetAttributes().ToStrings());
3752
AssertEx
.Equal([], property.GetAttributes().ToStrings());
3790
AssertEx
.Equal([
3858
AssertEx
.Equal([
3942
AssertEx
.Equal([
4031
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4074
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4110
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4152
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4188
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4230
AssertEx
.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4281
AssertEx
.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("x")"""], indexer.Parameters[1].GetAttributes().ToStrings());
4338
AssertEx
.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("x")"""], indexer.Parameters[1].GetAttributes().ToStrings());
Symbols\RequiredMembersTests.cs (17)
32
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedAttributeLayout, actualAttributes);
40
AssertEx
.NotNull(member, $"Member {memberPath} was not found");
43
Assert.All(member.GetAttributes(), attr =>
AssertEx
.NotEqual("System.Runtime.CompilerServices.RequiredMemberAttribute", attr.AttributeClass.ToTestDisplayString()));
3949
AssertEx
.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
3978
AssertEx
.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
4008
AssertEx
.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
4038
AssertEx
.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
5848
AssertEx
.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()",
5910
AssertEx
.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()",
6196
AssertEx
.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString());
6199
AssertEx
.Equal(expectedReason, (string)attrArgs[0].ValueInternal!);
6242
AssertEx
.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString());
6245
AssertEx
.Equal(expectedReason, (string)attrArgs[0].ValueInternal!);
6464
AssertEx
.NotNull(c);
6468
AssertEx
.NotNull(d);
6575
AssertEx
.Empty(u_c.AllRequiredMembers);
6960
AssertEx
.Equal(new[] { "AnotherField", "Item1", "Item2", "Property" }, tupleType.AllRequiredMembers
Symbols\Source\CustomModifierCopyTests.cs (19)
1008
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1011
AssertEx
.Equal("(object a, object b) I.M((object c, object d) x)",
1018
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1021
AssertEx
.Equal("(object a, object b) C.M((object c, object d) x)",
1043
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1067
AssertEx
.Equal("(object, object) C.M((object c, object d) x)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1084
AssertEx
.Equal("(object a, object b) C.M((object c, object d) x)", classMethod4.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1138
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> I.P { get; set; }",
1140
AssertEx
.Equal("(object a, object b) I.P", interfaceProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1141
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
1144
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> C.I.P { get; set; }",
1146
AssertEx
.Equal("(object a, object b) C.P", classProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1284
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1287
AssertEx
.Equal("(object a, object b) Base.M((object c, object d) x)",
1307
AssertEx
.Equal("(object a, object b) C.M((object c, object d) y)", classMethod1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1335
AssertEx
.Equal("(object, object) C.M((object c, object d) y)", classMethod2.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1336
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
1357
AssertEx
.Equal("(object a, object b) C.M((object, object) y)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1358
AssertEx
.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
Symbols\Source\FileModifierTests.cs (20)
221
AssertEx
.Equal("<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__C", symbol.MetadataName);
271
AssertEx
.Equal("<file2>F66382B88D8E28FDD21CEADA0DE847F8B00DA1324042DD28F8FFC58C454BD6188__C", symbol.MetadataName);
746
AssertEx
.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", c.MetadataName);
753
AssertEx
.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", classC.MetadataName);
779
AssertEx
.Equal(expectedMetadataName, c.MetadataName);
785
AssertEx
.Equal(expectedMetadataName, expectedSymbol.MetadataName);
810
AssertEx
.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", c.MetadataName);
816
AssertEx
.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", expectedSymbol.MetadataName);
892
AssertEx
.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName);
939
AssertEx
.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", member.MetadataName);
974
AssertEx
.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C`1", classC.MetadataName);
1004
AssertEx
.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName);
1154
AssertEx
.Equal("<My_File>FA818559F9E8E4AF40425A1819866C71357DE9017B4B7EFE1D34D9F48C0539B6E__C", c.MetadataName);
1214
AssertEx
.Equal(firstMetadataName, expectedSymbol.MetadataName);
1222
AssertEx
.Equal(secondMetadataName, expectedSymbol.MetadataName);
4238
AssertEx
.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", sourceMember.MetadataName);
4415
AssertEx
.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4424
AssertEx
.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4433
AssertEx
.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4482
AssertEx
.Equal(
Symbols\Source\NullablePublicAPITests.cs (15)
507
AssertEx
.Equal(expectedAnnotations, actualAnnotations);
966
AssertEx
.Equal(expectedAnnotations, actualAnnotations);
1024
AssertEx
.Equal(expectedAnnotations, actualAnnotations);
1066
AssertEx
.Equal(expectedNullabilities, members.Select(nullabilityFunc));
4789
AssertEx
.Equal(expectedAnnotations, actualAnnotations);
4936
AssertEx
.Equal("void M()", model.GetDeclaredSymbol(localFunction).ToTestDisplayString());
4968
AssertEx
.Equal("(System.Object, System.Int32 a)", operation.Type.ToTestDisplayString());
5011
AssertEx
.Equal("(System.String a, System.String b)", model.GetTypeInfo(tupleLiteral).Type.ToTestDisplayString(includeNonNullable: false));
5050
AssertEx
.Equal("C..ctor(System.Int32 i)", model.GetSymbolInfo(constructor).CandidateSymbols[0].ToTestDisplayString());
5053
AssertEx
.Equal("_ = s", assignmentsInLambda[0].ToString());
5054
AssertEx
.Equal("_ = s", assignmentsInLambda[2].ToString());
5055
AssertEx
.Equal("System.String?", model.GetTypeInfo(assignmentsInLambda[0].Right).Type.ToTestDisplayString(includeNonNullable: true));
5056
AssertEx
.Equal("System.String!", model.GetTypeInfo(assignmentsInLambda[2].Right).Type.ToTestDisplayString(includeNonNullable: true));
5068
AssertEx
.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true));
5072
AssertEx
.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true));
Symbols\Source\PropertyTests.cs (1)
2768
AssertEx
.SetEqual(actualMembers.Select(s => s.Name), expectedMembers);
Symbols\Source\RecordTests.cs (1)
1076
AssertEx
.Equal(new[] {
Symbols\Source\UsingAliasTests.cs (1)
276
AssertEx
.Equal(expected, usingAliasType.ToDisplayString(SymbolDisplayFormat.TestFormat));
Symbols\SymbolExtensionTests.cs (1)
254
AssertEx
.Equal("System.String C1<System.Int32 modopt(C2<G>)>.Method()", method.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (37)
Diagnostics\DiagnosticTest.cs (1)
2483
AssertEx
.Equal(CreateCompilation(tree).GetDiagnostics(), CreateCompilation(tree).GetDiagnostics());
Diagnostics\LineSpanDirectiveTests.cs (17)
50
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
62
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
96
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
111
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
153
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
192
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
204
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
243
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
262
AssertEx
.Equal(expectedVisibility, actualVisibility);
274
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
311
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
320
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
363
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
375
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
424
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
437
AssertEx
.Equal(expectedTextSpans, actualTextSpans);
580
AssertEx
.Equal(expectedLineMappings, actualLineMappings);
Diagnostics\LocationsTests.cs (5)
156
AssertEx
.Equal(new[]
220
AssertEx
.Equal(new[]
253
AssertEx
.Equal(new[]
267
AssertEx
.Equal(new[]
287
AssertEx
.Equal(new[]
IncrementalParsing\IncrementalParsingTests.cs (3)
2789
AssertEx
.AreEqual(@"System.Console.WriteLine(false)
2820
AssertEx
.Equal(@"System.Console.WriteLine(true)
2848
AssertEx
.Equal(@"if (false)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (2)
51
AssertEx
.Fail("Unmatched expected: " + expectedEnumerator.Current);
56
AssertEx
.Fail("Unmatched actual: " + expectedEnumerator.Current);
LexicalAndXml\LexicalTests.cs (2)
1159
AssertEx
.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull));
1340
AssertEx
.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull));
LexicalAndXml\SyntaxTokenParserTests.cs (1)
411
AssertEx
.Equal(expectedText.NormalizeLineEndings(), result.Token.ToFullString());
Syntax\FieldAndValueKeywordTests.cs (1)
1285
AssertEx
.Equal(expectedFields, actualFields);
Syntax\SyntaxFactoryTests.cs (4)
125
AssertEx
.Fail("Should have thrown - can't create an IdentifierName token");
151
AssertEx
.Fail("Should have thrown");
162
AssertEx
.Fail("Should have thrown");
173
AssertEx
.Fail("Should have thrown");
Syntax\SyntaxNormalizerTests.cs (1)
3411
AssertEx
.Equal(expected.NormalizeLineEndings(), actual.NormalizeLineEndings());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (11)
CompilationTestUtils.cs (2)
63
AssertEx
.SetEqual(symbols.Select(s => s.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)), descriptions);
482
AssertEx
.Equal(expectedTypes, actualTypes, message: method.ToTestDisplayString());
CSharpTestBase.cs (2)
1382
AssertEx
.Equal(resolvedReferences, used);
1432
AssertEx
.Equal(expectedUsesOfNullable, symbols, itemInspector: s => $"\"{s}\"");
EmitMetadataTestBase.cs (1)
126
AssertEx
.SetEqual(expectedEntries, actualEntries, itemInspector: entry => $@"
FunctionPointerUtilities.cs (6)
145
AssertEx
.Equal(expectedSyntax, syntax.ToString());
157
AssertEx
.Equal(expectedType, semanticInfo.Type.ToTestDisplayString(includeNonNullable: false));
166
AssertEx
.Equal(expectedConvertedType, semanticInfo.ConvertedType.ToTestDisplayString(includeNonNullable: false));
198
AssertEx
.Equal(expectedSymbolCandidates, semanticInfo.MemberGroup.Select(s => s.ToTestDisplayString(includeNonNullable: false)));
219
AssertEx
.Equal(expectedSymbol, semanticInfo.Symbol.ToTestDisplayString(includeNonNullable: false));
226
AssertEx
.Equal(expectedSymbolCandidates, semanticInfo.CandidateSymbols.Select(s => s.ToTestDisplayString(includeNonNullable: false)));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
PdbTests.cs (2)
98
AssertEx
.Equal(new byte[] { 0x12, (byte)'M', (byte)'i', (byte)'c', (byte)'r', (byte)'o' }, pdbStream.GetBuffer().Take(6).ToArray());
99
AssertEx
.Equal(new byte[] { 0x12, (byte)'M', (byte)'Z' }, peStream.GetBuffer().Take(3).ToArray());
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\AddImportsTests.cs (1)
106
AssertEx
.EqualOrDiff(simplifiedText, actualText);
CodeGeneration\SyntaxGeneratorTests.cs (1)
52
AssertEx
.Equal(expectedText, normalized);
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
65
AssertEx
.Equal(expected, actual);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (26)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
89
AssertEx
.EqualOrDiff(result, session.SubjectBuffer.CurrentSnapshot.GetText());
BracePairs\AbstractBracePairsTests.cs (1)
45
AssertEx
.Fail($"Unexpected brace pair: {bracePair}");
Classification\AbstractClassifierTests.cs (1)
68
AssertEx
.Equal(expected.ToImmutableArray(), actualFormatted);
Classification\ClassificationTestHelper.cs (2)
44
AssertEx
.Fail("Unexpected actual classification: {0}", GetText(actualClassificationList[i]));
48
AssertEx
.Fail("Missing classification for: {0}", GetText(expectedClassificationList[i]));
CommentSelection\AbstractToggleCommentTestBase.cs (1)
76
AssertEx
.Equal(expectedSpans, textView.Selection.SelectedSpans.Select(snapshotSpan => TextSpan.FromBounds(snapshotSpan.Start, snapshotSpan.End)));
CompleteStatement\AbstractCompleteStatementTests.cs (1)
124
AssertEx
.EqualOrDiff(expectedCode, view.TextSnapshot.GetText());
Completion\AbstractCompletionProviderTests.cs (5)
223
AssertEx
.None(
240
AssertEx
.Any(items, Predicate);
666
AssertEx
.EqualOrDiff(actualExpectedCode, actualCodeAfterCommit);
971
AssertEx
.Any(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem));
989
AssertEx
.None(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem));
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
165
AssertEx
.Equal(expectedCode, actual);
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
41
AssertEx
.EqualOrDiff(expected, actual.ToString());
Formatting\CoreFormatterTestsBase.cs (1)
234
AssertEx
.EqualOrDiff(expected, actual);
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
136
AssertEx
.Equal(expectedWithoutWhitespace, actualWithoutWhitespace);
767
AssertEx
.NotNull(shutdownTask, "Unexpected shutdown not started");
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
49
AssertEx
.Fail(errorMessage.ToString());
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
43
AssertEx
.EqualOrDiff(
QuickInfo\ToolTipAssert.cs (1)
57
AssertEx
.EqualOrDiff(renderedExpected, renderedActual);
Rename\RenamerTests.cs (2)
98
AssertEx
.SetEqual(endDocument.DocumentFolders, updatedDocument.Folders);
101
AssertEx
.EqualOrDiff(endDocument.Text, (await updatedDocument.GetTextAsync()).ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (3)
220
AssertEx
.Equal(expectedTestItem.Signature, signature.Content);
269
AssertEx
.Fail("Expected signature help items must be provided for EditorBrowsable tests. If there are no expected items, provide an empty IEnumerable rather than null.");
407
AssertEx
.NotNull(items, "Signature help provider returned null for items. Did you forget $$ in the test or is the test otherwise malformed, e.g. quotes not escaped?");
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
54
AssertEx
.Equal(expected, buffer.CurrentSnapshot.GetText());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Utilities\AssertEx.vb (1)
19
Roslyn.Test.Utilities.
AssertEx
.Fail("Wrong token count. Expected '{0}', Actual '{1}', Expected Text: '{2}', Actual Text: '{3}'",
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (33)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (2)
754
AssertEx
.SetEqual(expectedChanges, edits.TextChanges);
776
AssertEx
.Equal(expectedSelectedSpans, textView.Selection.SelectedSpans.Select(snapshotSpan => snapshotSpan.Span));
Completion\FileSystemCompletionHelperTests.cs (1)
19
AssertEx
.Equal(
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
271
AssertEx
.Equal(
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
184
AssertEx
.Equal(
190
AssertEx
.Equal(
EmbeddedLanguages\StackFrame\StackFrameParserTests.Utilities.cs (2)
39
AssertEx
.NotNull(tree);
89
AssertEx
.EqualOrDiff(originalText, tree.Root.ToFullString());
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (1)
129
AssertEx
.NotNull(current);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
145
AssertEx
.EqualOrDiff(expected, actual);
Snippets\RoslynLSPSnippetConvertTests.cs (3)
405
AssertEx
.EqualOrDiff("quux$0", lspSnippetString);
416
AssertEx
.EqualOrDiff("bar quux$0", lspSnippetString);
498
AssertEx
.EqualOrDiff(output, lspSnippetString);
StackTraceExplorer\StackTraceExplorerTests.cs (11)
29
AssertEx
.NotNull(stackFrame);
36
AssertEx
.NotNull(reparsedFrame);
42
AssertEx
.NotNull(definition);
53
AssertEx
.NotNull(expectedSymbol);
59
AssertEx
.SetEqual(expectedDefinition.NameDisplayParts, definition.NameDisplayParts);
60
AssertEx
.SetEqual(expectedDefinition.Properties, definition.Properties);
61
AssertEx
.SetEqual(expectedDefinition.SourceSpans, definition.SourceSpans);
62
AssertEx
.SetEqual(expectedDefinition.Tags, definition.Tags);
803
AssertEx
.SetEqual(result.ParsedFrames, ignoredFrames);
854
AssertEx
.NotNull(frame);
859
AssertEx
.NotNull(definition);
SuggestedActions\SuggestedActionSourceProviderTests.cs (1)
23
AssertEx
.SetEqual(attributes.Select(a => a.Priority), SuggestedActionsSourceProvider.Orderings);
SymbolFinder\DependentTypeFinderTests.cs (4)
492
AssertEx
.SetEqual(immediateDerived.Select(d => d.Name),
500
AssertEx
.SetEqual(transitiveDerived.Select(d => d.Name),
545
AssertEx
.SetEqual(immediateImpls.Select(d => d.Name),
552
AssertEx
.SetEqual(transitiveImpls.Select(d => d.Name),
TextEditor\OpenDocumentTests.cs (1)
51
AssertEx
.SetEqual(documentIds, workspace.CurrentSolution.GetDocumentIdsWithFilePath(FilePath));
Utilities\PatternMatcherTests.cs (2)
118
=> Roslyn.Test.Utilities.
AssertEx
.Equal(parts, BreakIntoWordParts(original));
121
=> Roslyn.Test.Utilities.
AssertEx
.Equal(parts, BreakIntoCharacterParts(original));
Utilities\StackFrameUtils.cs (1)
41
AssertEx
.NotNull(actual);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
FunctionResolverTestBase.cs (1)
31
AssertEx
.Equal(expectedSignatures, actualSignatures);
ParsingTestBase.cs (1)
105
AssertEx
.Equal(
VisualBasicParsingTests.cs (1)
38
AssertEx
.SetEqual(actualKeywordKinds, expectedKeywordKinds);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
33
AssertEx
.Equal(internalValues, externalValues);
34
AssertEx
.Equal(internalNames, externalNames);
Microsoft.CodeAnalysis.Features.Test.Utilities (14)
EditAndContinue\EditAndContinueTestVerifier.cs (9)
214
AssertEx
.Equal(
223
AssertEx
.Equal(
246
AssertEx
.Empty(duplicateNonPartial, "Duplicate non-partial symbols");
265
AssertEx
.SetEqual(expected, actual, message: message, itemSeparator: ",\r\n", itemInspector: d => d.ToString(TryGetResource));
294
AssertEx
.Equal(
345
AssertEx
.AreEqual(
362
AssertEx
.AreEqual(
371
AssertEx
.AreEqual(
469
AssertEx
.Equal(
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
396
AssertEx
.Equal(expectedRows, reader.GetEditAndContinueLogEntries(), itemInspector: EncLogRowToString);
EditAndContinue\EditScriptDescription.cs (2)
32
=>
AssertEx
.Equal(expected, Edits.Select(e => e.GetDebuggerDisplay()), itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
35
=>
AssertEx
.Equal(expected, Edits.Select(e => e.Kind));
EditAndContinue\MatchingPair.cs (1)
43
=>
AssertEx
.Equal(this, actual, itemSeparator: ",\r\n");
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
50
AssertEx
.Equal(expectedSortedResults, actualSortedResults);
Microsoft.CodeAnalysis.Features.UnitTests (166)
EditAndContinue\ActiveStatementsMapTests.cs (3)
145
AssertEx
.Equal(
195
AssertEx
.Empty(oldSpans);
251
AssertEx
.Equal(
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (3)
89
AssertEx
.Equal(["Offset=0 Ordinal=0 Kind=LambdaDisplayClass", "Offset=33 Ordinal=0 Kind=UserDefined"], debugInfo.InspectLocalSlots());
90
AssertEx
.Equal(["Offset=43 Id=0#0 Closure=0"], debugInfo.InspectLambdas());
91
AssertEx
.Equal(["Offset=0 Id=0#0"], debugInfo.InspectClosures());
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (110)
142
AssertEx
.Equal(
157
AssertEx
.Equal([$"P.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFileB.Path)}"], InspectDiagnostics(emitDiagnostics));
223
AssertEx
.Equal(
332
AssertEx
.Equal(
520
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, moduleFile.Path, expectedErrorMessage)}"], InspectDiagnostics(emitDiagnostics));
540
AssertEx
.SequenceEqual(
549
AssertEx
.SequenceEqual(
599
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
603
AssertEx
.Equal(
646
AssertEx
.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
659
AssertEx
.Equal(
717
AssertEx
.Equal(
725
AssertEx
.Equal(
881
AssertEx
.Empty(diagnostics1);
887
AssertEx
.Equal([$"{document2.FilePath}: (5,0)-(5,32): Error ENC2016: {string.Format(FeaturesResources.EditAndContinueDisallowedByProject, document2.Project.Name, "*message*")}"], InspectDiagnostics(emitDiagnostics));
891
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
893
AssertEx
.Equal(
979
AssertEx
.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
998
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1002
AssertEx
.Equal(
1011
AssertEx
.Equal(
1050
AssertEx
.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)],
1057
AssertEx
.Empty(diagnostics);
1064
AssertEx
.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)],
1082
AssertEx
.Empty(diagnostics);
1117
AssertEx
.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
1172
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
1189
AssertEx
.Equal(
1210
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1214
AssertEx
.Equal(
1223
AssertEx
.Equal(
1262
AssertEx
.Equal(
1305
AssertEx
.Equal(
1319
AssertEx
.Equal(
1384
AssertEx
.Equal(
1391
AssertEx
.Equal([projectId], result.ProjectsToRebuild);
1392
AssertEx
.Equal([projectId], result.ProjectsToRestart);
1424
AssertEx
.SequenceEqual(validChangeBeforeRudeEdit
1463
AssertEx
.Empty(diagnostics1);
1473
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1475
AssertEx
.Equal(
1503
AssertEx
.Empty(diagnostics1);
1514
AssertEx
.Equal([$"{document2.FilePath}: (0,30)-(0,32): Error CS0266: {string.Format(CSharpResources.ERR_NoImplicitConvCast, "long", "int")}"], InspectDiagnostics(emitDiagnostics));
1518
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1520
AssertEx
.SequenceEqual(
1678
AssertEx
.Equal([generatedDocumentId],
1684
AssertEx
.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1708
AssertEx
.Equal(documentKind == DocumentKind.Source ? new[] { documentId } : [],
1733
AssertEx
.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId],
1738
AssertEx
.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1760
AssertEx
.Equal([generatedDocumentId],
1765
AssertEx
.Equal([generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1807
AssertEx
.AreEqual("generated: text", generatedText);
1831
AssertEx
.Empty(await EditSession.GetChangedDocumentsAsync(oldProject, project, CancellationToken.None).ToImmutableArrayAsync(CancellationToken.None));
1836
AssertEx
.Empty(changedOrAddedDocuments);
1903
AssertEx
.Equal(
1961
AssertEx
.Empty(diagnostics);
1969
AssertEx
.Empty(diagnostics);
1989
AssertEx
.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)],
1998
AssertEx
.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)],
2014
AssertEx
.Empty(diagnostics);
2023
AssertEx
.Equal(
2111
AssertEx
.Empty(diagnostics);
2115
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics));
2143
AssertEx
.Empty(diagnostics1);
2147
AssertEx
.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics));
2164
AssertEx
.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics));
2168
AssertEx
.Equal(
2215
AssertEx
.Equal(requiredChecksum, CreateText(source1).GetChecksum());
2314
AssertEx
.Empty(diagnostics);
2319
AssertEx
.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
2392
AssertEx
.Empty(diagnostics);
2403
AssertEx
.Empty(emitDiagnostics);
2484
AssertEx
.Empty(diagnostics1);
2509
AssertEx
.Equal(updates.Updates, pendingUpdate.Deltas);
2567
AssertEx
.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
2571
AssertEx
.SequenceEqual(
2579
AssertEx
.SequenceEqual(
2751
AssertEx
.SetEqual([0x02000002, 0x02000003, 0x02000004, 0x02000005], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
2809
AssertEx
.Equal([0x02000002, 0x02000003], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
2864
AssertEx
.Equal(
2928
AssertEx
.Equal(["3 -> 4"], lineUpdate.LineUpdates.Select(edit => $"{edit.OldLine} -> {edit.NewLine}"));
3143
AssertEx
.Empty(diagnostics);
3147
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics));
3282
AssertEx
.Equal(readers, baselineReaders);
3292
AssertEx
.Equal(readers, baselineReaders);
3331
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-pdb", new FileNotFoundException().Message)}"], InspectDiagnostics(emitDiagnostics));
3364
AssertEx
.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-assembly", "*message*")}"], InspectDiagnostics(emitDiagnostics));
3369
AssertEx
.Equal(
3433
AssertEx
.Equal(
3442
AssertEx
.Equal(trackedActiveSpans1, currentSpans);
3454
AssertEx
.Equal([adjustedActiveLineSpan1, adjustedActiveLineSpan2], currentSpans.Select(s => s.LineSpan));
3506
AssertEx
.Equal(
3518
AssertEx
.Equal([activeLineSpan11, activeLineSpan12], currentSpans.Select(s => s.LineSpan));
3624
AssertEx
.Equal(
3630
AssertEx
.Equal(
3652
AssertEx
.Equal(
3728
AssertEx
.Equal(
3742
AssertEx
.Equal([$"(9,18)-(9,22)"], baseSpans.Single().Select(s => s.LineSpan.ToString()));
3749
AssertEx
.Equal([$"(10,12)-(10,16)"], baseSpans.Single().Select(s => s.LineSpan.ToString()));
3828
AssertEx
.Equal(
3898
AssertEx
.Equal(["ENC0063: " + string.Format(FeaturesResources.Updating_a_0_around_an_active_statement_requires_restarting_the_application, CSharpFeaturesResources.catch_clause)],
3990
AssertEx
.Equal(
4011
AssertEx
.Equal(
4031
AssertEx
.Equal(
4047
AssertEx
.Equal(
4134
AssertEx
.Equal(
4147
AssertEx
.Equal(
4166
AssertEx
.Equal(
4244
AssertEx
.Equal(
EditAndContinue\EditSessionActiveStatementsTests.cs (22)
187
AssertEx
.Equal(
202
AssertEx
.Equal(
208
AssertEx
.Equal(
215
AssertEx
.Equal(
220
AssertEx
.Equal(
230
AssertEx
.Equal(
237
AssertEx
.Equal(
272
AssertEx
.Equal(
281
AssertEx
.Equal(
287
AssertEx
.Equal(
346
AssertEx
.Equal(
358
AssertEx
.Equal(
387
AssertEx
.Equal(
394
AssertEx
.Equal(
399
AssertEx
.Equal(
529
AssertEx
.Equal(
543
AssertEx
.Equal(
581
AssertEx
.Equal(
594
AssertEx
.Equal(
603
AssertEx
.Equal(
663
AssertEx
.Equal(
688
AssertEx
.Equal(
EditAndContinue\EmitSolutionUpdateResultsTests.cs (9)
147
AssertEx
.Equal(
206
AssertEx
.SetEqual([b], projectsToRestart);
209
AssertEx
.SetEqual([d], projectsToRebuild);
262
AssertEx
.SetEqual([a, b], projectsToRestart);
265
AssertEx
.SetEqual([c, d], projectsToRebuild);
291
AssertEx
.SetEqual([b], projectsToRestart);
294
AssertEx
.SetEqual([d], projectsToRebuild);
324
AssertEx
.SetEqual([r1, r2, r3, r4], projectsToRestart);
325
AssertEx
.SetEqual([p1, p2, p3, p4], projectsToRebuild);
EditAndContinue\RemoteEditAndContinueServiceTests.cs (12)
132
AssertEx
.Equal(new[] { documentId }, captureMatchingDocuments);
180
AssertEx
.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result);
181
AssertEx
.Equal([project.Id], runningProjects);
220
AssertEx
.Equal($"[{projectId}] Error ENC1001: test.cs(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error")}", Inspect(results.SyntaxError!));
226
AssertEx
.Equal(new byte[] { 1, 2 }, delta.ILDelta);
227
AssertEx
.Equal(new byte[] { 3, 4 }, delta.MetadataDelta);
228
AssertEx
.Equal(new byte[] { 5, 6 }, delta.PdbDelta);
229
AssertEx
.Equal(new[] { 0x06000001 }, delta.UpdatedMethods);
230
AssertEx
.Equal(new[] { 0x02000001 }, delta.UpdatedTypes);
234
AssertEx
.Equal(new[] { new SourceLineUpdate(1, 2) }, lineEdit.LineUpdates);
259
AssertEx
.Equal(new[] { documentId, inProcOnlyDocumentId }, documentIds);
271
AssertEx
.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result);
EditAndContinue\RudeEditDiagnosticTests.cs (1)
116
AssertEx
.Equal(allKinds, allKinds.Distinct());
EditAndContinue\TraceLogTests.cs (1)
29
AssertEx
.Equal(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (2)
57
AssertEx
.Equal(
73
AssertEx
.Equal(
FindUsages\DefinitionItemFactoryTests.cs (3)
48
AssertEx
.Equal(
70
=>
AssertEx
.SetEqual(
78
=>
AssertEx
.Equal(expected, actual, message: PropertyMessage(propertyName), itemInspector: Inspect);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (202)
CodeLens\AbstractCodeLensTests.cs (4)
39
AssertEx
.NotNull(actualCodeLenses);
49
AssertEx
.NotNull(resolvedCodeLens?.Command);
66
AssertEx
.NotNull(actualCodeLenses);
89
AssertEx
.NotNull(actualCodeLenses);
CodeLens\CSharpCodeLensTests.cs (2)
391
AssertEx
.NotNull(data);
421
AssertEx
.Empty(actualCodeLenses);
Completion\CompletionFeaturesTests.cs (11)
93
AssertEx
.NotNull(results);
421
AssertEx
.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters);
467
AssertEx
.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters);
477
AssertEx
.SetEqual(nonDefaultCharArray, item.CommitCharacters);
483
AssertEx
.SetEqual(nonDefaultCharArray, results.ItemDefaults.CommitCharacters);
489
AssertEx
.SetEqual(defaultCharArray, item.CommitCharacters);
652
AssertEx
.NotNull(results);
755
AssertEx
.NotNull(results);
790
AssertEx
.Empty(results.ItemDefaults.CommitCharacters);
806
AssertEx
.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters);
1082
AssertEx
.NotNull(results);
Completion\CompletionTests.cs (1)
1469
AssertEx
.NotNull(results);
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (2)
152
AssertEx
.SetEqual(expectedNames, actualNames);
195
AssertEx
.Fail($"{Methods.WorkspaceDidChangeConfigurationName} is registered twice.");
Diagnostics\AbstractPullDiagnosticTestsBase.cs (3)
109
AssertEx
.NotNull(diagnostics);
146
AssertEx
.NotNull(returnedResult);
267
AssertEx
.NotNull(diagnostics);
Diagnostics\AdditionalFileDiagnosticsTests.cs (4)
38
AssertEx
.Equal(
66
AssertEx
.Empty(results[0].Diagnostics);
69
AssertEx
.Empty(results[2].Diagnostics);
112
AssertEx
.Empty(results2);
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (2)
32
AssertEx
.SetEqual(expectedBuildOnlyDiagnosticIds, result.Ids);
47
AssertEx
.SetEqual(expectedBuildOnlyDiagnosticIds, result.Ids);
Diagnostics\PullDiagnosticTests.cs (68)
356
AssertEx
.Empty(results[0].Diagnostics);
472
AssertEx
.All(results.Single().Diagnostics, d => Assert.Equal("CS1513", d.Code));
476
AssertEx
.All(results.Single().Diagnostics, d => Assert.Equal("CSProj1", ((VSDiagnostic)d).Projects.Single().ProjectName));
567
AssertEx
.Empty(results.Single().Diagnostics);
689
var diagnostic =
AssertEx
.Single(results.Single().Diagnostics);
753
AssertEx
.All(results.Single().Diagnostics, d => Assert.False(d.Tags!.Contains(DiagnosticTag.Unnecessary)));
846
AssertEx
.Empty(results.Single().Diagnostics);
928
AssertEx
.Empty(results[1].Diagnostics);
929
AssertEx
.Empty(results[2].Diagnostics);
950
AssertEx
.Empty(results[1].Diagnostics);
951
AssertEx
.Empty(results[2].Diagnostics);
961
AssertEx
.Empty(results2);
970
AssertEx
.Empty(results3[0].Diagnostics);
992
AssertEx
.Empty(results[1].Diagnostics);
993
AssertEx
.Empty(results[2].Diagnostics);
1004
AssertEx
.Empty(results2[0].Diagnostics);
1014
AssertEx
.Empty(results3);
1035
AssertEx
.Empty(results[0].Diagnostics);
1180
AssertEx
.Empty(results.Single().Diagnostics);
1228
AssertEx
.Equal(
1235
AssertEx
.Equal(
1249
AssertEx
.Equal(
1256
AssertEx
.Equal(
1269
AssertEx
.Equal(
1276
AssertEx
.Equal([], workspaceResults3.Select(Inspect));
1333
AssertEx
.Empty(results[1].Diagnostics);
1399
AssertEx
.Empty(results[0].Diagnostics);
1401
AssertEx
.Empty(results[2].Diagnostics);
1417
AssertEx
.Empty(results[1].Diagnostics);
1418
AssertEx
.Empty(results[2].Diagnostics);
1444
AssertEx
.Empty(results[1].Diagnostics);
1445
AssertEx
.Empty(results[2].Diagnostics);
1466
AssertEx
.Empty(results[1].Diagnostics);
1467
AssertEx
.Empty(results[2].Diagnostics);
1477
AssertEx
.Empty(results2[0].Diagnostics);
1495
AssertEx
.Empty(results[1].Diagnostics);
1496
AssertEx
.Empty(results[2].Diagnostics);
1514
AssertEx
.Empty(results2[1].Diagnostics);
1516
AssertEx
.Empty(results2[2].Diagnostics);
1555
AssertEx
.Empty(results[1].Diagnostics);
1556
AssertEx
.Empty(results[2].Diagnostics);
1590
AssertEx
.NotNull(results);
1604
AssertEx
.NotNull(results);
1610
AssertEx
.Empty(results[0].Diagnostics);
1614
AssertEx
.Empty(results[1].Diagnostics);
1663
AssertEx
.NotNull(results);
1667
AssertEx
.Empty(results[1].Diagnostics);
1670
AssertEx
.Empty(results[3].Diagnostics);
1673
AssertEx
.Empty(results[5].Diagnostics);
1684
AssertEx
.NotNull(results);
1694
AssertEx
.Empty(results[1].Diagnostics);
1698
AssertEx
.Empty(results[2].Diagnostics);
1732
AssertEx
.NotNull(results);
1735
AssertEx
.Empty(results[1].Diagnostics);
1737
AssertEx
.Empty(results[3].Diagnostics);
1748
AssertEx
.NotNull(results);
1753
AssertEx
.Empty(results[0].Diagnostics);
1797
AssertEx
.NotNull(results);
1799
AssertEx
.Empty(results[0].Diagnostics);
1814
AssertEx
.NotNull(results);
1854
AssertEx
.NotNull(results);
1872
AssertEx
.NotNull(results);
1906
AssertEx
.NotNull(results);
1924
AssertEx
.NotNull(results);
2081
AssertEx
.Empty(results[1].Diagnostics);
2102
AssertEx
.Empty(results[0].Diagnostics);
2103
AssertEx
.Empty(results[1].Diagnostics);
2127
AssertEx
.Empty(results[1].Diagnostics);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (2)
31
AssertEx
.Empty(results[0].Diagnostics);
48
AssertEx
.Empty(results[0].Diagnostics);
DocumentChanges\DocumentChangesTests.cs (6)
84
AssertEx
.NotNull(document);
205
AssertEx
.NotNull(document);
283
AssertEx
.NotNull(document);
322
AssertEx
.NotNull(document);
362
AssertEx
.NotNull(document);
446
AssertEx
.NotNull(document);
FormatNewFile\FormatNewFileTests.cs (1)
65
AssertEx
.EqualOrDiff(expected, result);
InlayHint\AbstractInlayHintTests.cs (5)
37
AssertEx
.NotNull(actualInlayHints);
50
AssertEx
.Equal(name, matchingInlayHint.Label.First.TrimEnd(':'));
52
AssertEx
.NotNull(matchingInlayHint.Kind);
57
AssertEx
.NotNull(matchingInlayHint.TextEdits);
61
AssertEx
.NotNull(resolvedInlayHint?.ToolTip);
InlayHint\CSharpInlayHintTests.cs (1)
135
AssertEx
.NotNull(data);
InlineCompletions\InlineCompletionsTests.cs (2)
278
AssertEx
.NotNull(result);
282
AssertEx
.NotNull(item.Range);
MapCode\MapCodeTests.cs (1)
113
AssertEx
.NotNull(results);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
241
AssertEx
.NotNull(miscDoc);
285
AssertEx
.NotNull(miscDoc);
OnAutoInsert\OnAutoInsertTests.cs (1)
412
AssertEx
.NotNull(result);
RelatedDocuments\RelatedDocumentsTests.cs (2)
43
AssertEx
.NotNull(spans);
133
AssertEx
.SetEqual([.. project.Documents.Skip(1).Select(d => d.FilePath)], results.SelectMany(r => r.FilePaths));
SemanticTokens\SemanticTokensRangesTests.cs (1)
68
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results.Data));
SemanticTokens\SemanticTokensRangeTests.cs (7)
71
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results.Data));
166
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
214
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
268
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
349
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
456
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
577
AssertEx
.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
SpellCheck\SpellCheckTests.cs (8)
351
AssertEx
.Empty(results[1].Ranges);
424
AssertEx
.Empty(results[1].Ranges);
436
AssertEx
.Empty(results[1].Ranges);
462
AssertEx
.Empty(results[1].Ranges);
498
AssertEx
.Empty(results[1].Ranges);
551
AssertEx
.Empty(results[1].Ranges);
619
AssertEx
.NotNull(spans);
640
AssertEx
.NotNull(spans);
Symbols\WorkspaceSymbolsTests.cs (1)
211
AssertEx
.Empty(results);
UriTests.cs (12)
53
AssertEx
.NotNull(document);
79
AssertEx
.NotNull(document);
111
AssertEx
.NotNull(document);
122
AssertEx
.NotNull(document);
150
AssertEx
.NotNull(fileDocument);
157
AssertEx
.NotNull(gitDocument);
186
AssertEx
.NotNull(lspDocument);
204
AssertEx
.NotNull(encodedDocument);
238
AssertEx
.NotNull(lspDocument);
252
AssertEx
.NotNull(lowerCaseDocument);
286
AssertEx
.NotNull(lspDocument);
311
AssertEx
.NotNull(document);
VSTypeScriptHandlerTests.cs (2)
72
AssertEx
.Empty(response);
166
AssertEx
.NotNull(context.Document);
Workspaces\LspWorkspaceManagerTests.cs (36)
39
AssertEx
.NotNull(lspDocument);
45
AssertEx
.NotNull(lspDocument);
87
AssertEx
.NotNull(firstDocument);
92
AssertEx
.NotNull(firstDocumentWithChange);
93
AssertEx
.NotNull(secondDocumentUnchanged);
126
AssertEx
.NotNull(openedDocument);
131
AssertEx
.NotNull(secondDocument);
164
AssertEx
.NotNull(openedDocument);
197
AssertEx
.NotNull(openedDocument);
231
AssertEx
.NotNull(lspDocument);
256
AssertEx
.NotNull(miscDocument);
263
AssertEx
.NotNull(miscDocument);
272
AssertEx
.NotNull(document);
319
AssertEx
.NotNull(hostSolution);
381
AssertEx
.NotNull(firstDocument);
386
AssertEx
.NotNull(secondDocument);
395
AssertEx
.NotNull(changedFirstDocument);
436
AssertEx
.NotNull(firstDocument);
441
AssertEx
.NotNull(secondDocument);
451
AssertEx
.NotNull(secondDocumentChangedProject);
487
AssertEx
.NotNull(documentServerTwo);
507
AssertEx
.NotNull(documentServerOne);
510
AssertEx
.NotNull(documentServerTwo);
527
AssertEx
.NotNull(lspDocument);
552
AssertEx
.NotNull(document1);
571
AssertEx
.NotNull(document1);
589
AssertEx
.NotNull(document1);
610
AssertEx
.NotNull(document);
624
AssertEx
.NotNull(document);
649
AssertEx
.NotNull(originalDocument);
660
AssertEx
.NotNull(newDocument);
708
AssertEx
.NotNull(sourceGeneratedDocument);
725
AssertEx
.NotNull(sourceGeneratedDocument);
741
AssertEx
.NotNull(sourceGeneratedDocument);
748
AssertEx
.NotNull(sourceGeneratedDocument as SourceGeneratedDocument);
759
AssertEx
.NotNull(lspDocument);
Workspaces\SourceGeneratedDocumentTests.cs (14)
37
AssertEx
.NotNull(text);
53
AssertEx
.NotNull(text);
77
AssertEx
.NotNull(text?.Text);
101
AssertEx
.NotNull(hover);
122
AssertEx
.NotNull(text);
138
AssertEx
.NotNull(text);
144
AssertEx
.NotNull(secondRequest);
167
AssertEx
.NotNull(text);
183
AssertEx
.NotNull(secondRequest);
190
AssertEx
.NotNull(secondRequest);
214
AssertEx
.NotNull(text);
223
AssertEx
.NotNull(secondRequest);
241
AssertEx
.NotNull(text);
267
AssertEx
.NotNull(text);
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
38
AssertEx
.NotNull(deserialized);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
ServerInitializationTests.cs (2)
65
AssertEx
.NotNull(capabilities);
66
AssertEx
.NotNull(capabilities.OnAutoInsertProvider);
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationOptionsReaderTests.cs (1)
35
AssertEx
.NotNull(originalPdbReader);
DeterministicKeyBuilderTests.cs (1)
96
AssertEx
.NotNull(compilation);
RebuildCommandLineTests.cs (1)
110
AssertEx
.NotNull(compilation);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
TelemetryLoggerTests.cs (3)
102
AssertEx
.Equal(new[]
127
AssertEx
.Equal(new[]
135
AssertEx
.Equal(new[]
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
152
AssertEx
.SetEqual(new[] { "MultiModule.dll", "mod2.netmodule", "mod3.netmodule" }, scFiles.Select(p => Path.GetFileName(p)));
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
RuntimeMetadataReferenceResolverTests.cs (3)
38
AssertEx
.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly1.Path, assembly2.Path);
44
AssertEx
.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly2.Path);
59
AssertEx
.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly2.Path);
ScriptOptionsTests.cs (1)
114
AssertEx
.Equal(new[] { "", "blah.", "b\0lah", ".blah", "b\0lah", ".blah" }, options.Imports);
Microsoft.CodeAnalysis.Test.Utilities (107)
Assert\AssertEx.cs (2)
893
AssertEx
.Equal(
901
AssertEx
.Equal(
Assert\AssertXml.cs (1)
102
if (
AssertEx
.TryGenerateExpectedSourceFileAndGetDiffLink(actualString, expectedString.Count(c => c == '\n') + 1, expectedValueSourcePath, expectedValueSourceLine, out var link))
Compilation\CompilationDifference.cs (6)
68
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
79
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
102
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
164
AssertEx
.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
170
AssertEx
.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n");
175
AssertEx
.Equal(
Compilation\CompilationExtensions.cs (5)
177
AssertEx
.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
185
AssertEx
.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
418
AssertEx
.Equal(positions, getPositionsFromEnd(separatedList));
427
AssertEx
.Equal(positions, getPositionsFromStart(new SeparatedWithManyChildren(green, null, separatedList.Position)));
430
AssertEx
.Equal(positions, getPositionsFromEnd(new SeparatedWithManyChildren(green, null, separatedList.Position)));
Compilation\CompilationTestDataExtensions.cs (1)
40
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: expectedValueSourcePath, expectedValueSourceLine: expectedValueSourceLine);
Compilation\OperationTreeVerifier.cs (1)
71
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedOperationTree, actual);
Compilation\TestOperationVisitor.cs (65)
122
AssertEx
.Equal(operation.Operations, operation.ChildOperations);
128
AssertEx
.Equal(operation.Declarations, operation.ChildOperations);
143
AssertEx
.Equal(children, operation.ChildOperations);
157
AssertEx
.Equal(children, operation.ChildOperations);
165
AssertEx
.Equal(new[] { operation.Value }.Concat(operation.Cases), operation.ChildOperations);
172
AssertEx
.Equal(operation.Clauses.Concat(operation.Body), operation.ChildOperations);
217
AssertEx
.Equal(new[] { operation.Value }, operation.ChildOperations);
232
AssertEx
.Equal(new[] { operation.Value }, operation.ChildOperations);
285
AssertEx
.Equal(children, operation.ChildOperations);
305
AssertEx
.Equal(children, operation.ChildOperations);
326
AssertEx
.Equal(children, operation.ChildOperations);
335
AssertEx
.Equal(children, operation.ChildOperations);
422
AssertEx
.Equal(new[] { operation.LockedValue, operation.Body }, operation.ChildOperations);
436
AssertEx
.Equal(children, operation.ChildOperations);
457
AssertEx
.Equal(children, operation.ChildOperations);
464
AssertEx
.Equal(new[] { operation.Resources, operation.Body }, operation.ChildOperations);
484
AssertEx
.Equal(new[] { operation.Variables, operation.Body }, operation.ChildOperations);
490
AssertEx
.Equal(operation.Elements, operation.ChildOperations);
502
AssertEx
.Equal(new[] { operation.Group, operation.Aggregation }, operation.ChildOperations);
514
AssertEx
.Equal(new[] { operation.Value, operation.Body }, operation.ChildOperations);
551
AssertEx
.Equal(children, operation.ChildOperations);
573
AssertEx
.Equal(children, operation.ChildOperations);
601
AssertEx
.Equal(new[] { operation.ArrayReference }.Concat(operation.Indices), operation.ChildOperations);
607
AssertEx
.Equal(new[] { operation.Instance, operation.Argument }, operation.ChildOperations);
616
AssertEx
.Equal(new[] { operation.Instance, operation.Argument }, operation.ChildOperations);
676
AssertEx
.Equal(children, operation.ChildOperations);
723
AssertEx
.Equal(new[] { operation.EventReference, operation.HandlerValue }, operation.ChildOperations);
730
AssertEx
.Equal(new[] { operation.Operation, operation.WhenNotNull }, operation.ChildOperations);
790
AssertEx
.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
821
AssertEx
.Fail($"Unexpected parameter count for built in method: {method.ToDisplayString()}");
835
AssertEx
.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
893
AssertEx
.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations);
897
AssertEx
.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);
904
AssertEx
.Equal(new[] { operation.Value, operation.WhenNull }, operation.ChildOperations);
911
AssertEx
.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1042
AssertEx
.Equal(children, operation.ChildOperations);
1048
AssertEx
.Equal(operation.Initializers, operation.ChildOperations);
1069
AssertEx
.Equal(children, operation.ChildOperations);
1075
AssertEx
.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1081
AssertEx
.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1087
AssertEx
.Equal(operation.Initializers, operation.ChildOperations);
1093
AssertEx
.Equal(new[] { operation.InitializedMember, operation.Initializer }, operation.ChildOperations);
1146
AssertEx
.Equal(children, operation.ChildOperations);
1153
AssertEx
.Equal(operation.ElementValues, operation.ChildOperations);
1158
AssertEx
.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1278
AssertEx
.Equal(operation.Elements, operation.ChildOperations);
1284
AssertEx
.Equal(operation.Parts, operation.ChildOperations);
1315
AssertEx
.Equal(children, operation.ChildOperations);
1322
AssertEx
.Equal(children, operation.ChildOperations);
1332
AssertEx
.Equal(new[] { operation.Left, operation.Right }, operation.ChildOperations);
1474
AssertEx
.Equal(children, operation.ChildOperations);
1518
AssertEx
.Equal(children, operation.ChildOperations);
1525
AssertEx
.Equal(children, operation.ChildOperations);
1554
AssertEx
.Equal(children, operation.ChildOperations);
1568
AssertEx
.Equal(children, operation.ChildOperations);
1574
AssertEx
.Equal(new[] { operation.Value, operation.Pattern }, operation.ChildOperations);
1585
AssertEx
.Equal(new[] { operation.Pattern, operation.Guard }, operation.ChildOperations);
1620
AssertEx
.Equal(new IOperation[] { operation.EventReference }.Concat(operation.Arguments), operation.ChildOperations);
1627
AssertEx
.Equal(new[] { operation.MinimumValue, operation.MaximumValue }, operation.ChildOperations);
1653
AssertEx
.Equal(builder, operation.ChildOperations);
1666
AssertEx
.Equal(new[] { operation.BlockBody, operation.ExpressionBody }, operation.ChildOperations);
1785
AssertEx
.Equal(operation.Clauses, operation.ChildOperations);
1792
AssertEx
.Equal(SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations);
1798
AssertEx
.Equal(SpecializedCollections.SingletonEnumerable(operation.DeclarationGroup), operation.ChildOperations);
1821
AssertEx
.Equal(children, operation.ChildOperations);
CompilationVerifier.cs (8)
197
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expected, output, escapeQuotes: false);
389
AssertEx
.AssertEqualToleratingWhitespaceDifferences(verification.ILVerifyMessage, actualMessage);
549
actual.Add(
AssertEx
.NormalizeWhitespace(VisualizeIL(qualifiedName)));
550
expected.Add(
AssertEx
.NormalizeWhitespace(qualifiedMethodNamesAndExpectedIL[i++]));
557
builder.AppendLine(
AssertEx
.GetAssertMessage(expected[i], actual[i], prefix: names[i], escapeQuotes: true));
581
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
599
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, message: null, escapeQuotes, callerPath, callerLine);
750
AssertEx
.SetEqual(expectedFields, members);
InstrumentationChecker.cs (3)
76
AssertEx
.Fail(output.ToStringAndFree());
211
AssertEx
.Fail(output.ToStringAndFree());
338
AssertEx
.SequenceEqual(expectedSnippets, actualSnippets, new SnippetComparer(), $"Validation of method {method} failed.");
Metadata\MetadataReaderUtils.cs (5)
470
AssertEx
.SetEqual(metadataReader.TypeDefinitions.Select(t => metadataReader.Dump(t)), types);
471
AssertEx
.SetEqual(metadataReader.MethodDefinitions.Select(t => metadataReader.Dump(t)), methods);
473
AssertEx
.SetEqual(
511
AssertEx
.Equal(ThrowNull, il);
522
AssertEx
.NotEqual(ThrowNull, il);
Metadata\MetadataValidation.cs (3)
95
AssertEx
.Equal(expectedBlob, actualBlob);
126
AssertEx
.Equal(expectedBlob, actualBlob);
192
AssertEx
.AssertResultsEqual(mdw1.ToString(), mdw2.ToString());
Mocks\MoqExtensions.cs (2)
16
AssertEx
.Equal(
22
AssertEx
.Equal(expectedInvocations[i].Args, invocations[i].Arguments);
Mocks\TestMissingMetadataReferenceResolver.cs (1)
57
AssertEx
.Equal(expected, ResolutionAttempts.Select(a => a.ToString()));
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
350
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedMessage, actualMessage);
ReflectionAssert.cs (1)
23
AssertEx
.SetEqual(expectedFieldsAndProperties, fieldsAndProps, itemSeparator: "\r\n");
Syntax\TokenUtilities.cs (2)
49
AssertEx
.Fail($"Unexpected token. Actual '{actualAll}' Expected '{expectedAll}'\r\nActual:\r\n{actual}");
57
AssertEx
.Fail(@"Wrong token count. Expected '{0}', Actual '{1}', Expected Text: '{2}', Actual Text: '{3}'",
Microsoft.CodeAnalysis.UnitTests (197)
AnalyzerAssemblyLoaderTests.cs (4)
247
analyzerMainReference.AnalyzerLoadFailed += (_, e) =>
AssertEx
.Fail(e.Exception!.Message);
249
analyzerDependencyReference.AnalyzerLoadFailed += (_, e) =>
AssertEx
.Fail(e.Exception!.Message);
764
analyzerMainReference.AnalyzerLoadFailed += (_, e) =>
AssertEx
.Fail(e.Exception!.Message);
766
analyzerDependencyReference.AnalyzerLoadFailed += (_, e) =>
AssertEx
.Fail(e.Exception!.Message);
Analyzers\AnalyzerConfigTests.cs (17)
45
AssertEx
.SetEqual(
52
AssertEx
.SetEqual(
79
AssertEx
.Equal(
85
AssertEx
.Equal(
91
AssertEx
.Equal(
170
AssertEx
.SetEqual(
206
AssertEx
.SetEqual(
241
AssertEx
.SetEqual(
254
AssertEx
.SetEqual(
268
AssertEx
.SetEqual(
280
AssertEx
.SetEqual(
304
AssertEx
.SetEqual(
318
AssertEx
.SetEqual(
335
AssertEx
.SetEqual(
355
AssertEx
.SetEqual(
365
AssertEx
.SetEqual(
1245
AssertEx
.SetEqual(
Analyzers\AnalyzerFileReferenceTests.cs (5)
327
AssertEx
.Equal($"""
356
AssertEx
.Equal($"""
371
AssertEx
.SetEqual(new[]
408
AssertEx
.SetEqual(new[]
430
AssertEx
.SetEqual(new[]
AssemblyUtilitiesTests.cs (4)
76
AssertEx
.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase);
89
AssertEx
.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase);
103
AssertEx
.SetEqual(new[] { satelliteFileDE, satelliteFileFR }, results, StringComparer.OrdinalIgnoreCase);
133
AssertEx
.SetEqual(new[] { "netstandard", "Gamma" }, results);
Collections\ArrayBuilderTests.cs (26)
22
AssertEx
.Equal([6, 5, 1, 2, 3, 2, 4, 5, 1, 7], builder);
25
AssertEx
.Equal([5, 1, 2, 3, 2, 4, 5, 1, 7], builder);
28
AssertEx
.Equal([5, 1, 2, 3, 2, 4, 5, 1], builder);
31
AssertEx
.Equal([5, 3, 4, 5], builder);
34
AssertEx
.Equal([], builder);
37
AssertEx
.Equal([], builder);
45
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
49
AssertEx
.Equal(new[] { 1 }, builder);
53
AssertEx
.Equal(new int[0], builder);
61
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
65
AssertEx
.Equal(new[] { 1 }, builder);
69
AssertEx
.Equal(new[] { 1, 2 }, builder);
73
AssertEx
.Equal(new[] { 1, 2, 3 }, builder);
77
AssertEx
.Equal(new[] { 1, 2 }, builder);
81
AssertEx
.Equal(new int[0], builder);
88
AssertEx
.Equal(new[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => n));
91
AssertEx
.Equal(new[] { 1 }, builder.SelectDistinct(n => n));
94
AssertEx
.Equal(new int[0], builder.SelectDistinct(n => n));
97
AssertEx
.Equal(new[] { 10 }, builder.SelectDistinct(n => 10));
100
AssertEx
.Equal(new byte[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => (byte)n));
109
AssertEx
.Equal(new int[0], builder.ToArray());
112
AssertEx
.Equal(new[] { 1, 2, 3 }, builder.ToArray());
115
AssertEx
.Equal(new[] { 1, 2, 3 }, builder.ToArray());
118
AssertEx
.Equal(new[] { 1, 2, 3, 2 }, builder.ToArray());
121
AssertEx
.Equal(new[] { 1, 2, 3, 2, 2, 3 }, builder.ToArray());
124
AssertEx
.Equal(new[] { 1, 2, 3, 2, 2, 3, 3 }, builder.ToArray());
Collections\ImmutableArrayExtensionsTests.cs (8)
378
AssertEx
.Equal(new[] { 10 }, ImmutableArray.Create(1).SelectAsArray(i => 10 * i));
379
AssertEx
.Equal(new[] { 10, 20 }, ImmutableArray.Create(1, 2).SelectAsArray(i => 10 * i));
380
AssertEx
.Equal(new[] { 10, 20, 30 }, ImmutableArray.Create(1, 2, 3).SelectAsArray(i => 10 * i));
381
AssertEx
.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i));
382
AssertEx
.Equal(new[] { 10, 20, 30, 40, 50 }, ImmutableArray.Create(1, 2, 3, 4, 5).SelectAsArray(i => 10 * i));
391
AssertEx
.Equal(new[] { 2, 3, 4, 5, 6 }, array.SelectAsArray(item => true, item => item + 1));
392
AssertEx
.Equal(new[] { 3, 5 }, array.SelectAsArray(item => item % 2 == 0, item => item + 1));
499
AssertEx
.Equal(new[] { 3, 4, 5 }, a.WhereAsArray((i, j) => i > j, 2));
Collections\SegmentedCollectionsMarshalTests.cs (3)
509
AssertEx
.NotNull(list);
640
AssertEx
.NotNull(set);
771
AssertEx
.NotNull(dictionary);
Collections\TopologicalSortTests.cs (3)
42
AssertEx
.Equal(new[] { 4, 5, 2, 3, 1, 0 }, sorted);
63
AssertEx
.Equal(new[] { "4", "5", "2", "3", "1", "0" }, sorted);
86
AssertEx
.Equal(new[] { 1, 4, 3, 5, 6, 7, 2 }, sorted);
CryptoBlobParserTests.cs (20)
34
AssertEx
.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 });
38
AssertEx
.Equal(expectedModulus, privKey.Modulus);
42
AssertEx
.Equal(expectedP, privKey.P);
46
AssertEx
.Equal(expectedQ, privKey.Q);
50
AssertEx
.Equal(expectedDP, privKey.DP);
54
AssertEx
.Equal(expectedDQ, privKey.DQ);
58
AssertEx
.Equal(expectedInverseQ, privKey.InverseQ);
62
AssertEx
.Equal(expectedD, privKey.D);
77
AssertEx
.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 });
81
AssertEx
.Equal(expectedModulus, privKey.Modulus);
85
AssertEx
.Equal(expectedP, privKey.P);
89
AssertEx
.Equal(expectedQ, privKey.Q);
93
AssertEx
.Equal(expectedDP, privKey.DP);
97
AssertEx
.Equal(expectedDQ, privKey.DQ);
101
AssertEx
.Equal(expectedInverseQ, privKey.InverseQ);
105
AssertEx
.Equal(expectedD, privKey.D);
118
AssertEx
.Equal(TestResources.General.snPublicKey, pubKey);
129
AssertEx
.Equal(TestResources.General.snPublicKey2, pubKey);
140
AssertEx
.Equal(key, pubKey);
158
AssertEx
.Equal(snBlob, pubKey);
Diagnostics\CompilationWithAnalyzersTests.cs (1)
52
AssertEx
.Equal(new[] { d1 }, filtered);
EmbeddedTextTests.cs (33)
84
AssertEx
.Equal(SourceText.CalculateChecksum(new byte[0], 0, 0, SourceHashAlgorithm.Sha1), text.Checksum);
85
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
96
AssertEx
.Equal(checksum, text.Checksum);
97
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
109
AssertEx
.Equal(checksum, text.Checksum);
110
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
122
AssertEx
.Equal(checksum, text.Checksum);
123
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
124
AssertEx
.Equal(bytes, text.Blob.Skip(4));
136
AssertEx
.Equal(checksum, text.Checksum);
138
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
139
AssertEx
.Equal(bytes, text.Blob.Skip(4));
150
AssertEx
.Equal(source.GetChecksum(), text.Checksum);
151
AssertEx
.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
152
AssertEx
.Equal(Encoding.UTF8.GetPreamble().Concat(Encoding.UTF8.GetBytes(SmallSource)), text.Blob.Skip(4));
164
AssertEx
.Equal(checksum, text.Checksum);
165
AssertEx
.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
166
AssertEx
.Equal(bytes, Decompress(text.Blob.Skip(4)));
178
AssertEx
.Equal(checksum, text.Checksum);
180
AssertEx
.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
181
AssertEx
.Equal(bytes, Decompress(text.Blob.Skip(4)));
192
AssertEx
.Equal(source.GetChecksum(), text.Checksum);
193
AssertEx
.Equal(BitConverter.GetBytes(Encoding.Unicode.GetPreamble().Length + LargeSource.Length * sizeof(char)), text.Blob.Take(4));
194
AssertEx
.Equal(Encoding.Unicode.GetPreamble().Concat(Encoding.Unicode.GetBytes(LargeSource)), Decompress(text.Blob.Skip(4)));
208
AssertEx
.Equal(expectedEmbedded.Checksum, actualEmbedded.Checksum);
209
AssertEx
.Equal(expectedEmbedded.Blob, actualEmbedded.Blob);
223
AssertEx
.Equal(expectedEmbedded.Checksum, actualEmbedded.Checksum);
224
AssertEx
.Equal(expectedEmbedded.Blob, actualEmbedded.Blob);
242
AssertEx
.Equal(SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithm.Sha1), source.GetChecksum());
243
AssertEx
.Equal(source.GetChecksum(), text.Checksum);
244
AssertEx
.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
245
AssertEx
.Equal(bytes, Decompress(text.Blob.Skip(4)));
257
AssertEx
.Equal(source.GetChecksum(), text.Checksum);
Emit\CustomDebugInfoTests.cs (25)
90
AssertEx
.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
122
AssertEx
.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
134
AssertEx
.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
146
AssertEx
.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.DynamicLocals));
209
AssertEx
.Equal(new byte[] { 0xFF, 0xC0, 0x00, 0x4E, 0x20, 0x81, 0xC0, 0x00, 0x4E, 0x1F, 0x0A, 0x9A, 0x00, 0x0A }, bytes);
213
AssertEx
.Equal(slots, deserialized);
238
AssertEx
.Equal(new byte[] { 0x7C, 0x80, 0xC8, 0x03, 0x64, 0x80, 0xD2, 0x00, 0x80, 0xDC, 0x03, 0x80, 0x96, 0x02, 0x14, 0x01 }, bytes);
242
AssertEx
.Equal(closures, deserialized.Closures);
243
AssertEx
.Equal(lambdas, deserialized.Lambdas);
261
AssertEx
.Equal(new byte[] { 0x00, 0x01, 0x00, 0x15, 0x01 }, bytes);
265
AssertEx
.Equal(closures, deserialized.Closures);
266
AssertEx
.Equal(lambdas, deserialized.Lambdas);
285
AssertEx
.Equal(new byte[] { 0x0B, 0x01, 0x00 }, bytes);
289
AssertEx
.Equal(closures, deserialized.Closures);
290
AssertEx
.Equal(lambdas, deserialized.Lambdas);
315
AssertEx
.Equal(new byte[] { 0x06, 0x00, 0x02, 0x10, 0x04, 0x10, 0x00, 0x10, 0x06, 0x20, 0x08, 0x20, 0x0A, 0x30 }, bytes);
322
AssertEx
.Equal(new[]
371
AssertEx
.Equal(new byte[]
452
AssertEx
.Equal(new byte[]
486
AssertEx
.Equal(new byte[]
518
AssertEx
.Equal(new byte[]
547
AssertEx
.Equal(new byte[]
589
AssertEx
.Equal(new byte[]
662
AssertEx
.Equal(new byte[]
782
AssertEx
.Equal(new byte[] { 0x01, 0x00, 0x00, 0x06 }, records[0].Data);
FileSystem\PathUtilitiesTests.cs (3)
436
AssertEx
.Equal(output, PathUtilities.CollapseWithForwardSlash(input.AsSpan()));
448
AssertEx
.Equal(output, PathUtilities.NormalizeDriveLetter(input));
460
AssertEx
.Equal(input, PathUtilities.NormalizeDriveLetter(input));
MetadataReferences\AssemblyIdentityTests.cs (19)
114
AssertEx
.Equal(id.PublicKey, PublicKey1);
161
AssertEx
.Equal(PublicKey1, id.PublicKey);
162
AssertEx
.Equal(PublicKeyToken1, id.PublicKeyToken);
173
AssertEx
.Equal(PublicKeyToken1, id.PublicKeyToken);
183
AssertEx
.Equal(PublicKey1, id.PublicKey);
184
AssertEx
.Equal(PublicKeyToken1, id.PublicKeyToken);
194
AssertEx
.Equal(PublicKey1, id.PublicKey);
195
AssertEx
.Equal(PublicKeyToken1, id.PublicKeyToken);
265
AssertEx
.Equal(PublicKey1, id.PublicKey);
266
AssertEx
.Equal(PublicKeyToken1, id.PublicKeyToken);
314
AssertEx
.Equal(new byte[0], an.GetPublicKeyToken());
315
AssertEx
.Equal(null, an.GetPublicKey());
330
AssertEx
.Equal(PublicKeyToken1, an.GetPublicKeyToken());
331
AssertEx
.Equal(PublicKey1, an.GetPublicKey());
346
AssertEx
.Equal(new byte[0], an.GetPublicKeyToken());
347
AssertEx
.Equal(null, an.GetPublicKey());
350
AssertEx
.Equal(null, an.CodeBase);
371
AssertEx
.Equal(PublicKeyToken1, anPkt);
372
AssertEx
.Equal(PublicKeyToken1, aiPkt);
MetadataReferences\MetadataHelpersTests.cs (1)
258
AssertEx
.Equal(expectedArrayRanks, decodedName.ArrayRanks);
MetadataReferences\MetadataReferencePropertiesTests.cs (1)
26
AssertEx
.Equal(new[] { "\\/[.'\":_)??\t\n*#$@^%*&)", "goo" }, m.Aliases);
MetadataReferences\MetadataReferenceTests.cs (9)
230
AssertEx
.Equal(ImmutableArray.Create("a", "b"), r.Properties.Aliases);
302
AssertEx
.Equal(new[] { "a" }, r.Properties.Aliases);
314
AssertEx
.Equal(new[] { "b", "c" }, r3.Properties.Aliases);
322
AssertEx
.Equal(r.Properties.Aliases, r4.Properties.Aliases);
332
AssertEx
.Equal(new[] { "x" }, r6.Properties.Aliases);
349
AssertEx
.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
361
AssertEx
.Equal(new[] { "x" }, r3.Properties.Aliases);
380
AssertEx
.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
392
AssertEx
.Equal(new[] { "x" }, r3.Properties.Aliases);
PEWriter\InstructionOperandTypesTests.cs (2)
46
AssertEx
.Equal(OneByteOperandTypes, InstructionOperandTypes.OneByte);
47
AssertEx
.Equal(TwoByteOperandTypes, InstructionOperandTypes.TwoByte);
SourceFileResolverTest.cs (2)
37
AssertEx
.Fail("Didn't throw");
60
AssertEx
.Fail("Didn't throw");
Symbols\SpecialTypeTests.cs (7)
15
AssertEx
.Equal("0", ((ExtendedSpecialType)SpecialType.None).ToString());
16
AssertEx
.Equal("System_Object", ((ExtendedSpecialType)1).ToString());
17
AssertEx
.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.Count).ToString());
18
AssertEx
.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.First).ToString());
19
AssertEx
.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T).ToString());
20
AssertEx
.Equal("System_Reflection_MethodInfo", ((ExtendedSpecialType)(InternalSpecialType.NextAvailable - 1)).ToString());
21
AssertEx
.Equal("52", ((ExtendedSpecialType)InternalSpecialType.NextAvailable).ToString());
Text\StringTextTest.cs (4)
238
AssertEx
.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum);
253
AssertEx
.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum);
265
AssertEx
.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum);
280
AssertEx
.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (36)
CommandLineIVTTests.vb (5)
47
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"
148
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"
249
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"
360
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"
478
AssertEx
.AssertEqualToleratingWhitespaceDifferences($"
CommandLineTests.vb (31)
761
AssertEx
.Equal({"System.dll"}, cmd.Arguments.MetadataReferences.Select(Function(r) r.Reference))
762
AssertEx
.Equal(
799
AssertEx
.Equal({"System", "System.Xml", "System.Linq"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
803
AssertEx
.Equal({"System", "Microsoft.VisualBasic", "System.IO"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
942
AssertEx
.Equal({"System", "System.Collections.Generic", "System.Linq", "System.Text"},
2062
AssertEx
.SetEqual({"default", "9", "10", "11", "12", "14", "15", "15.3", "15.5", "16", "16.9", "17.13", "latest"},
2088
AssertEx
.SetEqual(versions, errorCodes)
2331
AssertEx
.Equal({"a", "b", "c"},
2338
AssertEx
.Equal({" ", " b "},
2373
AssertEx
.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2377
AssertEx
.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2446
AssertEx
.Equal({folder.Path + "\c.cpp", folder.Path + "\b\B_e.vb"}, resolvedSourceFiles)
2480
AssertEx
.Equal({"a", "b", "c"},
2487
AssertEx
.Equal({" ", " b "},
3204
AssertEx
.Equal(File.ReadAllBytes(sl.Path), blob)
3233
AssertEx
.Equal(File.ReadAllBytes(sl.Path), blob)
3247
AssertEx
.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles)
3248
AssertEx
.Equal(
3254
AssertEx
.Equal(
3260
AssertEx
.Equal(
3266
AssertEx
.Equal(
3272
AssertEx
.Equal(
3278
AssertEx
.Equal(
3284
AssertEx
.Equal(
3290
AssertEx
.Equal(
3566
AssertEx
.Equal(ImmutableArray.Create(Of String)(), args.KeyFileSearchPaths)
3578
AssertEx
.Equal(ImmutableArray.Create(sdkPath), parser.ReferencePaths)
3597
AssertEx
.Equal(ImmutableArray(Of String).Empty, parser.ReferencePaths)
3606
AssertEx
.Equal(ImmutableArray.Create(sdkDir.Path), parser.ReferencePaths)
5790
AssertEx
.Equal(
5794
AssertEx
.Equal(expectedOptions, actualOrdered.Select(Function(entry) entry.Value))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (170)
Attributes\AssemblyAttributes.vb (27)
795
AssertEx
.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8},
799
AssertEx
.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D},
826
AssertEx
.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8},
830
AssertEx
.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D},
857
AssertEx
.Equal(New Byte() {&H24, &H22, &H3, &HC3, &H94, &HD5, &HC2, &HD9, &H99, &HB3, &H6D, &H59, &HB2, &HCA, &H23, &HBC},
861
AssertEx
.Equal(New Byte() {&H8D, &HFE, &HBF, &H49, &H8D, &H62, &H2A, &H88, &H89, &HD1, &HE, &H0, &H9E, &H29, &H72, &HF1},
888
AssertEx
.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8},
892
AssertEx
.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D},
918
AssertEx
.Equal(New Byte() {&HA2, &H32, &H3F, &HD, &HF4, &HB8, &HED, &H5A, &H1B, &H7B, &HBE, &H14, &H4F, &HEC, &HBF, &H88, &H23, &H61, &HEB, &H40, &HF7, &HF9, &H46, &HEF, &H68, &H3B, &H70, &H29, &HCF, &H12, &H5, &H35},
922
AssertEx
.Equal(New Byte() {&HCC, &HAE, &HA0, &HB4, &H9E, &HAE, &H28, &HE0, &HA3, &H46, &HE9, &HCF, &HF3, &HEF, &HEA, &HF7,
949
AssertEx
.Equal(New Byte() {&HB6, &H35, &H9B, &HBE, &H82, &H89, &HFF, &H1, &H22, &H8B, &H56, &H5E, &H9B, &H15, &H5D, &H10,
955
AssertEx
.Equal(New Byte() {&H45, &H5, &H2E, &H90, &H9B, &H61, &HA3, &HF8, &H60, &HD2, &H86, &HCB, &H10, &H33, &HC9, &H86,
983
AssertEx
.Equal(New Byte() {&H5F, &H4D, &H7E, &H63, &HC9, &H87, &HD9, &HEB, &H4F, &H5C, &HFD, &H96, &H3F, &H25, &H58, &H74,
990
AssertEx
.Equal(New Byte() {&H79, &HFE, &H97, &HAB, &H8, &H8E, &HDF, &H74, &HC2, &HEF, &H84, &HBB, &HFC, &H74, &HAC, &H60,
1933
AssertEx
.SetEqual({
2046
Assert.True(expectedStr.Equals(actualStr),
AssertEx
.GetAssertMessage(expectedStr, actualStr))
2275
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2276
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2277
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
2278
AssertEx
.Equal("A1(1)", attrs(3).ToString())
2346
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2347
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2348
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
2349
AssertEx
.Equal("A1(GetType(C1))", attrs(3).ToString())
2381
AssertEx
.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2382
AssertEx
.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2383
AssertEx
.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
Attributes\AttributeTests.vb (3)
427
AssertEx
.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(get_AP.GetAttributes()))
435
AssertEx
.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(set_AP.GetAttributes()))
4396
AssertEx
.NotEqual(nullArray, emptyArray)
Attributes\AttributeTests_Conditional.vb (4)
205
AssertEx
.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(eventE.AddMethod.GetAttributes()))
206
AssertEx
.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(eventE.RemoveMethod.GetAttributes()))
241
AssertEx
.SetEqual({"PreservedAppliedAttribute",
266
AssertEx
.SetEqual(expectedAttributeNames, actualAttributeNames)
Attributes\AttributeTests_Synthesized.vb (29)
72
AssertEx
.SetEqual(expectedAttrs, actualAttrs)
110
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
116
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
122
AssertEx
.SetEqual(expected.Concat("AccessedThroughPropertyAttribute"), GetAttributeNames(attrs))
167
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
170
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
173
AssertEx
.SetEqual(New String() {}, GetAttributeNames(attrs))
176
AssertEx
.SetEqual(New String() {}, GetAttributeNames(attrs))
179
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
182
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
185
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
188
AssertEx
.SetEqual(expected, GetAttributeNames(attrs))
283
AssertEx
.SetEqual(expectedNames, GetAttributeNames(baseWrapper.GetAttributes()))
339
AssertEx
.SetEqual(expectedNames, GetAttributeNames(baseWrapper.GetAttributes()))
372
AssertEx
.SetEqual({"CompilerGeneratedAttribute"}, actual)
392
AssertEx
.SetEqual(expected, actual)
423
AssertEx
.SetEqual({"CompilerGeneratedAttribute", "DebuggerDisplayAttribute"}, actual)
437
AssertEx
.SetEqual(expected, actual)
531
AssertEx
.SetEqual({"DebuggerDisplayAttribute", "CompilerGeneratedAttribute"}, GetAttributeNames(anon.GetAttributes()))
562
AssertEx
.SetEqual(expected, actual)
1463
AssertEx
.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1490
AssertEx
.SetEqual({"AsyncStateMachineAttribute", "DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1520
AssertEx
.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1550
AssertEx
.SetEqual({"AsyncStateMachineAttribute", "DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1578
AssertEx
.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1631
AssertEx
.SetEqual({"DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1661
AssertEx
.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
1695
AssertEx
.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
1725
AssertEx
.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
Attributes\AttributeTests_Tuples.vb (2)
247
AssertEx
.Equal(srcMembers, peMembers)
437
AssertEx
.Equal(expectedElementNames, actualElementNames)
Attributes\AttributeTests_WellKnownAttributes.vb (3)
724
AssertEx
.SetEqual({"System.SerializableAttribute", "BobAttribute"}, typeC.GetAttributes().Select(Function(a) a.ToString()))
738
AssertEx
.SetEqual({"System.SerializableAttribute", "BobAttribute"}, typeC1.GetAttributes().Select(Function(a) a.ToString()))
747
AssertEx
.SetEqual({"BobAttribute"}, typeC2.GetAttributes().Select(Function(a) a.ToString()))
Attributes\InternalsVisibleToAndStrongNameTests.vb (5)
393
AssertEx
.Equal(identity.PublicKey, s_publicKey)
426
AssertEx
.Equal(identity.PublicKey, s_publicKey)
1143
AssertEx
.Equal(Of Byte)(pubKeyTokenBytes, comp.Assembly.Identity.PublicKeyToken)
1161
AssertEx
.Equal(Of Byte)(pubKeyTokenBytes, comp2.Assembly.Identity.PublicKeyToken)
1168
AssertEx
.Equal(Of Byte)(pubKeyTokenBytes, comp3.Assembly.Identity.PublicKeyToken)
CodeGen\CodeGenClosureLambdaTests.vb (6)
3492
AssertEx
.Equal({
3500
AssertEx
.SetEqual({
3509
AssertEx
.SetEqual({
3518
AssertEx
.SetEqual({
3527
AssertEx
.SetEqual({
3581
AssertEx
.SetEqual({
CodeGen\CodeGenLateBound.vb (1)
2399
AssertEx
.Equal(
CodeGen\CodeGenTests.vb (1)
10669
AssertEx
.SetEqual({"<Module>",
CodeGen\CodeGenTuples.vb (13)
11150
AssertEx
.SetEqual(xSymbol.GetMembers().OfType(Of FieldSymbol)().Select(Function(f) f.Name),
14927
AssertEx
.Equal({
14970
AssertEx
.Equal({
15011
AssertEx
.Equal({
15044
AssertEx
.Equal({
15062
AssertEx
.Equal({
15281
AssertEx
.Equal(baseLine, symbols.Select(Function(s) s.ToTestDisplayString()))
16302
AssertEx
.Equal({".ctor", "Item1", "Item2", "ToString"},
16304
AssertEx
.Equal({".ctor", "Item1", "a2", "Item2", "b2", "ToString"},
22687
AssertEx
.SetEqual({"I1(Of System.String)"}, imc1.InterfacesNoUseSiteDiagnostics().Select(Function(i) i.ToTestDisplayString()))
22688
AssertEx
.SetEqual({"I1(Of System.String)", "I2(Of System.String, (a As System.Object, b As System.Object))"}, imc1.AllInterfacesNoUseSiteDiagnostics.Select(Function(i) i.ToTestDisplayString()))
22701
AssertEx
.SetEqual({"I1(Of System.String)"}, imc2.InterfacesNoUseSiteDiagnostics().Select(Function(i) i.ToTestDisplayString()))
22702
AssertEx
.SetEqual({"I1(Of System.String)", "I2(Of System.String, (a As System.Object, b As System.Object))"}, imc2.AllInterfacesNoUseSiteDiagnostics.Select(Function(i) i.ToTestDisplayString()))
CodeGen\CodeGenWinMdDelegates.vb (2)
38
AssertEx
.SetEqual((From s In actualMembers Select s.Name), expectedMembers)
93
AssertEx
.SetEqual((From member In nodeSymbol.GetMembers() Select member.Name),
Emit\CompilationEmitTests.vb (33)
654
AssertEx
.Equal(expectedMethods,
666
AssertEx
.Equal(
689
AssertEx
.Empty(attributes.Select(Function(a) MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor)))
706
AssertEx
.Equal(
1071
AssertEx
.Equal(image1, image2)
1073
AssertEx
.NotEqual(image1, image2)
1478
AssertEx
.SetEqual(
1482
AssertEx
.Equal(
1496
AssertEx
.SetEqual(
1510
AssertEx
.SetEqual(
1514
AssertEx
.Equal(
1528
AssertEx
.SetEqual(
1544
AssertEx
.SetEqual(
1548
AssertEx
.SetEqual(
1558
AssertEx
.SetEqual(
1595
AssertEx
.SetEqual(
1599
AssertEx
.Equal(
1612
AssertEx
.SetEqual(
1616
AssertEx
.Equal(
1631
AssertEx
.SetEqual(
1635
AssertEx
.SetEqual(
1673
AssertEx
.SetEqual(
1677
AssertEx
.Equal(
1691
AssertEx
.SetEqual(
1695
AssertEx
.Equal(
1711
AssertEx
.SetEqual(
1715
AssertEx
.SetEqual(
1743
AssertEx
.SetEqual(
1747
AssertEx
.SetEqual(
2463
AssertEx
.Equal(Of String)("C.dll", m.GlobalNamespace.ContainingModule.ToString)
2599
AssertEx
.Fail("Unable to find type:" + typeName)
2615
AssertEx
.Fail("Unable to find method:" + methodName)
4440
AssertEx
.Equal(expectedNames, actualNames)
Emit\DeterministicTests.vb (5)
63
AssertEx
.Equal(result1, result2)
67
AssertEx
.Equal(result3, result4)
71
AssertEx
.Equal(result5, result6)
85
AssertEx
.Equal(result1, result2)
89
AssertEx
.Equal(result3, result4)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (2)
842
AssertEx
.Equal(expected, reader.GetSpans(methodData.Blob).Select(Function(s) $"({s.StartLine},{s.StartColumn})-({s.EndLine},{s.EndColumn})"))
855
AssertEx
.Equal(expected, actual)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
352
AssertEx
.Equal(expected, reader.GetAssemblyReferences().Select(Function(aref) $"{reader.GetString(aref.Name)}, {aref.Version}"))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (7)
4015
AssertEx
.Equal(
4028
AssertEx
.Equal(
7073
AssertEx
.Equal(
7420
AssertEx
.Equal(
7429
AssertEx
.Equal(
7574
AssertEx
.Equal(
8178
AssertEx
.Equal(
Emit\EditAndContinue\EditAndContinueTestBase.vb (9)
212
AssertEx
.Equal(
222
AssertEx
.Equal(
232
AssertEx
.Equal(
242
AssertEx
.Equal(
253
AssertEx
.Equal(expectedNames, actualNames)
264
AssertEx
.Equal(expectedNames, actualNames)
275
AssertEx
.Equal(expectedNames, entityHandles.Select(
293
AssertEx
.Equal(expectedValue, attributeData)
302
AssertEx
.Equal(expectedValue, attributeData)
Emit\EditAndContinue\EditAndContinueTests.vb (4)
4493
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedIL0, actualIL0)
4817
AssertEx
.Equal({"[0x23000002] 0x0000020d.0x0000021a"}, DumpTypeRefs(md1.Reader))
4837
AssertEx
.Equal({"[0x23000003] 0x00000256.0x00000263"}, DumpTypeRefs(md2.Reader))
4909
AssertEx
.Equal({"[0x23000003] 0x00000289.0x00000296"}, DumpTypeRefs(md2.Reader))
Emit\EmitMetadata.vb (3)
101
AssertEx
.AssertEqualToleratingWhitespaceDifferences("
336
AssertEx
.Equal(
545
AssertEx
.SetEqual({"CompilationRelaxationsAttribute", "RuntimeCompatibilityAttribute", "DebuggableAttribute", "DebuggingModes", "Object", "Array"}, list)
PDB\PDBAsyncTests.vb (1)
901
AssertEx
.AssertEqualToleratingWhitespaceDifferences("
PDB\PDBIteratorTests.vb (1)
562
AssertEx
.AssertEqualToleratingWhitespaceDifferences("
PDB\PortablePdbTests.vb (6)
86
AssertEx
.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
100
AssertEx
.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
139
AssertEx
.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
154
AssertEx
.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
211
AssertEx
.Equal(sourceLinkBlob, actualBlob)
248
AssertEx
.Equal(sourceLinkBlob, actualBlob)
PDB\TypeDefinitionDocumentTests.vb (1)
363
AssertEx
.Equal(expected, actual, itemSeparator:=", ", itemInspector:=Function(i) $"(""{i.Item1}"", ""{i.Item2}"")")
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
53
AssertEx
.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Of DebugDirectoryEntryType)(Function(e) e.Type))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (11)
CommandLineRunnerTests.vb (11)
36
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + "
48
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + "
65
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + "
75
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + "
89
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + "
113
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
147
AssertEx
.AssertEqualToleratingWhitespaceDifferences(
168
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString())
172
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString())
176
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString())
180
AssertEx
.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (135)
Binding\BindingCollectionInitializerTests.vb (1)
1850
AssertEx
.Equal({"Sub X.Add(x As System.Collections.Generic.List(Of System.Byte))",
Binding\LookupTests.vb (33)
1625
AssertEx
.Equal({"System.ComponentModel", "System.Windows.Forms.ComponentModel"},
1629
AssertEx
.Equal({"System.ComponentModel", "System.Windows.Forms.ComponentModel"},
1675
AssertEx
.Equal({"System.Diagnostics", "Windows.Foundation.Diagnostics"},
1679
AssertEx
.Equal({"System.Diagnostics", "Windows.Foundation.Diagnostics"},
1744
AssertEx
.Equal({"NS1.NS3", "NS2.NS3"},
1748
AssertEx
.Equal({"NS1.NS3", "NS2.NS3"},
1931
AssertEx
.Equal({"NS1.NS6.NS7.T1", "NS2.NS6.NS7.T1", "NS4.NS6.NS7.T1", "NS5.NS6.NS7.T1"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
1939
AssertEx
.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS4.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
1947
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS4.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
1949
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"},
1953
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"},
1963
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
1972
AssertEx
.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS4.NS6.NS7", "NS5.NS6.NS7", "NS9.NS6.NS7"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
1980
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2115
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"},
2119
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"},
2243
AssertEx
.Equal({"Sub NS1.NS6.NS7.T1.M1()", "Sub NS2.NS6.NS7.T1.M1()", "Sub NS5.NS6.NS7.T1.M1()"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2250
AssertEx
.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2257
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2259
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2263
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2356
AssertEx
.Equal({"Sub NS1.NS6.NS7.T1.M1(x As System.Int32)", "Sub NS1.NS6.NS7.T1.M1(x As System.Int64)"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2370
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2374
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2471
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2475
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2601
AssertEx
.Equal({"NS1.NS6.NS7.Module1.T1", "NS2.NS6.NS7.Module1.T1", "NS5.NS6.NS7.Module1.T1"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2608
AssertEx
.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2615
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray())
2617
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2621
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2748
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
2752
AssertEx
.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
Compilation\CompilationAPITests.vb (27)
384
AssertEx
.Equal(Of Boolean)(False, comp.IsCaseSensitive)
564
AssertEx
.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(compCollection1.References))
566
AssertEx
.Equal(Of Integer)(3, Enumerable.Count(Of MetadataReference)(c2.References))
570
AssertEx
.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(compCollection2.References))
572
AssertEx
.Equal(Of Integer)(3, Enumerable.Count(Of MetadataReference)(c3.References))
576
AssertEx
.Equal(Of Integer)(2, Enumerable.Count(Of AssemblyIdentity)(RefAsm_Names))
587
AssertEx
.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(c2.References))
799
AssertEx
.Equal(Of Boolean)(False, b1)
802
AssertEx
.Equal(Of Boolean)(True, b1)
805
AssertEx
.Equal(Of Boolean)(False, comp.ContainsSyntaxTree(xt))
816
AssertEx
.Equal(Of Integer)(1, comp.SyntaxTrees.Length)
817
AssertEx
.Equal(Of String)("Object", comp.ObjectType.Name)
1708
AssertEx
.Equal(Array.Empty(Of CodeAnalysis.NullableAnnotation)(), GetAnonymousTypeNullableAnnotations(type))
1720
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1726
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1749
AssertEx
.Equal(display, result)
1765
AssertEx
.Equal(display, result)
1774
AssertEx
.Equal("Public Shared Operator &(left As String, right As String) As String", result)
1784
AssertEx
.Equal("Public Shared Operator Like(left As String, right As String) As Boolean", result)
1795
AssertEx
.Equal(display, result)
1811
AssertEx
.Equal("Public Shared Operator +(left As Integer, right As Integer) As Integer", result)
1854
AssertEx
.Equal(display, result)
1898
AssertEx
.Equal("Public Shared Operator +(value As Integer) As Integer", result)
1949
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1956
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1981
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1988
AssertEx
.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
Compilation\ReferenceManagerTests.vb (5)
565
AssertEx
.SetEqual({"mscorlib 4.0", "RefLibV1 1.0", "Lib 2.0"}, reader.DumpAssemblyReferences())
1497
AssertEx
.Equal(moduleReferences1, moduleReferences2)
1718
AssertEx
.Equal(
1753
AssertEx
.Equal(
2052
AssertEx
.Equal(
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (2)
1942
AssertEx
.Equal(Of Accessibility)(Accessibility.NotApplicable, symLabel.DeclaredAccessibility)
2628
AssertEx
.Equal(Of ISymbol)(nsSymbolA, memSymbol)
FlowAnalysis\FlowTestBase.vb (13)
228
AssertEx
.Equal(If(alwaysAssigned, {}), analysis.AlwaysAssigned.Select(Function(s) s.Name).ToArray())
229
AssertEx
.Equal(If(captured, {}), analysis.Captured.Select(Function(s) s.Name).ToArray())
230
AssertEx
.Equal(If(dataFlowsIn, {}), analysis.DataFlowsIn.Select(Function(s) s.Name).ToArray())
231
AssertEx
.Equal(If(dataFlowsOut, {}), analysis.DataFlowsOut.Select(Function(s) s.Name).ToArray())
232
AssertEx
.Equal(If(definitelyAssignedOnEntry, {}), analysis.DefinitelyAssignedOnEntry.Select(Function(s) s.Name).ToArray())
233
AssertEx
.Equal(If(definitelyAssignedOnExit, {}), analysis.DefinitelyAssignedOnExit.Select(Function(s) s.Name).ToArray())
234
AssertEx
.Equal(If(readInside, {}), analysis.ReadInside.Select(Function(s) s.Name).ToArray())
235
AssertEx
.Equal(If(readOutside, {}), analysis.ReadOutside.Select(Function(s) s.Name).ToArray())
236
AssertEx
.Equal(If(variablesDeclared, {}), analysis.VariablesDeclared.Select(Function(s) s.Name).ToArray())
237
AssertEx
.Equal(If(writtenInside, {}), analysis.WrittenInside.Select(Function(s) s.Name).ToArray())
238
AssertEx
.Equal(If(writtenOutside, {}), analysis.WrittenOutside.Select(Function(s) s.Name).ToArray())
239
AssertEx
.Equal(If(capturedInside, {}), analysis.CapturedInside.Select(Function(s) s.Name).ToArray())
240
AssertEx
.Equal(If(capturedOutside, {}), analysis.CapturedOutside.Select(Function(s) s.Name).ToArray())
Semantics\FieldInitializerBindingTests.vb (22)
908
AssertEx
.Equal(_ZERO4, actual)
979
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
981
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
987
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
989
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
995
AssertEx
.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
997
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
1003
AssertEx
.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1005
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1011
AssertEx
.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1013
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
1019
AssertEx
.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1021
AssertEx
.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1027
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1034
AssertEx
.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1041
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1048
AssertEx
.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1055
AssertEx
.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1062
AssertEx
.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1320
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1325
AssertEx
.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1330
AssertEx
.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
Semantics\ForeachTest.vb (12)
1161
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo.GetEnumeratorMethod)
1162
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo.CurrentProperty)
1163
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo.MoveNextMethod)
1164
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo.DisposeMethod)
1201
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo.GetEnumeratorMethod)
1202
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo.CurrentProperty)
1203
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo.MoveNextMethod)
1204
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo.DisposeMethod)
1257
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo0.CurrentProperty)
1258
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo0.MoveNextMethod)
1259
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo0.DisposeMethod)
1265
AssertEx
.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo1.GetEnumeratorMethod) ' No longer using System.Array method.
Semantics\GotoTests.vb (9)
210
AssertEx
.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
241
AssertEx
.Equal(Of ISymbol)(declaredSymbol0, semanticSummary0.Symbol)
250
AssertEx
.Equal(Of ISymbol)(declaredSymbol0, semanticSummary1.Symbol)
284
AssertEx
.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
318
AssertEx
.NotEqual(Of ISymbol)(declaredSymbolOuter, semanticSummary.Symbol)
319
AssertEx
.Equal(Of ISymbol)(declaredSymbolInner, semanticSummary.Symbol)
357
AssertEx
.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
393
AssertEx
.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
427
AssertEx
.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
Semantics\NonTrailingNamedArgumentsTests.vb (3)
404
AssertEx
.Equal({"Sub C.M(a As System.Int32, b As System.Int32, [c As System.Int32 = 1])"},
436
AssertEx
.Equal({"Sub C.M(a As System.Int32, b As System.Int32, [c As System.Int32 = 1], [d As System.Int32 = 2])"},
467
AssertEx
.Equal({"Sub C.M(ParamArray c As System.Int32())"},
Semantics\RefFieldTests.vb (2)
177
AssertEx
.Equal(expectedMembers, fieldMembers.Select(Function(f) f.ToTestDisplayString()))
185
AssertEx
.Equal(expectedReferences, fieldReferences.Select(Function(f) f.ToTestDisplayString()))
Semantics\RequiredMembersTests.vb (6)
75
AssertEx
.Equal({"Property Base.Field As System.Int32"}, vbDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString()))
80
AssertEx
.Equal({"Property Base.Field As System.Int32"}, vbDerivedDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString()))
220
AssertEx
.Empty(vbDerivedDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString()))
1423
AssertEx
.Equal(Of Symbol)({field, prop}, From kvp In c.AllRequiredMembers
2077
AssertEx
.Equal(
2167
AssertEx
.Equal(
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (45)
CompilationAPITests.vb (11)
38
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
64
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
84
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
86
AssertEx
.Equal("N.C(Of T)", types(1).ToTestDisplayString())
108
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
136
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
137
AssertEx
.Equal("N.C(Of T)", types(1).ToTestDisplayString())
170
AssertEx
.Equal("N.C(Of T)", types(0).ToTestDisplayString())
172
AssertEx
.Equal("N.C(Of T)", types(1).ToTestDisplayString())
173
AssertEx
.Equal("N.C(Of T)", types(2).ToTestDisplayString())
215
AssertEx
.Equal(types.Select(Function(t) t.ToTestDisplayString()), {"C", "C", "C"})
DocumentationComments\DocCommentTests.vb (1)
11783
AssertEx
.None(m.GetReferencedAssemblies(), Function(id) id.Name.Contains("GeneralPia"))
SymbolDisplay\SymbolDisplayTests.vb (2)
6105
AssertEx
.Equal(expectedText, parts.ToDisplayString())
6108
AssertEx
.Equal(kinds, parts.Select(Function(p) p.Kind), itemInspector:=Function(p) $" SymbolDisplayPartKind.{p}")
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (1)
41
AssertEx
.SetEqual(actual, expected)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (2)
147
AssertEx
.Equal(Of ISymbol)(localType, symbol)
179
AssertEx
.Equal(Of ISymbol)(member, propSymbol)
SymbolsTests\Metadata\MetadataMemberTests.vb (1)
753
AssertEx
.None(type.GetMembersUnordered().AsEnumerable(), Function(symbol) symbol.Name.StartsWith("_VtblGap", StringComparison.Ordinal))
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1561
AssertEx
.All(references, Function(ref) model.GetSymbolInfo(ref).Symbol.Equals(eventSymbol))
1565
AssertEx
.All(references, Function(ref) model.GetTypeInfo(ref).Type.Equals(actionType))
SymbolsTests\ParamsCollectionTests.vb (4)
80
AssertEx
.Equal("Public Shared Sub M1(a As System.Collections.Generic.IEnumerable(Of Integer))", SymbolDisplay.ToDisplayString(m1))
81
AssertEx
.Equal("Public Shared Sub M2(ParamArray a As Integer())", SymbolDisplay.ToDisplayString(m2))
95
AssertEx
.Equal("Sub C1.M1(a As System.Collections.Generic.IEnumerable(Of System.Int32))", comp1.GetMember("C1.M1").ToTestDisplayString())
96
AssertEx
.Equal("Sub C1.M2(ParamArray a As System.Int32())", comp1.GetMember("C1.M2").ToTestDisplayString())
SymbolsTests\RefStructInterfacesTests.vb (4)
82
AssertEx
.Equal("A(Of T)", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints))
86
AssertEx
.Equal("B(Of S)", b.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints))
90
AssertEx
.Equal("C(Of T)", c.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints))
94
AssertEx
.Equal("C(Of S)", c.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints))
SymbolsTests\Source\BindingsTests.vb (1)
492
AssertEx
.Equal(Of ISymbol)(importsYellowSymInfo.Type, symbol)
SymbolsTests\Source\ClsComplianceTests.vb (4)
1653
AssertEx
.Any(m.GetAttributes(), predicate)
1655
AssertEx
.None(m.GetAttributes(), predicate)
1659
AssertEx
.Any(m.ContainingAssembly.GetAttributes(), predicate)
1661
AssertEx
.None(m.ContainingAssembly.GetAttributes(), predicate)
SymbolsTests\Source\ComClassTests.vb (1)
251
Assert.True(expectedStr.Equals(actualStr),
AssertEx
.GetAssertMessage(expectedStr, actualStr))
SymbolsTests\Source\PropertyTests.vb (3)
7983
AssertEx
.SetEqual((From s In actualMembers
8036
AssertEx
.SetEqual((From member In members Select member.Name),
8048
AssertEx
.SetEqual((From member In members Select member.Name),
SymbolsTests\Source\SourceSymbolTests.vb (2)
681
AssertEx
.Equal({"", "N3", "N0", "N", "", "N4", "N"}, comp2.Declarations.NamespaceNames.ToArray())
682
AssertEx
.Equal({"C3", "C0", "S", "C", "C4", "C"}, comp2.Declarations.TypeNames.ToArray())
SymbolsTests\Source\TypeTests.vb (1)
1787
AssertEx
.Equal(typeGoo.Locations, instanceConstructor.Locations)
SymbolsTests\TypedConstantTests.vb (2)
41
AssertEx
.Equal(Of Object)(common.Type, lang.Type)
54
AssertEx
.Equal(Of Object)(commonArray.Type, langArray.Type)
UsedAssembliesTests.vb (3)
88
AssertEx
.Equal(expected, used.Skip(1))
90
AssertEx
.Equal(expected, used)
134
AssertEx
.Equal(comp.References.Where(Function(r) r.Properties.Kind = MetadataImageKind.Assembly), comp.GetUsedAssemblyReferences())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (23)
LocationTests.vb (5)
125
AssertEx
.Equal(
155
AssertEx
.Equal(
180
AssertEx
.Equal(
200
AssertEx
.Equal(
225
AssertEx
.Equal(
Parser\ParseXml.vb (1)
3547
AssertEx
.All(kinds1, Function(k) k = SyntaxKind.XmlNameToken)
Parser\VisualBasicParseOptionsTests.vb (8)
60
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable)
64
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable)
68
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable)
72
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable)
75
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "exe")}, symbols.AsEnumerable)
78
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winexe")}, symbols.AsEnumerable)
113
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "appcontainerexe")}, symbols.AsEnumerable)
116
AssertEx
.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winmdobj")}, symbols.AsEnumerable)
Parser\XmlDocComments.vb (9)
577
AssertEx
.Equal(Of String)(expected, actual)
597
AssertEx
.Equal(Of String)(expected, actual)
625
AssertEx
.Equal(Of String)(expected, actual)
668
AssertEx
.Equal(Of String)(expected, actual)
694
AssertEx
.Equal(Of String)(expected, actual)
721
AssertEx
.Equal(Of String)(expected, actual)
752
AssertEx
.Equal(Of String)(expected, actual)
777
AssertEx
.Equal(Of String)(expected, actual)
802
AssertEx
.Equal(Of String)(expected, actual)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (2)
107
AssertEx
.Equal(resolvedReferences, used)
963
AssertEx
.Equal(expectedPooledBuilder.ToStringAndFree(), actualPooledBuilder.ToStringAndFree())
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
CaseCorrection\VisualBasicCaseCorrectionTestBase.vb (1)
22
AssertEx
.EqualOrDiff(expected, actual.ToString())
CodeGeneration\AddImportsTests.vb (1)
110
AssertEx
.EqualOrDiff(simplifiedText, actualText)
CodeGeneration\SyntaxGeneratorTests.vb (1)
45
AssertEx
.Equal(fixedExpectations, normalized)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
MSBuildWorkspaceTestBase.cs (1)
29
AssertEx
.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind == WorkspaceDiagnosticKind.Failure).Select(d => d.Message));
NewlyCreatedProjectsFromDotNetNew.cs (3)
224
AssertEx
.Empty(workspace.Diagnostics, $"The following workspace diagnostics are being reported for the template.");
240
AssertEx
.Empty(unnecessaryIgnoreDiagnostics, $"The following diagnostics are unnecessarily being ignored for the template.");
245
AssertEx
.Empty(filteredDiagnostics, $"The following compiler diagnostics are being reported for the template.");
VisualStudioMSBuildWorkspaceTests.cs (3)
1840
AssertEx
.Equal(
1867
AssertEx
.Equal(
3217
AssertEx
.Equal(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Formatting\FormattingTestBase.cs (1)
130
AssertEx
.EqualOrDiff(expected, actual);
Workspaces\TestWorkspace_XmlConsumption.cs (1)
669
AssertEx
.Fail($"The document attributes on file {fileName} conflicted");
Microsoft.CodeAnalysis.Workspaces.UnitTests (63)
CodeCleanup\CodeCleanupTests.cs (1)
411
AssertEx
.Equal(expectedSpans, sortedSpans);
CodeCleanup\ReduceTokenTests.cs (1)
2011
AssertEx
.EqualOrDiff(expectedResult, (await cleanDocument.GetSyntaxRootAsync()).ToFullString());
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (2)
1447
AssertEx
.EqualOrDiff(expectedResult, actualResult);
1458
AssertEx
.NotNull(project.ParseOptions);
Formatter\FormatterTests.cs (3)
59
AssertEx
.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 4, IndentationSize = 4, NewLine = \r\n }", formattedText.ToString());
100
AssertEx
.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = True, TabSize = 5, IndentationSize = 6, NewLine = \r }", formattedText.ToString());
105
AssertEx
.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 1, IndentationSize = 7, NewLine = \n }", formattedText.ToString());
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
53
AssertEx
.EqualOrDiff(expectedMergedText, mergedSolution.GetDocument(documentIds[i]).GetTextAsync().Result.ToString());
Remote\ServiceDescriptorTests.cs (3)
195
AssertEx
.Equal(new byte[] { 0x3f }, deserialized.GetBytes("\u1234"));
341
AssertEx
.Empty(errors, "Types are not MessagePack-serializable");
371
AssertEx
.SetEqual(descriptorsWithCallbackServiceTypes, callbackDispatcherServiceTypes);
SolutionTests\SolutionTests.cs (30)
231
AssertEx
.Equal([documentId], newSolution1.GetDocumentIdsWithFilePath(path));
1224
AssertEx
.AreEqual([projectReference], newProject.ProjectReferences);
1225
AssertEx
.AreEqual([metadataReference], newProject.MetadataReferences);
1226
AssertEx
.AreEqual([analyzerReference], newProject.AnalyzerReferences);
1229
AssertEx
.SetEqual([d1, d3], newProject.DocumentIds);
1250
AssertEx
.SetEqual([a1, a3], newProject.AdditionalDocumentIds);
1271
AssertEx
.SetEqual([c1, c3], newProject.AnalyzerConfigDocumentIds);
1500
AssertEx
.AreEqual(objDir, project.CompilationOutputInfo.GetEffectiveGeneratedFilesOutputDirectory());
1506
AssertEx
.AreEqual(otherDir, project.CompilationOutputInfo.GetEffectiveGeneratedFilesOutputDirectory());
1983
AssertEx
.Equal((ProjectReference[])[projectRef2], solution3.GetProject(projectId)!.ProjectReferences);
1984
AssertEx
.Equal((ProjectReference[])[projectRef2, externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences);
2016
AssertEx
.Equal((ProjectReference[])[projectRef2], solution2.GetProject(projectId)!.AllProjectReferences);
2020
AssertEx
.Equal((ProjectReference[])[externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences);
2103
AssertEx
.Equal((MetadataReference[])[metadataRef1, metadataRef2], solution3.GetProject(projectId)!.MetadataReferences);
2126
AssertEx
.Equal((MetadataReference[])[metadataRef2], solution2.GetProject(projectId)!.MetadataReferences);
2173
AssertEx
.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.GetProject(projectId)!.AnalyzerReferences);
2199
AssertEx
.Equal((AnalyzerReference[])[analyzerRef2], solution2.GetProject(projectId)!.AnalyzerReferences);
2241
AssertEx
.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.AnalyzerReferences);
2265
AssertEx
.Equal((AnalyzerReference[])[analyzerRef2], solution2.AnalyzerReferences);
2371
AssertEx
.Equal(folders, document.Folders);
2401
AssertEx
.Equal(folders, document.Folders);
2429
AssertEx
.Equal(folders, document.Folders);
2458
AssertEx
.Equal(folders, document2.Folders);
2494
AssertEx
.Equal(folders, document2.Folders);
4421
AssertEx
.SetEqual(relatedIds1, ImmutableArray.Create(document1.Id, document2.Id));
4422
AssertEx
.SetEqual(relatedIds2, ImmutableArray.Create(document1.Id, document2.Id));
5280
AssertEx
.SetEqual(
5288
AssertEx
.SetEqual(
5296
AssertEx
.SetEqual(
5303
AssertEx
.SetEqual(
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
328
AssertEx
.SetEqual(expectedGeneratedContents, texts);
TestCompositionTests.cs (12)
31
AssertEx
.SetEqual([assembly1], composition2.Assemblies);
35
AssertEx
.SetEqual([assembly2], composition3.Assemblies);
48
AssertEx
.SetEqual([type1], composition2.Parts);
53
AssertEx
.SetEqual([type2], composition4.Parts);
67
AssertEx
.SetEqual([type1], composition2.ExcludedPartTypes);
74
AssertEx
.SetEqual([type2], composition4.ExcludedPartTypes);
92
AssertEx
.SetEqual([assembly1, assembly2], composition3.Assemblies);
93
AssertEx
.SetEqual([type1, type2], composition3.Parts);
94
AssertEx
.SetEqual([excluded1, excluded2], composition3.ExcludedPartTypes);
98
AssertEx
.SetEqual([assembly2], composition4.Assemblies);
99
AssertEx
.SetEqual([type2], composition4.Parts);
100
AssertEx
.SetEqual([excluded2], composition4.ExcludedPartTypes);
UtilityTest\AsyncLazyTests.cs (4)
111
AssertEx
.NotNull(asyncContinuationRanSynchronously, "The continuation never ran.");
186
AssertEx
.Fail(nameof(AsyncLazy<object>.GetValue) + " did not throw an exception.");
214
AssertEx
.Fail(nameof(AsyncLazy<object>.GetValueAsync) + " did not throw an exception.");
316
AssertEx
.NotNull(arg.asynchronousComputation, $"The asynchronous computation was not expected to be running.");
UtilityTest\IntervalTreeTests.cs (1)
416
AssertEx
.Equal(tree, Enumerable.Range(1, i));
UtilityTest\WeakEventTests.cs (1)
32
AssertEx
.Equal([10, 30], target);
UtilityTest\XmlDocumentationProviderTests.cs (1)
42
AssertEx
.NotNull(xml);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
189
AssertEx
.Equal(
WorkspaceTests\DynamicFileInfoProviderMefTests.cs (1)
26
AssertEx
.SetEqual(["cshtml", "vbhtml"], lazy.Metadata.Extensions);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (11)
DocumentOutline\DocumentOutlineTests.cs (1)
63
AssertEx
.NotNull(response.Value);
EditorConfigSettings\DataProvider\DataProviderTests.cs (4)
127
AssertEx
.Equal(
174
AssertEx
.SetEqual(optionsWithUI.OrderBy(o => o.Name), dataSnapShot.Select(setting => setting.Key.Option).OrderBy(o => o.Name));
196
AssertEx
.Equal(
212
AssertEx
.SetEqual(CSharpFormattingOptions2.EditorConfigOptions, optionsForSettings);
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
190
AssertEx
.Equal(expectedSubmissions, submissions);
Interactive\Commands\ResetInteractiveTests.cs (1)
129
AssertEx
.Equal(expectedSubmissions, executedSubmissionCalls);
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (2)
166
AssertEx
.AreEqual(
172
AssertEx
.AreEqual(path, environment.Workspace.CurrentSolution.Projects.Single().CompilationOutputInfo.GeneratedFilesOutputDirectory);
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (2)
202
AssertEx
.AreEqual(path, environment.Workspace.CurrentSolution.Projects.Single().CompilationOutputInfo.GeneratedFilesOutputDirectory);
206
AssertEx
.AreEqual(
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
UnifiedSettings\UnifiedSettingsTests.vb (1)
88
AssertEx
.Equal(expectedEnumValues, actualEnumValues)
Microsoft.VisualStudio.LanguageServices.UnitTests (23)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (2)
23
AssertEx
.SetEqual(
40
AssertEx
.SetEqual(
MoveToNamespace\VisualStudioMoveToNamespaceServiceTests.vb (5)
21
AssertEx
.Equal({namespaces(0)}, service.History)
24
AssertEx
.Equal({namespaces(1), namespaces(0)}, service.History)
27
AssertEx
.Equal({namespaces(2), namespaces(1), namespaces(0)}, service.History)
30
AssertEx
.Equal({namespaces(3), namespaces(2), namespaces(1)}, service.History)
33
AssertEx
.Equal({namespaces(2), namespaces(3), namespaces(1)}, service.History)
Options\BasicEditorConfigGeneratorTests.vb (2)
166
AssertEx
.EqualOrDiff(expectedText, actualText)
317
AssertEx
.EqualOrDiff(expectedText, actualText)
Options\CSharpEditorConfigGeneratorTests.vb (2)
270
AssertEx
.EqualOrDiff(expectedText, actualText)
528
AssertEx
.EqualOrDiff(expectedText, actualText)
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (7)
138
AssertEx
.Equal(
152
AssertEx
.Equal(
166
AssertEx
.Equal(
176
AssertEx
.Equal(
204
AssertEx
.Equal({path1, path2}, environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Select(Function(r) r.FullPath))
233
AssertEx
.Equal(
274
AssertEx
.Equal(
RQName\RQNameTests.vb (1)
255
AssertEx
.Fail("Could not find symbol")
Snippets\CSharpSnippetExpansionClientTests.vb (1)
397
AssertEx
.EqualOrDiff(expectedUpdatedCode,
Snippets\VisualBasicSnippetExpansionClientTests.vb (1)
419
AssertEx
.EqualOrDiff(expectedUpdatedCode.Replace(vbLf, vbCrLf),
Venus\DocumentService_IntegrationTests.vb (2)
113
AssertEx
.SetEqual(expected, actual)
164
AssertEx
.SetEqual(expected, actual)
Roslyn.Test.PdbUtilities (17)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (10)
67
=>
AssertEx
.Equal(expected, readers.GetStrings(actual), message: GetAssertMessage($"{entityKinds} don't match"), itemSeparator: ", ", itemInspector: s => $"\"{s}\"");
73
AssertEx
.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
79
AssertEx
.AreEqual(expected, MetadataReader.GetTableRowCount(table), message: GetAssertMessage($"{table} table size doesnt't match"));
85
AssertEx
.Equal(
93
AssertEx
.Equal(
101
AssertEx
.Equal(
109
AssertEx
.Equal(
117
AssertEx
.Equal(
140
AssertEx
.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n");
212
AssertEx
.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true);
EditAndContinue\EditAndContinueTestUtilities.cs (3)
86
AssertEx
.Equal(expectedNames, actualNames);
92
AssertEx
.Equal(expectedNames, actualNames);
110
AssertEx
.Equal(expectedNames, entityHandles.Select(handle =>
Reader\PdbValidation.cs (4)
141
AssertEx
.AssertLinesEqual(
309
AssertEx
.AssertLinesEqual(
350
AssertEx
.AssertLinesEqual(
680
AssertEx
.EqualOrDiff(expected, source.Input);
Roslyn.VisualStudio.Next.UnitTests (12)
Remote\SerializationValidator.cs (5)
227
AssertEx
.Equal(collection1.Children, collection2.Children);
234
AssertEx
.Equal(collection1.AttributeChecksums, collection2.AttributeChecksums);
235
AssertEx
.Equal(collection1.TextChecksums, collection2.TextChecksums);
236
AssertEx
.Equal(collection1.Ids, collection2.Ids);
255
AssertEx
.Equals(solutionObject1.Projects.Ids, solutionObject2.Projects.Ids);
Remote\SnapshotSerializationTests.cs (1)
494
AssertEx
.Equal([file1.Path, file2.Path], recovered.GetProject(project.Id).AnalyzerReferences.Select(r => r.FullPath));
Services\SolutionAssetCacheTests.cs (2)
67
AssertEx
.Fail("asset not cleaned up");
122
AssertEx
.Fail("asset not cleaned up");
Services\SolutionServiceTests.cs (4)
186
AssertEx
.SetEqual(isRecovered
230
AssertEx
.SetEqual(
686
AssertEx
.Equal(project2.Name, project2SyncedSolution.Projects.Single().Name);
693
AssertEx
.Equal(project1.Name, project1SyncedSolution.Projects.Single().Name);
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
46
AssertEx
.Equal(new[] { ("expected metadata name", 1) }, errors);
60
AssertEx
.Equal(new[] { ($"unexpected symbol kind: '{kind}'", 1) }, errors);
89
AssertEx
.Equal(new[] { (symbolKinds, $"^{pattern}$", isIncluded) }, patterns.Select(p => (p.SymbolKinds, p.MetadataNamePattern.ToString(), p.IsIncluded)));
VBCSCompiler.UnitTests (5)
CompilerServerTests.cs (4)
238
AssertEx
.Fail($"Deterministic compile failed \n stdout: {result.Output}");
244
AssertEx
.NotNull(bytes);
271
AssertEx
.AssertEqualToleratingWhitespaceDifferences("", result.Output);
1509
AssertEx
.Fail($"Bytes were different at position {i} ({first[i]} vs {second[i]}). Flags used were (\"{finalFlags1}\" vs \"{finalFlags2}\")");
NamedPipeClientConnectionHostTests.cs (1)
137
AssertEx
.NotNull(stream);