4022 references to AssertEx
InteractiveHost.UnitTests (43)
InteractiveHostDesktopTests.cs (26)
82AssertEx.AssertEqualToleratingWhitespaceDifferences(
493AssertEx.AssertEqualToleratingWhitespaceDifferences("", error);
494AssertEx.AssertEqualToleratingWhitespaceDifferences("1", output);
720AssertEx.AssertEqualToleratingWhitespaceDifferences("", error);
721AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
747AssertEx.AssertEqualToleratingWhitespaceDifferences(
800AssertEx.AssertEqualToleratingWhitespaceDifferences("", error);
801AssertEx.AssertEqualToleratingWhitespaceDifferences(
826AssertEx.AssertEqualToleratingWhitespaceDifferences($@"{initFile.Path}(1,3): error CS1002: {CSharpResources.ERR_SemicolonExpected}
829AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
851AssertEx.AssertEqualToleratingWhitespaceDifferences(
864AssertEx.AssertEqualToleratingWhitespaceDifferences($@"(1,8): error CS0234: {string.Format(CSharpResources.ERR_DottedTypeNameNotFoundInNS, "Missing", "Microsoft")}",
951AssertEx.AssertEqualToleratingWhitespaceDifferences("C { P=null }", output);
991AssertEx.AssertEqualToleratingWhitespaceDifferences("120", output);
992AssertEx.AssertEqualToleratingWhitespaceDifferences("System.Exception: Bang!", error);
999AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1000AssertEx.AssertEqualToleratingWhitespaceDifferences("8\r\n", await ReadOutputToEnd());
1003AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1004AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadOutputToEnd());
1007AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1008AssertEx.AssertEqualToleratingWhitespaceDifferences("4\r\n", await ReadOutputToEnd());
1011AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1012AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadOutputToEnd());
1015AssertEx.AssertEqualToleratingWhitespaceDifferences("", await ReadErrorOutputToEnd());
1016AssertEx.AssertEqualToleratingWhitespaceDifferences("8\r\n", await ReadOutputToEnd());
1036AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (39)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (96)
CommandLineTests.cs (92)
225AssertEx.Equal("Class1.cs(1,1): warning ID1000:", output.Trim());
248AssertEx.Equal("", outWriter.ToString());
459AssertEx.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference));
460AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path));
512AssertEx.Equal(new[] { "first.cs", "second.cs", "b.cs", "a.cs", "c.cs", "d.cs", "last.cs" }.Select(prependBasePath), resolvedSourceFiles);
513AssertEx.Equal(new[] { typeof(object).Assembly.Location, @"..\v4.0.30319\System.dll", @".\System.Data.dll" }, references);
514AssertEx.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray());
523AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
535AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
549AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths);
565AssertEx.Equal(ImmutableArray<string>.Empty, parser.ReferencePaths);
607AssertEx.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);
715AssertEx.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);
1194AssertEx.Equal(new[] { "a", "b", "c" },
1201AssertEx.Equal(new[] { " b " },
1237AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs", "{DIR}\\d2\\e.cs" },
1242AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs" },
1272AssertEx.Equal(new[] { "a", "b", "c" },
1279AssertEx.Equal(new[] { " b " },
1732AssertEx.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" },
1770AssertEx.SetEqual(versions, errorCodes);
2261AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
2290AssertEx.Equal(File.ReadAllBytes(sl.Path), blob);
2316AssertEx.Equal(slContent, actualData);
2331AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles);
2332AssertEx.Equal(
2338AssertEx.Equal(
2344AssertEx.Equal(
2350AssertEx.Equal(
2356AssertEx.Equal(
2362AssertEx.Equal(
3602AssertEx.Equal(
3629AssertEx.Equal(
3679AssertEx.Equal("""
3702AssertEx.Equal("""
4678AssertEx.Equal(new[]
5310AssertEx.Equal(new[] { "Goo.Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5314AssertEx.Equal(new[] { "Goo.Bar", "Baz", "System.Core", "System" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5318AssertEx.Equal(new[] { "Goo", "Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5420AssertEx.Equal(
5424AssertEx.Equal(expectedOptions, actualOrdered.Select(entry => entry.Value));
6606AssertEx.Equal(new[] { "a.cs", "b.cs", @"c.cs e.cs", "hello", "world" }, args);
6619AssertEx.Equal(new[] { "a.cs", "b#.cs", "c#d.cs", "#f.cs", "#g.cs #h.cs" }, args);
6626AssertEx.Equal(new[] { @"a\b\c", @"d\\e\\f\\", @"\\\g\\\h\\\i", @"\\\\", @"\\\\\k\\\\\" }, args);
6633AssertEx.Equal(new[] { @"a\""a", @"b\\""b c\\\""c d\\\\""d", @"e\\\\\""e", @"f"" g""" }, args);
6640AssertEx.Equal(new[] { @"/o:""goo.cs""", @"/o:""abc def""\baz", @"""/o:baz bar""bing" }, args);
6651AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path));
8436AssertEx.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[]
8815AssertEx.AssertEqualToleratingWhitespaceDifferences("", outWriter.ToString());
8820AssertEx.Equal(new byte[] { 0x4D, 0x5A }, ReadBytes(libDll.Path, 2));
8821AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8823AssertEx.Equal(new byte[] { 0x4D, 0x69 }, ReadBytes(libPdb.Path, 2));
8824AssertEx.Equal(new[] { (byte)'P', (byte)'D', (byte)'B' }, ReadBytes(fsPdb, 3));
8829AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
8859AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
8880AssertEx.Equal(new[] { (byte)'B', (byte)'S', (byte)'J', (byte)'B' }, ReadBytes(libPdb.Path, 4));
8886AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
8922AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(libDll.Path, 3));
8923AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8927AssertEx.Equal(new[] { "Lib.cs", "Lib.dll" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order());
10034AssertEx.Equal(expectedWarningsAll, compileAndRun(featureOpt: null));
10035AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis"));
10036AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always"));
10037AssertEx.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never"));
10038AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored
10039AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored
10040AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored
10041AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored
10042AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored
11413AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11414AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11417AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path));
11418AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11421AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path));
11422AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments);
11425AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11426AssertEx.Equal(new[] { "--", "b", "c" }, args.ScriptArguments);
11429AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11430AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11433AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11434AssertEx.Equal(new[] { "a", "--", "b", "c" }, args.ScriptArguments);
11438AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11439AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11443AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11444AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments);
11448AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path));
11450AssertEx.Equal(new[] { "--" }, args.ScriptArguments);
11560AssertEx.Equal(expected, CommandLineParser.SplitWithDoubledSeparatorEscaping(str, ','));
11720AssertEx.Equal(programExe32.ReadAllBytes(), programExe64.ReadAllBytes());
11721AssertEx.Equal(programPdb32.ReadAllBytes(), programPdb64.ReadAllBytes());
12231AssertEx.AssertEqualToleratingWhitespaceDifferences(
12237AssertEx.AssertEqualToleratingWhitespaceDifferences("", result.Output.Trim());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (491)
Debugging\ProximityExpressionsGetterTests.Lines.cs (291)
135AssertEx.SetEqual(["expression"], terms);
147AssertEx.SetEqual(["expression"], terms);
159AssertEx.SetEqual(["expression"], terms);
204AssertEx.SetEqual(["position", "expression", "terms"], terms);
216AssertEx.SetEqual(["expression", "position", "terms"], terms);
228AssertEx.SetEqual(["expression", "position", "terms"], terms);
240AssertEx.SetEqual(["expression"], terms);
252AssertEx.SetEqual(["expression"], terms);
275AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
287AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
299AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
311AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
323AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
335AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
347AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
359AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
371AssertEx.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
383AssertEx.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
395AssertEx.SetEqual(["expressionType", "terms", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
407AssertEx.SetEqual(["terms", "expression", "ConvertToString"], terms);
419AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "terms", "expression", "ConvertToString"], terms);
453AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
465AssertEx.SetEqual(["expression", "position", "terms", "expressionType"], terms);
477AssertEx.SetEqual(["expression", "position", "terms", "expressionType"], terms);
489AssertEx.SetEqual(["expression"], terms);
501AssertEx.SetEqual(["expression"], terms);
524AssertEx.SetEqual(["expression", "expression.Kind"], terms);
536AssertEx.SetEqual(["expression", "expression.Kind"], terms);
548AssertEx.SetEqual(["expression", "expression.Kind"], terms);
560AssertEx.SetEqual(["expression", "expression.Kind"], terms);
572AssertEx.SetEqual(["expression", "expression.Kind"], terms);
584AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
596AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
608AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
620AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
632AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
644AssertEx.SetEqual(["expression", "expression.Kind"], terms);
656AssertEx.SetEqual(["expression", "expression.Kind"], terms);
668AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
680AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
692AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
704AssertEx.SetEqual(["expression", "expression.Kind"], terms);
716AssertEx.SetEqual(["expression", "expression.Kind"], terms);
728AssertEx.SetEqual(["expression", "expression.Kind"], terms);
740AssertEx.SetEqual(["expression", "expression.Kind"], terms);
752AssertEx.SetEqual(["expression", "expression.Kind"], terms);
764AssertEx.SetEqual(["expression", "expression.Kind"], terms);
776AssertEx.SetEqual(["expression", "expression.Kind"], terms);
788AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
800AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
812AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
824AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
836AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
848AssertEx.SetEqual(["expression", "expression.Kind"], terms);
860AssertEx.SetEqual(["expression", "expression.Kind"], terms);
872AssertEx.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
884AssertEx.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
896AssertEx.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
908AssertEx.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
920AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
932AssertEx.SetEqual(["expression", "expression.Kind"], terms);
944AssertEx.SetEqual(["expression", "expression.Kind"], terms);
956AssertEx.SetEqual(["expression", "expression.Kind"], terms);
968AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms", "expression.Kind"], terms);
980AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms"], terms);
992AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1004AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1016AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms", "expression.Kind"], terms);
1028AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms"], terms);
1040AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1052AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1064AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms", "expression.Kind"], terms);
1076AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms"], terms);
1088AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1100AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1112AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms", "expression.Kind"], terms);
1124AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms"], terms);
1136AssertEx.SetEqual(["expression", "expression.Kind"], terms);
1148AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1160AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1172AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1184AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1196AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
1208AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax"], terms);
1220AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms", "PrefixUnaryExpressionSyntax"], terms);
1232AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms"], terms);
1255AssertEx.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
1267AssertEx.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
1279AssertEx.SetEqual(["expression", "PostfixUnaryExpressionSyntax"], terms);
1291AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms", "PostfixUnaryExpressionSyntax"], terms);
1303AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms"], terms);
1326AssertEx.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
1338AssertEx.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
1350AssertEx.SetEqual(["expression", "BinaryExpressionSyntax"], terms);
1362AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms", "BinaryExpressionSyntax"], terms);
1374AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms"], terms);
1397AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
1409AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
1421AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
1455AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1467AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "flags", "position", "expression", "terms", "expressionType"], terms);
1479AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1491AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1503AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1515AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1527AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
1539AssertEx.SetEqual(["position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms", "expression", "(MemberAccessExpressionSyntax)expression"], terms);
1551AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1563AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1575AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1587AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1599AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1611AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1623AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "CollectExpressionTerms"], terms);
1635AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
1647AssertEx.SetEqual(["terms", "memberAccess", "memberAccess.Expression", "ConvertToString", "ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
1659AssertEx.SetEqual(["terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1671AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1683AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1695AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1707AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1719AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1731AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1743AssertEx.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidTerm", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1755AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
1767AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
1779AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1791AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "flags", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
1803AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
1815AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "expressionType", "ExpressionType.ValidTerm"], terms);
1849AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1861AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1873AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1885AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1897AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1909AssertEx.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
1921AssertEx.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
1933AssertEx.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "expression", "(ObjectCreationExpressionSyntax)expression"], terms);
1945AssertEx.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt"], terms);
1957AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "objectionCreation", "objectionCreation.ArgumentListOpt", "flags"], terms);
1969AssertEx.SetEqual(["position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
1981AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
1993AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2005AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2017AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
2029AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2041AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "flags", "ExpressionType.ValidTerm"], terms);
2053AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2065AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expressionType", "ExpressionType.ValidExpression"], terms);
2077AssertEx.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2111AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2123AssertEx.SetEqual(["validTerm", "position", "expression", "terms", "expressionType"], terms);
2135AssertEx.SetEqual(["expression", "(ArrayCreationExpressionSyntax)expression", "validTerm", "arrayCreation"], terms);
2147AssertEx.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
2159AssertEx.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
2171AssertEx.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt"], terms);
2183AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arrayCreation", "arrayCreation.InitializerOpt", "flags"], terms);
2195AssertEx.SetEqual(["arrayCreation.InitializerOpt.Expressions", "flags", "ExpressionType", "ExpressionType.Invalid"], terms);
2207AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
2219AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
2231AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm"], terms);
2243AssertEx.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2255AssertEx.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2267AssertEx.SetEqual(["validTerm"], terms);
2279AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "validTerm"], terms);
2291AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
2303AssertEx.SetEqual(["validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2315AssertEx.SetEqual(["validTerm"], terms);
2327AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "validTerm"], terms);
2339AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
2351AssertEx.SetEqual(["validTerm", "ExpressionType", "expressionType", "ExpressionType.ValidExpression", "ExpressionType.Invalid"], terms);
2385AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2397AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2409AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2421AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2433AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "leftFlags", "rightFlags"], terms);
2445AssertEx.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
2457AssertEx.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
2469AssertEx.SetEqual(["position", "invocation", "invocation.Expression", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(InvocationExpressionSyntax)expression"], terms);
2481AssertEx.SetEqual(["position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms", "invocation.Expression", "leftFlags", "CollectExpressionTerms"], terms);
2493AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
2505AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
2517AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
2529AssertEx.SetEqual(["terms", "invocation", "invocation.Expression", "ConvertToString", "ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
2541AssertEx.SetEqual(["terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2553AssertEx.SetEqual(["ExpressionType", "leftFlags", "rightFlags", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2565AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2577AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
2589AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
2623AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2635AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2647AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2659AssertEx.SetEqual(["expression", "(PrefixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "prefixUnaryExpression"], terms);
2671AssertEx.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2683AssertEx.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2695AssertEx.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
2707AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2719AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2731AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
2743AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
2755AssertEx.SetEqual(["flags", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
2767AssertEx.SetEqual(["terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2779AssertEx.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2791AssertEx.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
2803AssertEx.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2815AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2827AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
2839AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType"], terms);
2851AssertEx.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "flags", "ExpressionType.ValidExpression", "expressionType"], terms);
2885AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
2897AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2909AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2921AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
2933AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2945AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
2957AssertEx.SetEqual(["expression", "(PostfixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "postfixUnaryExpression"], terms);
2969AssertEx.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
2981AssertEx.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
2993AssertEx.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
3005AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3017AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3029AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
3041AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
3053AssertEx.SetEqual(["flags", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3065AssertEx.SetEqual(["terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString"], terms);
3077AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString"], terms);
3111AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
3123AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "leftFlags", "rightFlags", "position", "expression", "terms", "expressionType"], terms);
3135AssertEx.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
3147AssertEx.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
3159AssertEx.SetEqual(["position", "binaryExpression", "binaryExpression.Left", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(BinaryExpressionSyntax)expression"], terms);
3171AssertEx.SetEqual(["position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms", "binaryExpression.Left", "leftFlags"], terms);
3183AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
3195AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
3207AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
3219AssertEx.SetEqual(["leftFlags", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3231AssertEx.SetEqual(["terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3243AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3255AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
3267AssertEx.SetEqual(["rightFlags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3279AssertEx.SetEqual(["rightFlags", "terms", "binaryExpression", "binaryExpression.Right", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3291AssertEx.SetEqual(["terms", "binaryExpression", "binaryExpression.Right", "ConvertToString"], terms);
3303AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3315AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3327AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3339AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3351AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3363AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3375AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3387AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3400AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3412AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
3424AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
3436AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
3448AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3460AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3472AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "binaryExpression", "binaryExpression.Kind"], terms);
3484AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
3496AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
3508AssertEx.SetEqual(["binaryExpression", "binaryExpression.Kind"], terms);
3542AssertEx.SetEqual(["position", "argumentList", "terms", "expressionType"], terms);
3554AssertEx.SetEqual(["validExpr", "position", "argumentList", "terms", "expressionType"], terms);
3566AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3578AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3590AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3602AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
3614AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments"], terms);
3626AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arg", "argumentList", "argumentList.Arguments", "flags"], terms);
3638AssertEx.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
3650AssertEx.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
3662AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
3674AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3686AssertEx.SetEqual(["flags", "terms", "arg", "arg.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
3698AssertEx.SetEqual(["terms", "arg", "arg.Expression", "ConvertToString"], terms);
3710AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
3722AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
3734AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "validExpr"], terms);
3746AssertEx.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3758AssertEx.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3770AssertEx.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3782AssertEx.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
3794AssertEx.SetEqual(["ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType"], terms);
3828AssertEx.SetEqual(["position", "declarators", "terms"], terms);
3840AssertEx.SetEqual(["declarator", "declarators", "position", "terms"], terms);
3852AssertEx.SetEqual(["declarator", "declarators"], terms);
3864AssertEx.SetEqual(["declarator", "declarator.InitializerOpt", "declarators"], terms);
3876AssertEx.SetEqual(["declarator", "declarator.InitializerOpt"], terms);
3888AssertEx.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms", "declarator"], terms);
3900AssertEx.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
3912AssertEx.SetEqual(["declarator", "declarator.InitializerOpt", "position", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
3924AssertEx.SetEqual(["declarator", "declarators", "position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms"], terms);
Debugging\ProximityExpressionsGetterTests.Statements.cs (142)
28AssertEx.SetEqual(["expression"], terms);
42AssertEx.SetEqual(["expression"], terms);
56AssertEx.SetEqual(["position", "expression", "terms"], terms);
70AssertEx.SetEqual(["expression", "position", "terms"], terms);
84AssertEx.SetEqual(["expression"], terms);
98AssertEx.SetEqual(["expression"], terms);
112AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expression", "expressionType"], terms);
126AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
140AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "expression", "terms", "expressionType", "CollectExpressionTerms"], terms);
154AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
168AssertEx.SetEqual(["terms", "expressionType", "expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
182AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
196AssertEx.SetEqual(["expression", "position", "terms", "expressionType"], terms);
210AssertEx.SetEqual(["expression"], terms);
224AssertEx.SetEqual(["expression"], terms);
238AssertEx.SetEqual(["expression", "expression.Kind"], terms);
252AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
266AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
280AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm", "expression", "expression.Kind"], terms);
294AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidTerm"], terms);
308AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "expression", "expression.Kind"], terms);
322AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression"], terms);
336AssertEx.SetEqual(["position", "terms", "expressionType", "CollectExpressionTerms", "expression", "expression.Kind"], terms);
350AssertEx.SetEqual(["expression", "position", "terms", "expressionType", "CollectExpressionTerms"], terms);
364AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms", "expression.Kind"], terms);
378AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectMemberAccessExpressionTerms"], terms);
392AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms", "expression.Kind"], terms);
406AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectObjectCreationExpressionTerms"], terms);
420AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms", "expression.Kind"], terms);
434AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectArrayCreationExpressionTerms"], terms);
448AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms", "expression.Kind"], terms);
462AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectInvocationExpressionTerms"], terms);
476AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax", "expression.Kind"], terms);
490AssertEx.SetEqual(["expression", "PrefixUnaryExpressionSyntax"], terms);
504AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms", "PrefixUnaryExpressionSyntax"], terms);
518AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPrefixUnaryExpressionTerms"], terms);
532AssertEx.SetEqual(["expression", "PostfixUnaryExpressionSyntax", "PrefixUnaryExpressionSyntax"], terms);
546AssertEx.SetEqual(["expression", "PostfixUnaryExpressionSyntax"], terms);
560AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms", "PostfixUnaryExpressionSyntax"], terms);
574AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectPostfixUnaryExpressionTerms"], terms);
588AssertEx.SetEqual(["expression", "BinaryExpressionSyntax", "PostfixUnaryExpressionSyntax"], terms);
602AssertEx.SetEqual(["expression", "BinaryExpressionSyntax"], terms);
616AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms", "BinaryExpressionSyntax"], terms);
630AssertEx.SetEqual(["position", "expression", "terms", "expressionType", "CollectBinaryExpressionTerms"], terms);
644AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "expression", "BinaryExpressionSyntax"], terms);
658AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
672AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "flags", "position", "expression", "terms", "expressionType"], terms);
686AssertEx.SetEqual(["expression", "(MemberAccessExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "memberAccess"], terms);
700AssertEx.SetEqual(["position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms", "expression", "(MemberAccessExpressionSyntax)expression"], terms);
714AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "position", "memberAccess", "memberAccess.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
728AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
742AssertEx.SetEqual(["flags", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm", "expression", "SyntaxKind", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression"], terms);
756AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression", "ExpressionType.ValidTerm", "SyntaxKind.MemberAccessExpression", "SyntaxKind.PointerMemberAccessExpression", "terms", "memberAccess", "memberAccess.Expression", "ConvertToString"], terms);
770AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
784AssertEx.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidTerm", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
798AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
812AssertEx.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidExpression", "expression", "SyntaxKind", "SyntaxKind.InvocationExpression"], terms);
826AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
840AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
854AssertEx.SetEqual(["expression", "(ObjectCreationExpressionSyntax)expression", "ExpressionType", "expressionType", "ExpressionType.Invalid", "objectionCreation"], terms);
868AssertEx.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt", "expression", "(ObjectCreationExpressionSyntax)expression"], terms);
882AssertEx.SetEqual(["objectionCreation", "objectionCreation.ArgumentListOpt"], terms);
896AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "objectionCreation", "objectionCreation.ArgumentListOpt", "flags"], terms);
910AssertEx.SetEqual(["position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
924AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "objectionCreation", "objectionCreation.ArgumentListOpt", "terms", "flags", "CollectArgumentTerms"], terms);
938AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
952AssertEx.SetEqual(["ExpressionType", "flags", "expressionType", "ExpressionType.ValidExpression", "ExpressionType.ValidTerm"], terms);
966AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
980AssertEx.SetEqual(["validTerm", "position", "expression", "terms", "expressionType"], terms);
994AssertEx.SetEqual(["expression", "(ArrayCreationExpressionSyntax)expression", "validTerm", "arrayCreation"], terms);
1008AssertEx.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt", "expression", "(ArrayCreationExpressionSyntax)expression"], terms);
1022AssertEx.SetEqual(["arrayCreation", "arrayCreation.InitializerOpt"], terms);
1036AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arrayCreation", "arrayCreation.InitializerOpt", "flags"], terms);
1050AssertEx.SetEqual(["arrayCreation.InitializerOpt.Expressions", "flags", "ExpressionType", "ExpressionType.Invalid"], terms);
1064AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm", "validTerm", "arrayCreation.InitializerOpt.Expressions"], terms);
1078AssertEx.SetEqual(["flags", "validTerm", "arrayCreation", "arrayCreation.InitializerOpt", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1092AssertEx.SetEqual(["validTerm"], terms);
1106AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.ValidExpression", "validTerm"], terms);
1120AssertEx.SetEqual(["validTerm"], terms);
1134AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "validTerm"], terms);
1148AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1162AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1176AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "leftFlags", "rightFlags"], terms);
1190AssertEx.SetEqual(["expression", "(InvocationExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "invocation"], terms);
1204AssertEx.SetEqual(["position", "invocation", "invocation.Expression", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(InvocationExpressionSyntax)expression"], terms);
1218AssertEx.SetEqual(["position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms", "invocation.Expression", "leftFlags", "CollectExpressionTerms"], terms);
1232AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "invocation", "invocation.ArgumentList", "terms", "rightFlags", "CollectArgumentTerms"], terms);
1246AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
1260AssertEx.SetEqual(["leftFlags", "terms", "invocation", "invocation.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1274AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "ExpressionType.ValidTerm", "terms", "invocation", "invocation.Expression", "ConvertToString"], terms);
1288AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1302AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1316AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
1330AssertEx.SetEqual(["expression", "(PrefixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "prefixUnaryExpression"], terms);
1344AssertEx.SetEqual(["position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PrefixUnaryExpressionSyntax)expression"], terms);
1358AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
1372AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1386AssertEx.SetEqual(["flags", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1400AssertEx.SetEqual(["flags", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression", "ExpressionType", "ExpressionType.ValidTerm", "terms", "prefixUnaryExpression", "prefixUnaryExpression.Operand", "ConvertToString"], terms);
1414AssertEx.SetEqual(["expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
1428AssertEx.SetEqual(["flags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "expression", "SyntaxKind", "SyntaxKind.LogicalNotExpression", "SyntaxKind.BitwiseNotExpression", "SyntaxKind.NegateExpression", "SyntaxKind.PlusExpression"], terms);
1442AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1456AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "position", "expression", "terms"], terms);
1470AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "expressionType", "flags"], terms);
1484AssertEx.SetEqual(["expression", "(PostfixUnaryExpressionSyntax)expression", "flags", "ExpressionType", "ExpressionType.Invalid", "postfixUnaryExpression"], terms);
1498AssertEx.SetEqual(["position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms", "expression", "(PostfixUnaryExpressionSyntax)expression"], terms);
1512AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "terms", "flags", "CollectExpressionTerms"], terms);
1526AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
1540AssertEx.SetEqual(["flags", "terms", "postfixUnaryExpression", "postfixUnaryExpression.Operand", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1554AssertEx.SetEqual(["position", "expression", "terms", "expressionType"], terms);
1568AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "leftFlags", "rightFlags", "position", "expression", "terms", "expressionType"], terms);
1582AssertEx.SetEqual(["expression", "(BinaryExpressionSyntax)expression", "leftFlags", "ExpressionType", "ExpressionType.Invalid", "rightFlags", "binaryExpression"], terms);
1596AssertEx.SetEqual(["position", "binaryExpression", "binaryExpression.Left", "terms", "leftFlags", "CollectExpressionTerms", "expression", "(BinaryExpressionSyntax)expression"], terms);
1610AssertEx.SetEqual(["position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms", "binaryExpression.Left", "leftFlags"], terms);
1624AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm", "position", "binaryExpression", "binaryExpression.Right", "terms", "rightFlags", "CollectExpressionTerms"], terms);
1638AssertEx.SetEqual(["ExpressionType", "leftFlags", "ExpressionType.ValidTerm"], terms);
1652AssertEx.SetEqual(["leftFlags", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1666AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression", "binaryExpression.Left", "ConvertToString"], terms);
1680AssertEx.SetEqual(["rightFlags", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1694AssertEx.SetEqual(["terms", "rightFlags", "binaryExpression", "binaryExpression.Right", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1708AssertEx.SetEqual(["rightFlags", "binaryExpression", "binaryExpression.Kind", "ExpressionType", "ExpressionType.ValidTerm", "terms", "binaryExpression.Right", "ConvertToString"], terms);
1722AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType", "binaryExpression", "binaryExpression.Kind"], terms);
1736AssertEx.SetEqual(["leftFlags", "rightFlags", "ExpressionType", "ExpressionType.ValidExpression", "expressionType"], terms);
1750AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid", "binaryExpression", "binaryExpression.Kind"], terms);
1764AssertEx.SetEqual(["ExpressionType", "expressionType", "ExpressionType.Invalid"], terms);
1778AssertEx.SetEqual(["position", "argumentList", "terms", "expressionType"], terms);
1792AssertEx.SetEqual(["validExpr", "position", "argumentList", "terms", "expressionType"], terms);
1806AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments", "validExpr"], terms);
1820AssertEx.SetEqual(["arg", "argumentList", "argumentList.Arguments"], terms);
1834AssertEx.SetEqual(["ExpressionType", "ExpressionType.Invalid", "arg", "argumentList", "argumentList.Arguments", "flags"], terms);
1848AssertEx.SetEqual(["position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms", "ExpressionType", "ExpressionType.Invalid"], terms);
1862AssertEx.SetEqual(["ExpressionType", "ExpressionType.ValidTerm", "position", "arg", "arg.Expression", "terms", "flags", "CollectExpressionTerms"], terms);
1876AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidTerm"], terms);
1890AssertEx.SetEqual(["flags", "terms", "arg", "arg.Expression", "ConvertToString", "ExpressionType", "ExpressionType.ValidTerm"], terms);
1904AssertEx.SetEqual(["ExpressionType", "flags", "ExpressionType.ValidExpression", "validExpr", "ExpressionType.ValidTerm", "terms", "arg", "arg.Expression", "ConvertToString"], terms);
1918AssertEx.SetEqual(["flags", "ExpressionType", "validExpr", "ExpressionType.ValidExpression", "expressionType", "arg", "argumentList", "argumentList.Arguments"], terms);
1932AssertEx.SetEqual(["position", "declarators", "terms"], terms);
1946AssertEx.SetEqual(["declarator", "declarators", "position", "terms"], terms);
1960AssertEx.SetEqual(["declarator", "declarators"], terms);
1974AssertEx.SetEqual(["declarator", "declarator.InitializerOpt", "declarators"], terms);
1988AssertEx.SetEqual(["declarator", "declarator.InitializerOpt"], terms);
2002AssertEx.SetEqual(["position", "declarator.InitializerOpt", "declarator.InitializerOpt.Value", "terms", "CollectExpressionTerms", "declarator"], terms);
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
171AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
183AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
187AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
199AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (176)
CodeGen\CodeGenFunctionPointersTests.cs (13)
123AssertEx.Equal("delegate* unmanaged[Thiscall, Stdcall]<System.Void modopt(System.Runtime.CompilerServices.CallConvThiscall) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", funcPtr.ToTestDisplayString());
3083AssertEx.Equal(expectedMembers, model.GetMemberGroup(addressOfs[0].Operand).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
3084AssertEx.Equal(expectedMembers, model.GetMemberGroup(addressOfs[1].Operand).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
4125AssertEx.Equal(new[] { "void C.M1()" }, model.GetMemberGroup(methodGroup1).Select(m => m.ToTestDisplayString(includeNonNullable: false)));
6483AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6536AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6594AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString());
6660AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6738AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
6817AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, m.ToTestDisplayString(includeNonNullable: true));
10776AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>",
10778AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>",
10785AssertEx.Equal("System.Func<delegate* unmanaged<System.Int32, System.Void>>",
CodeGen\CodeGenTupleTest.cs (54)
4478AssertEx.Equal(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" }, vt2.TupleElements.ToTestDisplayStrings());
4481AssertEx.Equal(new[] {
5940AssertEx.SetEqual(vt2.MemberNames.ToArray(), new[] { ".ctor", "ToString" });
6086AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]",
6136AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
6486AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, System.ValueTuple<System.String>[missing]>[missing]",
6506AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
6527AssertEx.Equal("System.ValueTuple<System.Int32, System.String, System.Int32, System.String, System.Int32, System.String, System.Int32, (System.String, System.Int32)[missing]>[missing]",
11167AssertEx.SetEqual(new[] {
11185AssertEx.SetEqual(new[] {
11430AssertEx.Equal(new[] {
11457AssertEx.Equal(new[] {
11494AssertEx.Equal(new[] { "T1", "T2", "T3", "T4", "T5", "T6", "T7", "TRest" }, m1Tuple.TypeParameters.ToTestDisplayStrings());
11499AssertEx.Equal(new[] { "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "(System.Int32, System.Int32)" },
12699AssertEx.Equal(new[] {
13878AssertEx.Equal(baseLine, symbols.Select(s => s.ToTestDisplayString()));
14101AssertEx.Equal("System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32, (System.Int32 a, System.Int32 b)>",
16577AssertEx.Equal(new[] {
16582AssertEx.Equal("System.Int32 (System.Int32, System.Int32)[missing].Item1",
16614AssertEx.Equal(new[] {
16621AssertEx.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].Item1",
16624AssertEx.Equal("System.Int32 (System.Int32 a, System.Int32 b)[missing].a",
22776AssertEx.SetEqual(new[] { "mscorlib 4.0", "System.ValueTuple 4.0" }, reader.DumpAssemblyReferences());
22785AssertEx.SetEqual(new[] { "mscorlib 4.0", "System.ValueTuple 4.0" }, reader.DumpAssemblyReferences());
22816AssertEx.SetEqual(new[] { "mscorlib 4.0", "lib 0.0" }, reader.DumpAssemblyReferences());
22825AssertEx.SetEqual(new[] { "mscorlib 4.0", "lib 0.0" }, reader.DumpAssemblyReferences());
22859AssertEx.SetEqual(xSymbol.GetMembers().OfType<IFieldSymbol>().Select(f => f.Name),
26825AssertEx.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());
26878AssertEx.Equal("System.Collections.Generic.IEnumerable<Container<(System.Int32 alice, System.Int32 bob)>[missing]>",
26950AssertEx.Equal(decodingSuccessful
27984AssertEx.SetEqual(new string[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "(T1, T2)..ctor()" },
27986AssertEx.SetEqual(new string[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "(T1, T2)..ctor()" },
28071AssertEx.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" }, fields.ToTestDisplayStrings());
28201AssertEx.SetEqual(new[] {
28207AssertEx.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" },
28310AssertEx.SetEqual(new[] { "System.ValueTuple<T1>",
28406AssertEx.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).field" }, namedType.GetFieldsToEmit().ToTestDisplayStrings());
28409AssertEx.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).field" }, fields.ToTestDisplayStrings());
28494AssertEx.SetEqual(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2", "System.String (T1, T2).<Property>k__BackingField" }, fields.ToTestDisplayStrings());
28695AssertEx.SetEqual(new[] {
28703AssertEx.SetEqual(new[] {
28711AssertEx.SetEqual(new[] {
28723AssertEx.SetEqual(new[] {
28735AssertEx.SetEqual(new[] {
28750AssertEx.SetEqual(new[] {
28809AssertEx.SetEqual(new[] {
28831AssertEx.SetEqual(new[] {
28854AssertEx.SetEqual(new[] {
28892AssertEx.SetEqual(new[] {
28905AssertEx.SetEqual(new[] {
29003AssertEx.Equal("System.ValueTuple<System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, (System.Object, System.Object)>",
29021AssertEx.Equal("System.ValueTuple<System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, System.Object?, System.Object!, (System.Object?, System.Object!)>",
29035AssertEx.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}",
29062AssertEx.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}",
Emit\CompilationEmitTests.cs (49)
658AssertEx.Equal(new[] { ".text", ".rsrc", ".reloc", ".mvid" },
899AssertEx.Equal(
913AssertEx.Equal(new[] {
934AssertEx.SetEqual(attributes.Select(a => MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor)),
956AssertEx.Equal(new string[] {
1214AssertEx.Equal(image1.GetBuffer(), image2.GetBuffer(), message: $"Expecting match for includePrivateMembers={includePrivateMembers} case, but differences were found.");
1218AssertEx.NotEqual(image1.GetBuffer(), image2.GetBuffer(), message: $"Expecting difference for includePrivateMembers={includePrivateMembers} case, but they matched.");
1262AssertEx.NotEqual(image1, image2, message: "Expecting different main assemblies produced by refout");
1263AssertEx.Equal(metadataImage1, metadataImage2, message: "Expecting identical ref assemblies produced by refout");
1272AssertEx.Equal(refOnlyMetadataImage1, refOnlyMetadataImage2, message: "Expecting identical ref assemblies produced by refonly");
1911AssertEx.Equal(refOut1, refOut1);
1921AssertEx.Equal(refOut1, refOut15);
1935AssertEx.NotEqual(refOut1, refOut2);
1936AssertEx.NotEqual(refOut1, refOnly2);
1941AssertEx.Equal(refOut1, refOut2);
1942AssertEx.Equal(refOut1, refOnly2);
2134AssertEx.Equal(
2138AssertEx.Equal(
2149AssertEx.Equal(
2165AssertEx.Equal(
2169AssertEx.Equal(
2180AssertEx.Equal(
2193AssertEx.Equal(
2197AssertEx.Equal(
2207AssertEx.Equal(
2222AssertEx.Equal(
2226AssertEx.Equal(
2233AssertEx.Equal(
2300AssertEx.Equal(
2304AssertEx.Equal(
2367AssertEx.Equal(
2371AssertEx.Equal(
2434AssertEx.Equal(
2438AssertEx.Equal(
2469AssertEx.Equal(
2473AssertEx.Equal(new[] { "Microsoft.CodeAnalysis" }, globalNamespace.GetMember<NamespaceSymbol>("Microsoft").GetMembers().Select(m => m.ToDisplayString()));
2474AssertEx.Equal(
2478AssertEx.Equal(
2481AssertEx.Equal(
2485AssertEx.Equal(
2511AssertEx.Equal(
2515AssertEx.Equal(
2624AssertEx.Equal(expected, entries.Select(e => e.Type));
3923AssertEx.SetEqual(expectedCMembers, actualCMembers.Select(s => s.Name));
3946AssertEx.SetEqual(expectedAMembers, actualAMembers.Select(s => s.Name));
3951AssertEx.SetEqual(expectedBMembers, actualBMembers.Select(s => s.Name));
3956AssertEx.SetEqual(expectedCMembers, actualCMembers.Select(s => s.Name));
5370AssertEx.Equal(expectedNames, actualNames);
5433AssertEx.Equal(expectedNames, actualNames);
Emit\DeterministicTests.cs (13)
155AssertEx.NotEqual(result1.pe, result2.pe);
220AssertEx.Equal(result1.pe, result2.pe);
221AssertEx.Equal(result1.pdb, result2.pdb);
225AssertEx.Equal(result3.pe, result4.pe);
226AssertEx.Equal(result3.pdb, result4.pdb);
230AssertEx.Equal(result5.pe, result6.pe);
231AssertEx.Equal(result5.pdb, result6.pdb);
247AssertEx.Equal(result1.pe, result2.pe);
248AssertEx.Equal(result1.pdb, result2.pdb);
252AssertEx.Equal(result3.pe, result4.pe);
253AssertEx.Equal(result3.pdb, result4.pdb);
257AssertEx.Equal(result5.pe, result6.pe);
258AssertEx.Equal(result5.pdb, result6.pdb);
Emit\EmitMetadataTests.cs (6)
90AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
270AssertEx.Equal(new[]
2309AssertEx.Equal(new byte[]
2322AssertEx.Equal(new byte[]
2349AssertEx.Equal(new byte[] { 0xFF, 0x25, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00 }, startupStub);
2407AssertEx.Equal(new byte[] { 0, 0x20, 0, 0, 0x0c, 0, 0, 0, 0x80, 0x33, 0, 0 }, relocBytes);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (49)
PDB\PortablePdbTests.cs (10)
79AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
88AssertEx.Equal(new byte[]
135AssertEx.AssertEqualToleratingWhitespaceDifferences("0: (12,31)-(12,36)", spString);
136AssertEx.Equal(new byte[]
177AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
192AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
237AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
253AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
317AssertEx.Equal(sourceLinkBlob, actualBlob);
360AssertEx.Equal(sourceLinkBlob, actualBlob);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (604)
Attributes\AttributeTests.cs (40)
1805AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes()));
1806AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes()));
1809AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes()));
1813AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes()));
1817AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(2)" }), GetAttributeStrings(field2.GetAttributes()));
1821AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes()));
1825AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(33)" }), GetAttributeStrings(field3.GetAttributes()));
1829AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop3.GetMethod.GetAttributes()));
1833AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(44)", "A(444)" }), GetAttributeStrings(field4.GetAttributes()));
1866AssertEx.SetEqual(s_backingFieldAttributes.Concat(dynamicAndTupleNames), GetAttributeStrings(field1.GetAttributes()));
1904AssertEx.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes1));
1908AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1));
1916AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
1923AssertEx.SetEqual(new[] { "System.Runtime.CompilerServices.SpecialNameAttribute" }, GetAttributeStrings(attributes3));
1966AssertEx.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes1));
1970AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(attributes1));
1978AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
1985AssertEx.SetEqual(new[] { "System.NonSerializedAttribute" }, GetAttributeStrings(attributes3));
2202AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }),
2209AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.Runtime.CompilerServices.DateTimeConstantAttribute(123456)" }),
2253AssertEx.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field1.GetAttributes()));
2257AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field1.GetAttributes()));
2265AssertEx.SetEqual(fieldAttributesExpected.Concat(decimalAttributeExpected), GetAttributeStrings(field2.GetAttributes()));
2270AssertEx.SetEqual(decimalAttributeExpected, GetAttributeStrings(field3.GetAttributes()));
2333AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "System.ObsoleteAttribute" }),
2343AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { @"System.ObsoleteAttribute(""obsolete"", true)" }),
2465AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.GetMethod.GetAttributes()));
2466AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop1.SetMethod.GetAttributes()));
2469AssertEx.SetEqual(fieldAttributesExpected.Concat(new[] { "A(1)" }), GetAttributeStrings(field1.GetAttributes()));
2475AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.GetMethod.GetAttributes()));
2476AssertEx.SetEqual(propAttributesExpected, GetAttributeStrings(prop2.SetMethod.GetAttributes()));
2479AssertEx.SetEqual(fieldAttributesExpected, GetAttributeStrings(field2.GetAttributes()));
2635AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event1.AddMethod.GetAttributes()));
2636AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event1.RemoveMethod.GetAttributes()));
2645AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event2.AddMethod.GetAttributes()));
2646AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event2.RemoveMethod.GetAttributes()));
2654AssertEx.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.AddMethod.GetAttributes()));
2655AssertEx.SetEqual(accessorsExpected.Concat(new[] { "CC" }), GetAttributeNames(event3.RemoveMethod.GetAttributes()));
2663AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event4.AddMethod.GetAttributes()));
2664AssertEx.SetEqual(accessorsExpected, GetAttributeNames(event4.RemoveMethod.GetAttributes()));
Attributes\AttributeTests_Assembly.cs (13)
1820Assert.True(expectedStr.Equals(actualStr), AssertEx.GetAssertMessage(expectedStr, actualStr));
1846AssertEx.SetEqual(new[]
2299AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2300AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2301AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
2302AssertEx.Equal("A1(1)", attrs[3].ToString());
2355AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2356AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2357AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
2358AssertEx.Equal("A1(typeof(C1))", attrs[3].ToString());
2383AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs[0].ToString());
2384AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows = true)", attrs[1].ToString());
2385AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs[2].ToString());
Attributes\AttributeTests_Nullable.cs (16)
70AssertEx.SetEqual(
74AssertEx.SetEqual(
91AssertEx.SetEqual(
97AssertEx.SetEqual(
134AssertEx.SetEqual(
138AssertEx.SetEqual(
169AssertEx.SetEqual(
173AssertEx.SetEqual(
276AssertEx.SetEqual(
280AssertEx.SetEqual(
4758AssertEx.Equal(ImmutableArray.Create<byte>(0, 0, 2, 0, 2, 0, 0, 0, 0, 2, 0, 2), reader.ReadByteArray(customAttribute.Value));
4767AssertEx.Equal(ImmutableArray.Create<byte>(0, 2, 0, 2, 0, 2, 0, 2, 0, 0, 2), reader.ReadByteArray(customAttribute.Value));
4907AssertEx.Equal(expectedBits, reader.ReadByteArray(customAttribute.Value));
5386AssertEx.SetEqual(expectedNames, actualNames);
5424AssertEx.SetEqual(expectedNames, actualNames);
5435AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_Synthesized.cs (15)
132AssertEx.SetEqual(expectedAttrs, actualAttrs);
154AssertEx.SetEqual(expectedAttrs, actualAttrs);
265AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(displayClass.GetAttributes()));
304AssertEx.SetEqual(expected, GetAttributeNames(anon.GetAttributes()));
335AssertEx.SetEqual(expected, actual);
431AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes()));
444AssertEx.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes()));
450AssertEx.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes()));
486AssertEx.SetEqual(options.OptimizationLevel == OptimizationLevel.Debug ?
491AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(iter.GetAttributes()));
501AssertEx.SetEqual(new[] { "DebuggerHiddenAttribute" }, GetAttributeNames(member.GetAttributes()));
505AssertEx.SetEqual(new string[] { }, GetAttributeNames(member.GetAttributes()));
545AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(attributes));
582AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes()));
625AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute", "DebuggerHiddenAttribute" }, GetAttributeNames(baseMethodWrapper.GetAttributes()));
Diagnostics\GetDiagnosticsTests.cs (15)
285AssertEx.Equal([
303AssertEx.Equal(["file1"], completedCompilationUnits.OrderBy(name => name));
1632AssertEx.SetEqual(expectedSymbolCallbacks, analyzer.AnalyzedSymbols.Select(s => s.Name).ToHashSet());
1636AssertEx.All(analyzer.AnalyzedSyntaxNodes, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
1637AssertEx.SetEqual(expectedSyntaxNodeCallbacks, analyzer.AnalyzedSyntaxNodes.Select(s => s.ToString()).ToHashSet());
1640AssertEx.All(analyzer.AnalyzedSyntaxNodesInsideCodeBlock, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
1641AssertEx.SetEqual(expectedSyntaxNodeInsideBlockCallbacks, analyzer.AnalyzedSyntaxNodesInsideCodeBlock.Select(s => s.ToString()).ToHashSet());
1645AssertEx.All(analyzer.AnalyzedOperations, operation => operation.Kind == OperationKind.VariableDeclaration);
1646AssertEx.SetEqual(expectedOperationCallbacks, analyzer.AnalyzedOperations.Select(op => op.Syntax.ToString()).ToHashSet());
1649AssertEx.All(analyzer.AnalyzedOperationsInsideOperationBlock, operation => operation.Kind == OperationKind.VariableDeclaration);
1650AssertEx.SetEqual(expectedOperationInsideBlockCallbacks, analyzer.AnalyzedOperationsInsideOperationBlock.Select(op => op.Syntax.ToString()).ToHashSet());
1662AssertEx.SetEqual(expectedBlockSymbolCallbacks, actualBlockSymbolCallbacks.Select(s => s.Name).ToHashSet());
1667AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolStartSymbols.Select(s => s.Name).ToHashSet());
1669AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolEndSymbols.Select(s => s.Name).ToHashSet());
1673AssertEx.SetEqual(expectedSemanticModelTreeCallbacks, analyzer.AnalyzedSemanticModels.Select(s => s.SyntaxTree).ToHashSet());
OverloadResolutionPriorityTests.cs (10)
761AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[0]).Symbol!.ToTestDisplayString());
762AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[1]).Symbol!.ToTestDisplayString());
808AssertEx.Equal("Derived..ctor(System.Object o)", model.GetSymbolInfo(creation).Symbol!.ToTestDisplayString());
906AssertEx.Equal("C..ctor(System.Object o)", attr.AttributeConstructor.ToTestDisplayString());
988AssertEx.Equal(["System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", "System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Object priority)"],
994AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)",
1481AssertEx.Equal("System.Int32 C.this[System.Object x] { get; set; }", indexer.ToTestDisplayString());
1487AssertEx.Equal("System.Int32 C.this[System.String x] { get; set; }", indexer.ToTestDisplayString());
2372AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
2499AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
RefStructInterfacesTests.cs (233)
4383AssertEx.Equal("C<T> where T : allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5099AssertEx.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5123AssertEx.Equal("C<T> where T : new(), allows ref struct", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
5770AssertEx.Equal("C<T>", t.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
7579AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7580AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7584AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7586AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
7769AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7770AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7774AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7776AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
7989AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
7990AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
7994AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
7996AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8179AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8180AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8184AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8186AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8372AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8373AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8377AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8379AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
8651AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
8652AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
8656AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
8658AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9022AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9023AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9024AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9025AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
9029AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9030AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9032AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9036AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
9226AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9227AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9228AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9229AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
9233AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9234AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9236AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9240AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
9590AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9591AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9592AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9593AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
9597AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9598AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9600AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
9814AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
9815AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
9816AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
9817AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
9821AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
9822AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
9824AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10023AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10024AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10025AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10026AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
10030AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10031AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10033AssertEx.Equal("System.Int32 System.Collections.Generic.IEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10250AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10251AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10252AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10253AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
10257AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10258AssertEx.Equal("System.Boolean IMyEnumerator<System.Int32>.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10260AssertEx.Equal("System.Int32 IMyEnumerator<System.Int32>.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10633AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10634AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10635AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10636AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
10640AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10641AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10643AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10647AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
10830AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
10831AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
10832AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
10833AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString());
10837AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
10838AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
10840AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
10844AssertEx.Equal("void S2.Dispose()", op.Info.PatternDisposeMethod.ToTestDisplayString());
11071AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11072AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11073AssertEx.Equal("System.Int32 S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11074AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11078AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11079AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11081AssertEx.Equal("System.Int32 S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11298AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11299AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11300AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11301AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11305AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11306AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11308AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11510AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11511AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11512AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11513AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
11517AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11518AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11520AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11610AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11611AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11612AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11617AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11618AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11620AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
11705AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
11706AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
11707AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
11712AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
11713AssertEx.Equal("System.Boolean ICustomEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
11715AssertEx.Equal("System.Int32 ICustomEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
14262AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
14263AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14267AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
14269AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
14603AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
14604AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14608AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
14610AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
14966AssertEx.Equal("new S()", foreachSyntax.Expression.ToString());
14970AssertEx.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());
14971AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
14975AssertEx.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());
14977AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
15313AssertEx.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());
15314AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
15318AssertEx.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());
15320AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
15661AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.GetEnumeratorMethod.ToTestDisplayString());
15662AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
15666AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.GetEnumeratorMethod.ToTestDisplayString());
15668AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
16099AssertEx.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());
16100AssertEx.Equal("System.Int32", info.ElementType.ToTestDisplayString());
16104AssertEx.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());
16106AssertEx.Equal("System.Int32", op.Info.ElementType.ToTestDisplayString());
16764AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16770AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
16829AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16835AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
16894AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16978AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
16984AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
17066AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
17072AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", op.Info.PatternDisposeMethod.ToTestDisplayString());
17256AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString());
17766AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
17767AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
17771AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
17773AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
17963AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
17964AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
17968AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
17970AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18183AssertEx.Equal("new S()", foreachSyntax.Expression.ToString());
18187AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18188AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
18192AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18194AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18383AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18384AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
18388AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18390AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18584AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18585AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
18589AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18591AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
18868AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorMethod.ToTestDisplayString());
18869AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
18873AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.GetEnumeratorMethod.ToTestDisplayString());
18875AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19203AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
19204AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19205AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19210AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19211AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19213AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19374AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
19375AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19376AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19381AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19382AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19384AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19699AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
19700AssertEx.Equal("System.Boolean S2.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19701AssertEx.Equal("System.Object S2.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19706AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19707AssertEx.Equal("System.Boolean S2.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19709AssertEx.Equal("System.Object S2.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
19867AssertEx.Equal("System.Object", info.ElementType.ToTestDisplayString());
19868AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", info.MoveNextMethod.ToTestDisplayString());
19869AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", info.CurrentProperty.ToTestDisplayString());
19870AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
19874AssertEx.Equal("System.Object", op.Info.ElementType.ToTestDisplayString());
19875AssertEx.Equal("System.Boolean System.Collections.IEnumerator.MoveNext()", op.Info.MoveNextMethod.ToTestDisplayString());
19877AssertEx.Equal("System.Object System.Collections.IEnumerator.Current { get; }", op.Info.CurrentProperty.ToTestDisplayString());
21241AssertEx.Equal("scoped T u", parameter.ToTestDisplayString());
21251AssertEx.Equal("scoped T u", parameter.ToTestDisplayString());
21262AssertEx.Equal("scoped T x", p.ToTestDisplayString());
21306AssertEx.Equal("x = default", declarator.ToString());
21308AssertEx.Equal("T x", local.ToTestDisplayString());
21510AssertEx.Equal("params T x", p.ToTestDisplayString());
21647AssertEx.Equal("params T x", p.ToTestDisplayString());
21651AssertEx.Equal("params S y", p.ToTestDisplayString());
21655AssertEx.Equal("params T z", p.ToTestDisplayString());
21710AssertEx.Equal("params T x", p.ToTestDisplayString());
21714AssertEx.Equal("params S y", p.ToTestDisplayString());
21718AssertEx.Equal("params T z", p.ToTestDisplayString());
22850AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1[] arg)", m.ToTestDisplayString());
22874AssertEx.Equal("void <>f__AnonymousDelegate0<T1, T2>.Invoke(T1 arg1, params T2[] arg2)", m.ToTestDisplayString());
22902AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(System.Int32* arg1, params System.Int32[] arg2)", m.ToTestDisplayString());
22932AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString());
22963AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params System.Int32[] arg3)", m.ToTestDisplayString());
22994AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2, params T1[] arg3)", m.ToTestDisplayString());
23025AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[] arg2)", m.ToTestDisplayString());
23057AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString());
23088AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1?[] arg2)", m.ToTestDisplayString());
23119AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, params T1[][] arg2)", m.ToTestDisplayString());
23143AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int32> arg)", m.ToTestDisplayString());
23173AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1[] arg2)", m.ToTestDisplayString());
23204AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(System.Int32* arg1, T1 arg2)", m.ToTestDisplayString());
23228AssertEx.Equal("void <>A{00000001}<T1, T2>.Invoke(ref T1 arg1, T2 arg2)", m.ToTestDisplayString());
28912AssertEx.Equal("void ITest29.M21<T1>() where T1 : allows ref struct", m21.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
Semantics\ParamsCollectionTests.cs (41)
2744AssertEx.Equal("void Program.<>c.<Main>b__0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString());
2758AssertEx.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString());
2792AssertEx.Equal("params System.Int64[] x", parameter.ToTestDisplayString());
2800AssertEx.Equal("void Program.<>c.<Main>b__0_0(System.Int64[] x)", l1.ToTestDisplayString());
2946AssertEx.Equal("void Program.<Main>g__local|0_0(System.Collections.Generic.IEnumerable<System.Int64> x)", l1.ToTestDisplayString());
2956AssertEx.Equal("params System.Collections.Generic.IEnumerable<System.Int64> x", parameter.ToTestDisplayString());
2987AssertEx.Equal("params System.Int64[] x", parameter.ToTestDisplayString());
2995AssertEx.Equal("void Program.<Main>g__local|0_0(System.Int64[] x)", l1.ToTestDisplayString());
4341AssertEx.Equal("System.Collections.Generic.IEnumerable<System.Int64> e1", parameter.ToTestDisplayString());
4347AssertEx.Equal("System.Int64[] e2", parameter.ToTestDisplayString());
4467AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4471AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4529AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4533AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4539AssertEx.Equal("void Program.<>c.<Main>b__0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString());
4543AssertEx.Equal("void Program.<>c.<Main>b__0_1(System.Int64[] a)", l2.ToTestDisplayString());
4625AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.Collections.Generic.IEnumerable<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate0").DelegateInvokeMethod.ToTestDisplayString());
4626AssertEx.Equal("void <>f__AnonymousDelegate1.Invoke(params System.Collections.Generic.List<System.Int64> arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate1").DelegateInvokeMethod.ToTestDisplayString());
4627AssertEx.Equal("void <>f__AnonymousDelegate2<T1>.Invoke(params T1[] arg)", m.ContainingAssembly.GetTypeByMetadataName("<>f__AnonymousDelegate2`1").DelegateInvokeMethod.ToTestDisplayString());
4682AssertEx.Equal("void <>f__AnonymousDelegate0.Invoke(params System.ReadOnlySpan<System.Int64> arg)", delegateInvokeMethod1.ToTestDisplayString());
4686AssertEx.Equal("void <>f__AnonymousDelegate1<T1>.Invoke(params T1[] arg)", delegateInvokeMethod2.ToTestDisplayString());
4692AssertEx.Equal("void Program.<Main>g__Test1|0_0(scoped System.ReadOnlySpan<System.Int64> a)", l1.ToTestDisplayString());
4696AssertEx.Equal("void Program.<Main>g__Test2|0_1(System.Int64[] a)", l2.ToTestDisplayString());
4816AssertEx.Equal("void <>f__AnonymousDelegate0<T1>.Invoke(params T1 arg)", delegateInvokeMethod.ToTestDisplayString());
10234AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10235AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10248AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10249AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10358AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10359AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10372AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10373AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10482AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10483AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10496AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10497AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString()));
10599AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10600AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
10613AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString());
10614AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString());
12652AssertEx.Equal(adjustedMemberDisplay, member.ToTestDisplayString());
Semantics\PrimaryConstructorTests.cs (24)
3039AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
6834AssertEx.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString());
6905AssertEx.SetEqual(new string[] { "A..ctor()" },
6907AssertEx.SetEqual(new string[] { "B..ctor()" },
6909AssertEx.SetEqual(new string[] { "C..ctor(System.Int32 x)" },
6911AssertEx.SetEqual(new string[] { "D..ctor(System.Int32 x)" },
6933AssertEx.SetEqual(new string[] { "A..ctor()" },
6935AssertEx.SetEqual(new string[] { "B..ctor()" },
6937AssertEx.SetEqual(new string[] { "C..ctor(System.Int32 x)", "C..ctor()" },
6939AssertEx.SetEqual(new string[] { "D..ctor(System.Int32 x)", "D..ctor()" },
6961AssertEx.SetEqual(new string[] { ".ctor" },
6963AssertEx.SetEqual(new string[] { ".ctor" },
6965AssertEx.SetEqual(new string[] { ".ctor" },
6967AssertEx.SetEqual(new string[] { ".ctor" },
6989AssertEx.SetEqual(new string[] { ".ctor" },
6991AssertEx.SetEqual(new string[] { ".ctor" },
6993AssertEx.SetEqual(new string[] { ".ctor" },
6995AssertEx.SetEqual(new string[] { ".ctor" },
19777AssertEx.Equal("System.Int32 C.this[System.Int32 i] { get; }", info.Symbol.ToTestDisplayString());
21890AssertEx.Equal(new[] { "<x>P", "<y>P" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
21911AssertEx.Equal(new[] { "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
21937AssertEx.Equal(new[] { "b", "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
21963AssertEx.Equal(new[] { "<x>P", "<y>P", "a", "b" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
21994AssertEx.Equal(new[] { "b", "<x>P", "<y>P", "a", "c" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name));
Semantics\RecordTests.cs (147)
295AssertEx.SetEqual(new[] { "System.Boolean RecordB.op_Equality(RecordB? left, RecordB? right)" },
509AssertEx.Equal(expectedMembers,
512AssertEx.Equal(new[] { "A..ctor(System.Int32 i, ?)", "A..ctor(A original)" },
598AssertEx.Equal(expectedMembers,
632AssertEx.Equal(expectedMembers,
635AssertEx.Equal(new[] { "A..ctor(System.Int32, System.String)", "A..ctor(A original)" },
666AssertEx.Equal(expectedMembers,
669AssertEx.Equal(new[] { "A..ctor(System.Int32, System.Int32)", "A..ctor(A original)" },
840AssertEx.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1018AssertEx.Equal(expectedMembers,
1044AssertEx.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1070AssertEx.Equal(expectedMembers,
1096AssertEx.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1148AssertEx.Equal(expectedMembers, actualMembers);
1584AssertEx.Equal(expectedMembers, actualMembers);
1635AssertEx.Equal(expectedMembers, actualMembers);
5983AssertEx.Equal(expectedMembers, actualMembers);
6026AssertEx.Equal(expectedMembers, actualMembers);
6067AssertEx.Equal(expectedMembers, actualMembers);
6108AssertEx.Equal(expectedMembers, actualMembers);
9750AssertEx.Equal(expectedMembers, actualMembers);
9777AssertEx.Equal(new[] { "System.Type A.B.EqualityContract { get; }" }, actualMembers);
9800AssertEx.Equal(new[] { "System.Type C1.EqualityContract { get; }" }, GetProperties(comp, "C1").ToTestDisplayStrings());
9813AssertEx.Equal(new[] { "System.Type C2.EqualityContract { get; }", "System.Object C2.P { get; init; }" }, GetProperties(comp, "C2").ToTestDisplayStrings());
9865AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9896AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9943AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9977AssertEx.Equal(new[] { "System.Type B1.EqualityContract { get; }", "System.Int32 B1.X { get; init; }" }, GetProperties(comp, "B1").ToTestDisplayStrings());
9978AssertEx.Equal(new[] { "System.Type B2.EqualityContract { get; }", "System.Int32 B2.X { get; init; }" }, GetProperties(comp, "B2").ToTestDisplayStrings());
10016AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Int32 C.X { get; init; }", "System.Int32 C.Y { get; init; }" }, actualMembers);
10061AssertEx.Equal(expectedMembers, actualMembers);
10083AssertEx.Equal(expectedMemberNames, c.GetPublicSymbol().MemberNames);
10090AssertEx.Equal(expectedCtors, c.GetPublicSymbol().Constructors.ToTestDisplayStrings());
10184AssertEx.Equal(expectedMembers, actualMembers);
10221AssertEx.Equal(expectedMembers, actualMembers);
10264AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10297AssertEx.Equal(expectedMembers, actualMembers);
10343AssertEx.Equal(expectedMembers, actualMembers);
10390AssertEx.Equal(expectedMembers, actualMembers);
10439AssertEx.Equal(expectedMembers, actualMembers);
10491AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
10551AssertEx.Equal(expectedMembers, actualMembers);
10588AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10664AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10696AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10754AssertEx.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("B").GetMembers().ToTestDisplayStrings());
10778AssertEx.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("C").GetMembers().ToTestDisplayStrings());
10822AssertEx.Equal(expectedMembers, actualMembers);
10847AssertEx.Equal(expectedMembers, actualMembers);
10870AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10876AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10900AssertEx.Equal(expectedMembers, actualMembers);
10924AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10925AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Object C.P { get; init; }", "System.Object C.I.P { get; }" }, GetProperties(comp, "C").ToTestDisplayStrings());
10987AssertEx.Equal(expectedMembers, actualMembers);
11055AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
11150AssertEx.Equal(expectedMembers, actualMembers);
11202AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11263AssertEx.Equal(expectedMembers, actualMembers);
11299AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11340AssertEx.Equal(expectedMembers, actualMembers);
11554AssertEx.Equal(expectedMembers, actualMembers);
11790AssertEx.Equal(expectedMembers, actualMembers);
12103AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", }, GetProperties(comp, "C").ToTestDisplayStrings());
12211AssertEx.Equal(new[] { "System.Type CA.EqualityContract { get; }", "System.Object CA.P { get; init; }" }, GetProperties(comp, "CA").ToTestDisplayStrings());
12212AssertEx.Equal(new[] { "System.Type CB.EqualityContract { get; }" }, GetProperties(comp, "CB").ToTestDisplayStrings());
12493AssertEx.Equal(expectedModifiers, returnType.CustomModifiers);
12500AssertEx.Equal(expectedModifiers, parameterType.CustomModifiers);
12583AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
12743AssertEx.Equal(expectedMembers, actualMembers);
13476AssertEx.Equal(expectedMembers, actualMembers);
15780AssertEx.Equal(expectedMembers, actualMembers);
15839AssertEx.Equal(expectedMembers, actualMembers);
20707AssertEx.Equal(expectedMembers, actualMembers);
20749AssertEx.Equal(expectedMembers, actualMembers);
20779AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
23640AssertEx.Equal(expectedMembers, actualMembers);
23788AssertEx.Equal(expectedMembers, actualMembers);
24021AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24022AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24025AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24026AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24076AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24077AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24080AssertEx.Equal(new[] { "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24081AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24141AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24142AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24145AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24146AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24186AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24187AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24190AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24191AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24211AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24212AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24215AssertEx.Equal(new[] { "System.IEquatable<B1>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24216AssertEx.Equal(new[] { "System.IEquatable<B2>", "System.IEquatable<A<System.Object>>", "System.IEquatable<B1>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24219AssertEx.Equal(new[] { "System.IEquatable<B2>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24220AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<A<System.Int32>>", "System.IEquatable<B2>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24240AssertEx.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24241AssertEx.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24244AssertEx.Equal(new[] { "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24245AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24305AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24306AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24309AssertEx.Equal(new[] { "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24310AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24375AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24376AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24379AssertEx.Equal(new[] { "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24380AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24449AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24450AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24453AssertEx.Equal(new[] { "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24454AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24879AssertEx.Equal(expectedMembers, actualMembers);
24924AssertEx.Equal(expectedMembers, actualMembers);
25087AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25090AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25093AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25147AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25150AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25153AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25224AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
25227AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1));
25230AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25281AssertEx.SetEqual(new string[] { }, getAttributeStrings(prop1));
25284AssertEx.SetEqual(new string[] { }, getAttributeStrings(field1));
25287AssertEx.SetEqual(new string[] { }, getAttributeStrings(param1));
25362AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25446AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
25516AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
28153AssertEx.Equal(
28305AssertEx.Equal(
28597AssertEx.Equal(
28644AssertEx.Equal(
28692AssertEx.Equal(
28740AssertEx.Equal(
28792AssertEx.Equal(
28843AssertEx.Equal(
28901AssertEx.Equal(
29008AssertEx.Equal(
29059AssertEx.Equal(
30186AssertEx.Equal(expectedMembers, actualMembers);
30216AssertEx.Equal(expectedMembers, actualMembers);
30373AssertEx.Equal("System.Int32 X", model.GetSymbolInfo(xReference).Symbol.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (20)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (7)
83AssertEx.Equal(["namespace N"], results.Select(Inspect));
178AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage);
181AssertEx.Equal($"CSharpAssembly1: [179..179) 'F(x + 1);': InsufficientExecutionStackException: '{expectedMessage}'", Inspect(exception, query));
183AssertEx.Equal(
236AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage);
239AssertEx.Equal($"CSharpAssembly1: [190..190) 'var x = s.ToString();': NullReferenceException: '{expectedMessage}'", Inspect(exception, query));
240AssertEx.Equal(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (65)
CommandLineRunnerTests.cs (42)
126AssertEx.AssertEqualToleratingWhitespaceDifferences(
141AssertEx.AssertEqualToleratingWhitespaceDifferences(
164AssertEx.AssertEqualToleratingWhitespaceDifferences(
199AssertEx.AssertEqualToleratingWhitespaceDifferences(
224AssertEx.AssertEqualToleratingWhitespaceDifferences(
239AssertEx.AssertEqualToleratingWhitespaceDifferences(
330AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
331AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
354AssertEx.AssertEqualToleratingWhitespaceDifferences(
377AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
394AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
421AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
443AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
462AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
477AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
478AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
488AssertEx.AssertEqualToleratingWhitespaceDifferences(
501AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
505AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
509AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
513AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString());
531AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString());
532AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString());
541AssertEx.AssertEqualToleratingWhitespaceDifferences(
549AssertEx.AssertEqualToleratingWhitespaceDifferences(
568AssertEx.AssertEqualToleratingWhitespaceDifferences("3", runner.Console.Out.ToString());
620AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
657AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
681AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
696AssertEx.AssertEqualToleratingWhitespaceDifferences(
717AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
732AssertEx.AssertEqualToleratingWhitespaceDifferences(
756AssertEx.Equal(new[]
767AssertEx.Equal(new[]
787AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
807AssertEx.AssertEqualToleratingWhitespaceDifferences($@"
816AssertEx.AssertEqualToleratingWhitespaceDifferences(
916AssertEx.AssertEqualToleratingWhitespaceDifferences(
939AssertEx.AssertEqualToleratingWhitespaceDifferences(
952AssertEx.AssertEqualToleratingWhitespaceDifferences(
968AssertEx.AssertEqualToleratingWhitespaceDifferences(
987AssertEx.AssertEqualToleratingWhitespaceDifferences(
InteractiveSessionTests.cs (20)
899AssertEx.Equal(new[] { "hello", "hello" }, result);
1023AssertEx.Equal(new object[] { 1, 1, null }, result);
1037AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1);
1040AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2);
1043AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue);
1046AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue);
1049AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue);
1674AssertEx.SetEqual(new[] { "<implicit>", "<host>" }, aliases);
1681AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
1686AssertEx.SetEqual(new[] { "<host>" }, aliases);
1722AssertEx.SetEqual(Array.Empty<string>(), aliases);
1728AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases);
1736AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases);
1743AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
1750AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
1788AssertEx.SetEqual(Array.Empty<string>(), aliases);
1794AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases);
1802AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases);
1809AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
1816AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
ScriptTests.cs (3)
399AssertEx.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name));
400AssertEx.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value));
401AssertEx.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (964)
Semantics\DynamicTests.cs (591)
4982AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
4986AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString());
4988AssertEx.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
4990AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
4991AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
4994AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5063AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5106AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5110AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString());
5112AssertEx.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5114AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5115AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5118AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5186AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5229AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5233AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString());
5235AssertEx.Equal("dynamic I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5237AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5238AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5241AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5310AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5347AssertEx.Equal(@"new C().Test(""name"", d)", call.ToString());
5388AssertEx.Equal(@"Test(name: ""name"", d)", call.ToString());
5390AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5392AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5393AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5432AssertEx.Equal(@"Test(&name, d)", call.ToString());
5434AssertEx.Equal("System.Int32 C.Test(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5436AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5437AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5476AssertEx.Equal(@"Test(""name"", d)", call.ToString());
5478AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString());
5480AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5481AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5484AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5520AssertEx.Equal(@"Test(""name"", d)", call.ToString());
5522AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
5524AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5525AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5528AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5697AssertEx.Equal(@"i1(""name"", value)", call.ToString());
5699AssertEx.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5701AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5702AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5705AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5738AssertEx.Equal(@"Test(name: ""name"", d)", call.ToString());
5740AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5742AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5743AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5783AssertEx.Equal(@"Test(&name, d)", call.ToString());
5785AssertEx.Equal("System.Int32 C.D.Invoke(System.String* name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
5787AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5788AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5828AssertEx.Equal(@"Test(""name"", d)", call.ToString());
5830AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list)", symbolInfo.Symbol.ToTestDisplayString());
5832AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5833AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5836AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
5873AssertEx.Equal(@"Test(""name"", d)", call.ToString());
5875AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
5877AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
5878AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
5881AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6028AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6033AssertEx.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6035AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6036AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6039AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6108AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6151AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6156AssertEx.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6158AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6159AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6162AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6231AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6271AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6276AssertEx.Equal("dynamic I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6278AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6279AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6282AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6351AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6384AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6386AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6387AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6390AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6426AssertEx.Equal("System.Int32 C.this[System.String* name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6428AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6429AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6473AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Collections.Generic.List<System.Int32> list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6475AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6476AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6517AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6519AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6520AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6562AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6564AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6565AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6573AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6574AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6616AssertEx.Equal("System.Int32* C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
6618AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6619AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6677AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6682AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6684AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6685AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6692AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6693AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6696AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6697AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
6698AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6702AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
6703AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
6740AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6786AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6791AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6793AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6794AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6801AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6802AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6805AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6806AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
6807AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6811AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
6812AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
6849AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6896AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6901AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
6903AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6904AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6911AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6912AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6915AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
6916AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
6917AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
6921AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
6922AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
6960AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
6998AssertEx.Equal("System.IO.Stream C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7000AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7001AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7008AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7009AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7012AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7013AssertEx.Equal("System.Object", operation.Value.Type.ToTestDisplayString());
7014AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7018AssertEx.Equal("System.Object", typeInfo.Type.ToTestDisplayString());
7019AssertEx.Equal("System.Object", typeInfo.ConvertedType.ToTestDisplayString());
7065AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7070AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
7072AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7073AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7080AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7081AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7085AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7086AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7122AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
7168AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7173AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7175AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7176AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7183AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7184AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7186AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7189AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7190AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
7191AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7196AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7197AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7234AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7281AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7286AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7288AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7289AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7296AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7297AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7299AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7302AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7303AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
7304AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7309AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7310AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7350AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7397AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7402AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7404AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7405AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7412AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7413AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7415AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, dynamic right)", symbolInfo.Symbol.ToTestDisplayString());
7418AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7419AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
7420AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7425AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7426AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7467AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7510AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7515AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7517AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7518AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7525AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7527AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7529AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, C2 right)", symbolInfo.Symbol.ToTestDisplayString());
7532AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7533AssertEx.Equal("C2", operation.Value.Type.ToTestDisplayString());
7534AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7540AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
7541AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
7587AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7592AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
7594AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7595AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7602AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7603AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7605AssertEx.Equal("dynamic dynamic.op_Addition(dynamic left, System.Int32 right)", symbolInfo.Symbol.ToTestDisplayString());
7609AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
7610AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
7646AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7692AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7697AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7699AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7700AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7707AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7708AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7710AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7713AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7714AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7752AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7798AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7803AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7805AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7806AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7813AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7814AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7816AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7819AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7820AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7858AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7901AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7907AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7909AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7910AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7917AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7921AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7924AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7925AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
7973AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7978AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
7980AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7981AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7988AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
7989AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
7991AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
7994AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
7995AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8033AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8079AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8084AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8086AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8087AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8094AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8095AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8097AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
8100AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8101AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8139AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8184AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8189AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
8191AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8192AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8199AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8200AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8202AssertEx.Equal("dynamic dynamic.op_Increment(dynamic value)", symbolInfo.Symbol.ToTestDisplayString());
8205AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8206AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8243AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8289AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8294AssertEx.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8296AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8297AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8304AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8305AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8308AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8309AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8310AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8314AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8315AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8352AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8398AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8403AssertEx.Equal("System.Int32? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8405AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8406AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8413AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8414AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8417AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8418AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8419AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8423AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8424AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8461AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8507AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8512AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8514AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8515AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8522AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8523AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8526AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8527AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8528AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8532AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8533AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8570AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8617AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8622AssertEx.Equal("System.String C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8624AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8625AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8632AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8633AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8636AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8637AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8638AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8642AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8643AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8681AssertEx.Equal("dynamic?", typeInfo.Type.ToTestDisplayString());
8731AssertEx.Equal("C2? C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8733AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8734AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8741AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8742AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8745AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8746AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8747AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8751AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString());
8752AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8800AssertEx.Equal("C2 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
8802AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8803AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8810AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8811AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8814AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8815AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8816AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8820AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
8821AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8867AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8872AssertEx.Equal("ref System.Int32? C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
8874AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8875AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8882AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8883AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8886AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8887AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8888AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8892AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8893AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8930AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8931AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8938AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
8939AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
8942AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
8943AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
8944AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
8948AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
8949AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9020AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9021AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9028AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9029AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9032AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9033AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9034AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9038AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
9039AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9111AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9112AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9119AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9120AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9123AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9124AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9125AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9129AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9130AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9201AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9202AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9209AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9210AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9213AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9214AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9215AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9219AssertEx.Equal("System.String", typeInfo.Type.ToTestDisplayString());
9220AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9257AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9258AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9265AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9266AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9269AssertEx.Equal("dynamic", operation.Target.Type.ToTestDisplayString());
9270AssertEx.Equal("dynamic", operation.Value.Type.ToTestDisplayString());
9271AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9275AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
9276AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9318AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9319AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9326AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9327AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9330AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9439AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9440AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9447AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9448AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9451AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9559AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9560AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9567AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9568AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9571AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9673AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9674AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9681AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9682AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9685AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9784AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9785AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9792AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9793AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9796AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
9895AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9896AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9903AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
9904AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
9907AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
10019AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10024AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10026AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10027AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10034AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10035AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10039AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10040AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10051AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10052AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10056AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10057AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10096AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10147AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10152AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10154AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10155AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10162AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10163AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10167AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10168AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10179AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10180AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10184AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10185AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10224AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10275AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10280AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10282AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10283AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10290AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10291AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10295AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10296AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10307AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10308AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10312AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10313AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10352AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10429AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10434AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
10436AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10437AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10444AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10445AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10449AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10450AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10461AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
10462AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10466AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
10467AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10504AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10563AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10568AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10570AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10571AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10578AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10579AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10583AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10584AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10595AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
10596AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
10651AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10711AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10716AssertEx.Equal("dynamic C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
10718AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10719AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10726AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10727AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
10731AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
10732AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
10743AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
10744AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
10801AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10981AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10986AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
10988AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
10989AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
10996AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.Type.ToTestDisplayString());
10997AssertEx.Equal("(dynamic, System.Int32)", tupleTypeInfo.ConvertedType.ToTestDisplayString());
11001AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11002AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11013AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
11014AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
11067AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11107AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11109AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11110AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11114AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11115AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11119AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11120AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11124AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11125AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11131AssertEx.Equal("((System.Int32, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11132AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11136AssertEx.Equal("(System.Int32, System.Int32)", typeInfo.Type.ToTestDisplayString());
11137AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11141AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
11142AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11191AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11193AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11194AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11198AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11199AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11203AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11204AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11208AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.Type.ToTestDisplayString());
11209AssertEx.Equal("((dynamic, System.Int32), System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11215AssertEx.Equal("(C2, System.Int32)", typeInfo.Type.ToTestDisplayString());
11216AssertEx.Equal("(C2, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11220AssertEx.Equal("C2", typeInfo.Type.ToTestDisplayString());
11221AssertEx.Equal("C2", typeInfo.ConvertedType.ToTestDisplayString());
11269AssertEx.Equal("System.Int32 C.this[System.Int32 x] { get; set; }", symbolInfo.Symbol.ToTestDisplayString());
11271AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11272AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11276AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11277AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11281AssertEx.Equal("(dynamic, System.Int32)", typeInfo.Type.ToTestDisplayString());
11282AssertEx.Equal("(dynamic, System.Int32)", typeInfo.ConvertedType.ToTestDisplayString());
11323AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11327AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString());
11329AssertEx.Equal("System.Object I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11331AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11332AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11335AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11376AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11380AssertEx.Equal(@"i1.Test(""name"", value)", call.ToString());
11382AssertEx.Equal("System.Int32 I1.Test(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11384AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11385AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11388AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11456AssertEx.Equal(@"Test(""name"", d)", call.ToString());
11458AssertEx.Equal(@"System.Int32 C.Test(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
11460AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11461AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11464AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11500AssertEx.Equal(@"i1(""name"", value)", call.ToString());
11502AssertEx.Equal("System.Object Test.Invoke(System.String name, System.Object value)", symbolInfo.Symbol.ToTestDisplayString());
11504AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11505AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11508AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11541AssertEx.Equal(@"Test(""name"", d)", call.ToString());
11543AssertEx.Equal(@"System.Int32 C.D.Invoke(System.String name, System.Object value, params System.Int32[] list)", symbolInfo.Symbol.ToTestDisplayString());
11545AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11546AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11549AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11590AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11595AssertEx.Equal("System.Object I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11597AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11598AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11601AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11642AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11647AssertEx.Equal("System.Int32 I1.this[System.String name, System.Object value] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11649AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11650AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11653AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
11687AssertEx.Equal("System.Int32 C.this[System.String name, System.Object value, params System.Int32[] list] { get; }", symbolInfo.Symbol.ToTestDisplayString());
11689AssertEx.Equal("dynamic", typeInfo.Type.ToTestDisplayString());
11690AssertEx.Equal("dynamic", typeInfo.ConvertedType.ToTestDisplayString());
11693AssertEx.Equal("dynamic", operation.Type.ToTestDisplayString());
Semantics\FunctionPointerTests.cs (22)
907AssertEx.Equal(expectedOriginalType, typeInfo.Type!.ToTestDisplayString());
908AssertEx.Equal(expectedConvertedType, typeInfo.ConvertedType!.ToTestDisplayString());
1664AssertEx.Equal("void C.M1<System.String>(delegate*<System.String, System.Void> param1, delegate*<System.String, System.Void> param2)",
1697AssertEx.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object, System.Void>, System.Void> param1, delegate*<delegate*<System.Object, System.Void>, System.Void> param2)",
1730AssertEx.Equal("void C.M1<System.String>(delegate*<delegate*<System.String>, System.Void> param1, delegate*<delegate*<System.String>, System.Void> param2)",
1824AssertEx.Equal("void C.M1<System.Object>(delegate*<System.Object> param1, delegate*<System.Object> param2)",
1857AssertEx.Equal("void C.M1<System.String>(delegate*<delegate*<System.String, System.Void>> param1, delegate*<delegate*<System.String, System.Void>> param2)",
1890AssertEx.Equal("void C.M1<System.Object>(delegate*<delegate*<System.Object>> param1, delegate*<delegate*<System.Object>> param2)",
2009AssertEx.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)",
2058AssertEx.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)",
2089AssertEx.Equal("ptr = M(C.Field)", localSyntax.ToString());
2092AssertEx.Equal("delegate* unmanaged<System.Int32>", local.Type.ToTestDisplayString());
2095AssertEx.Equal("delegate* unmanaged<System.Int32>", typeInfo.Type.ToTestDisplayString());
2127AssertEx.Equal("delegate* unmanaged[Stdcall, Cdecl]<System.Int32 modopt(System.Runtime.CompilerServices.CallConvStdcall) modopt(System.Runtime.CompilerServices.CallConvCdecl)>", funcPtrType.ToTestDisplayString());
2128AssertEx.SetEqual(new[]
2246AssertEx.Equal(expectedTypes, invocationTypes);
2301AssertEx.Equal(expectedTypes, invocationTypes);
2376AssertEx.Equal(expectedTypes, invocationTypes);
2444AssertEx.Equal(expectedTypes, invocationTypes);
2512AssertEx.Equal(expectedTypes, invocationTypes);
2611AssertEx.Equal(expectedTypes, invocationTypes);
2684AssertEx.Equal(expectedTypes, invocationTypes);
Semantics\ImportsTests.cs (4)
49AssertEx.SetEqual(new[] { "C", "D" }, usingAliases1.Select(a => a.Key));
57AssertEx.SetEqual(new[] { "C", "D" }, usingAliases2.Select(a => a.Key));
85AssertEx.SetEqual(new[] { "D", "E", "F" }, usingAliases1.Select(a => a.Key));
94AssertEx.SetEqual(new[] { "D", "E", "F" }, usingAliases2.Select(a => a.Key));
Semantics\InterpolationTests.cs (45)
4589AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
6795AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6821AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6853AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6888AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6928AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6963AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7003AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7041AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7081AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7116AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7156AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7191AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7224AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7264AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7304AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7344AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7384AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7419AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7461AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7496AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7538AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7579AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7619AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7687AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7781AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7893AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7959AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7989AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8091AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8233AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8293AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8413AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8651AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8776AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8927AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9038AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9105AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9161AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9277AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9393AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9518AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9779AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
9854AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
11912AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\LambdaTests.cs (6)
3621AssertEx.Equal(expectedAttributes, pairs.Select(p => getAttributesInternal(p.Item1, p.Item2)));
3622AssertEx.Equal(expectedAttributes, pairs.Select(p => getAttributesPublic(p.Item1, p.Item2)));
3905AssertEx.Equal(expectedAttributes, actualAttributes);
7019AssertEx.Equal("System.Action", model.GetTypeInfo(action).Type.ToTestDisplayString());
8450AssertEx.Equal("TResult <>f__AnonymousDelegate0<T1, TResult>.Invoke(params T1[] arg)", lam1.DelegateInvokeMethod.ToTestDisplayString());
8461AssertEx.Equal("TResult <>f__AnonymousDelegate1<T1, T2, TResult>.Invoke(T1 arg1, params T2[] arg2)", lam3.DelegateInvokeMethod.ToTestDisplayString());
Semantics\NativeIntegerTests.cs (17)
305AssertEx.Equal(nativeIntegerMembers.SelectAsArray(m => m.Name), nativeIntegerMemberNames);
309AssertEx.Equal(expectedMembers, actualMembers);
414AssertEx.Equal(nativeIntegerMembers.SelectAsArray(m => m.Name), nativeIntegerMemberNames);
1799AssertEx.Equal(expectedLocals, actualLocals);
1820AssertEx.Equal(expectedMembers, actualMembers);
1985AssertEx.Equal(expectedMembers, actualMembers);
2149AssertEx.Equal(expectedMembers, actualMembers);
2248AssertEx.Equal(expectedMembers, actualMembers);
2354AssertEx.Equal(expectedLocals, actualLocals);
2373AssertEx.Equal(expectedMembers, actualMembers);
2474AssertEx.Equal(expectedLocals, actualLocals);
2501AssertEx.Equal(expectedMembers, actualMembers);
2650AssertEx.Equal(expectedMembers, actualMembers);
2751AssertEx.Equal(expectedMembers, actualMembers);
2902AssertEx.Equal(expectedMembers, actualMembers);
6071AssertEx.Equal(expectedOperators, actualOperators);
6130AssertEx.Equal(expectedOperators, actualOperators);
Semantics\NullableContextTests.cs (36)
211AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
260AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
319AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
357AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
396AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
431AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
727AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
728AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
987AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
988AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1068AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1069AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1152AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1153AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1211AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1212AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1302AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1303AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1359AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1360AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1455AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
1495AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1496AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1531AssertEx.Equal(new[] { "= null", "= null", "F2" }, actualAnalyzedKeys);
1617AssertEx.Equal(expectedAnalyzedKeys, actualAnalyzedKeys);
1741AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1742AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1784AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1785AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1846AssertEx.Equal(expectedAnalyzedKeys, GetNullableDataKeysAsStrings(comp.TestOnlyCompilationData, requiredAnalysis: true));
1847AssertEx.Equal(expectedAnalyzedKeys, GetIsNullableEnabledMethods(comp.TestOnlyCompilationData));
1884AssertEx.Equal(new[] { "A(A.F1 = null)" }, actualAnalyzedKeys);
1939AssertEx.Equal(new[] { expectedAnalyzedKey }, actualAnalyzedKeys);
1975AssertEx.Equal(new[] { "o1" }, actualAnalyzedKeys);
2016AssertEx.Equal(new[] { "F2", "F3" }, actualAnalyzedKeys);
2055AssertEx.Equal(new[] { "P2", "P3" }, actualAnalyzedKeys);
Semantics\NullableReferenceTypesTests.cs (111)
13502AssertEx.Equal("S?[]", model.GetTypeInfo(returnStatement.Expression).Type.ToTestDisplayString());
28372AssertEx.Empty(copenAttributes);
28376AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
28383AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, propertyAttributes);
28387AssertEx.Empty(propertyAttributes);
28394AssertEx.Empty(getterAttributes);
28398AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
28405AssertEx.Empty(getterReturnAttributes);
28409AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, getterReturnAttributes);
28416AssertEx.Empty(setterAttributes);
28420AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes.Select(a => a.ToString()));
28425AssertEx.Empty(setterReturnAttributes);
28475AssertEx.Empty(copenAttributes);
28479AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
28486AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
28490AssertEx.Empty(propertyAttributes);
28497AssertEx.Empty(getterAttributes);
28501AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
28508AssertEx.Empty(getterReturnAttributes);
28512AssertEx.Equal(new[] {
28999AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
29003AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
38986AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
38990AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
39160AssertEx.Empty(copenAttributes);
39164AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
39171AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, propertyAttributes);
39175AssertEx.Empty(propertyAttributes);
39180AssertEx.Empty(setterAttributes);
39186AssertEx.Empty(setterValueAttributes);
39190AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, setterValueAttributes);
39195AssertEx.Empty(setterReturnAttributes);
39221AssertEx.Empty(copenAttributes);
39225AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
39232AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
39236AssertEx.Empty(propertyAttributes);
39241AssertEx.Empty(setterAttributes);
39247AssertEx.Empty(setterValueAttributes);
39251AssertEx.Equal(new[] {
42841AssertEx.Empty(copenAttributes);
42845AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
42852AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
42856AssertEx.Empty(propertyAttributes);
42863AssertEx.Empty(setterAttributes);
42867AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes);
42874AssertEx.Empty(setterValueAttributes);
42878AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, setterValueAttributes);
43090AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
43094AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
46178AssertEx.Empty(copenAttributes);
46182AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
46189AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
46193AssertEx.Empty(propertyAttributes);
46202AssertEx.Empty(getterReturnAttributes);
46206AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, getterReturnAttributes);
46290AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
46294AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
109911AssertEx.Equal(expectedTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
109976AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
110029AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true)));
114795AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
125115AssertEx.Equal<NullableAnnotation>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableAnnotation.{na}", "{0,-32:G}", size);
125120AssertEx.Equal<NullableFlowState>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableFlowState.{na}", "{0,-32:G}", size);
136439AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136446AssertEx.Equal("I<T>", interfaces[0].ToTestDisplayString(includeNonNullable: true));
136448AssertEx.Equal("I<T>", interfaces[1].ToTestDisplayString(includeNonNullable: true));
136454AssertEx.Equal("I<T>", i.ToTestDisplayString(includeNonNullable: true));
136483AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136487AssertEx.Equal("I<T, T>", i.ToTestDisplayString(includeNonNullable: true));
136523AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136527AssertEx.Equal("I<T, System.Object?>", i.ToTestDisplayString(includeNonNullable: true));
136531AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136535AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true));
136571AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136575AssertEx.Equal("I<T, System.Object>", i.ToTestDisplayString(includeNonNullable: true));
136579AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136583AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true));
136608AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136612AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
136638AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136642AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
136668AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136672AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
136696AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true));
136700AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true));
156058AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>" },
156060AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>", "I<object>" },
156092AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>" },
156094AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>", "I<(int notA, int notB)>" },
156130AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>" },
156132AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>", "I<(object notA, object notB)>" },
156158AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
156160AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156190AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
156192AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156359AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156361AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156400AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
156402AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
156440AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
156442AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
156654AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156656AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
156696AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
156698AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
156777AssertEx.Equal(new string[] { "I<object?>", "I2<object>" },
156779AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object!>" },
156809AssertEx.Equal(new string[] { "I<object?>", "I2<object>" },
156811AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object>" },
156843AssertEx.Equal(new string[] { "I<object?>", "I2<object!>" },
156845AssertEx.Equal(new string[] { "I<object?>", "I2<object!>", "I<object!>" },
Semantics\ObjectAndCollectionInitializerTests.cs (22)
4218AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString());
4220AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4221AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4224AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString());
4229AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4230AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4233AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString());
4234AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
4235AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString());
4239AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4240AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4272AssertEx.Equal("ref System.Int32 C.P { get; }", symbolInfo.Symbol.ToTestDisplayString());
4274AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4275AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4278AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString());
4283AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4284AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
4287AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString());
4288AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString());
4289AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString());
4293AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString());
4294AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
Semantics\RawInterpolationTests_Handler.cs (41)
2919AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString());
5080AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5108AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5145AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5185AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5232AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5272AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5319AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5362AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5409AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5449AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5496AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5536AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5583AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5630AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5677AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5717AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5766AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5806AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5855AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5901AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5948AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
5978AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6104AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6173AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6203AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6437AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6499AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6621AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6861AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
6988AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7141AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7254AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7325AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7385AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7503AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7621AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
7749AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8021AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8099AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
8526AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute",
Semantics\RecordStructTests.cs (21)
828AssertEx.Equal(new[] {
1351AssertEx.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
1993AssertEx.Equal(expectedMembers,
2016AssertEx.Equal(expectedMemberNames, comp.GetMember<NamedTypeSymbol>("C").GetPublicSymbol().MemberNames);
2066AssertEx.Equal(expectedMembers, actualMembers);
2749AssertEx.Equal(expectedMembers, actualMembers);
2773AssertEx.Equal(expectedMembers, actualMembers);
3217AssertEx.Equal(
3292AssertEx.Equal(
3340AssertEx.Equal(
3391AssertEx.Equal(
3770AssertEx.Equal(new[] {
4152AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4153AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
4174AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4175AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
5101AssertEx.SetEqual(new[] { "System.Boolean RecordB.op_Equality(RecordB left, RecordB right)" },
10489AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1));
10492AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1));
10495AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1));
10639AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, SyntaxFactory.TypeDeclaration(SyntaxKind.RecordStructDeclaration, "Point").NormalizeWhitespace().ToString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (308)
Compilation\CompilationAPITests.cs (28)
2690AssertEx.Equal(Array.Empty<CodeAnalysis.NullableAnnotation>(), GetAnonymousTypeNullableAnnotations(type));
2703AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, GetAnonymousTypeNullableAnnotations(type));
2709AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.NotAnnotated, CodeAnalysis.NullableAnnotation.Annotated }, GetAnonymousTypeNullableAnnotations(type));
2745AssertEx.Equal(display, result);
2763AssertEx.Equal(display, result);
2782AssertEx.Equal("int.operator +(int, int)", result);
2941AssertEx.Equal(display, result);
2953AssertEx.Equal(display, result);
2972AssertEx.Equal("int.operator +(int)", result);
3039AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3040AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3047AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3048AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3074AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations);
3075AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3082AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations);
3083AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3428AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3453AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3477AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3479AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString());
3505AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3534AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3535AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString());
3572AssertEx.Equal("N.C<T>", types[0].ToTestDisplayString());
3574AssertEx.Equal("N.C<T>", types[1].ToTestDisplayString());
3575AssertEx.Equal("N.C<T>", types[2].ToTestDisplayString());
3614AssertEx.Equal(types.Select(t => t.ToTestDisplayString()), new[] { "C", "C", "C" });
Compilation\ReferenceManagerTests.cs (5)
387AssertEx.SetEqual(new[] { $"{RuntimeCorLibName.Name} {RuntimeCorLibName.Version.ToString(2)}", "RefLibV1 1.0", "Lib 2.0", "X 2.0" }, reader.DumpAssemblyReferences());
783AssertEx.SetEqual(new[] { "goo", "global" }, c.ExternAliases);
790AssertEx.SetEqual(new[] { "goo", "bar" }, c.ExternAliases);
1739AssertEx.SetEqual(new[] { "mscorlib 4.0" }, reader.DumpAssemblyReferences());
1797AssertEx.Equal(moduleReferences1, moduleReferences2);
DocumentationComments\CrefTests.cs (26)
305AssertEx.All(crefSyntaxes, cref => model.GetSymbolInfo(cref).Symbol == null);
937AssertEx.Equal(expected, actual);
1033AssertEx.Equal(expected, actual);
1132AssertEx.Equal(expected, actual);
1215AssertEx.SetEqual(expectedCandidates.AsEnumerable(), actualCandidates.ToArray());
1389AssertEx.SetEqual(expectedCandidates, actualCandidates.ToArray());
1558AssertEx.None(actualTypeParameters, p => p.IsFromCompilation(compilation));
1559AssertEx.None(actualTypeParameters, p => p.IsImplicitlyDeclared);
1560AssertEx.All(actualTypeParameters, p => p.Variance == VarianceKind.None);
1561AssertEx.All(actualTypeParameters, p => p.Locations.Single() == p.DeclaringSyntaxReferences.Single().GetLocation());
1562AssertEx.None(actualTypeParameters, p => p.HasValueTypeConstraint);
1563AssertEx.None(actualTypeParameters, p => p.HasReferenceTypeConstraint);
1564AssertEx.None(actualTypeParameters, p => p.HasConstructorConstraint);
1565AssertEx.All(actualTypeParameters, p => p.ContainingSymbol == null);
1566AssertEx.All(actualTypeParameters, p => p.GetConstraintTypes(null).Length == 0);
1567AssertEx.All(actualTypeParameters, p => p.GetInterfaces(null).Length == 0);
1639AssertEx.Equal(expectedOriginalParameterTypes.Select(t => t.Ordinal), actualParameterTypes.Select(t => t.Ordinal));
1640AssertEx.None(expectedOriginalParameterTypes.Zip(actualParameterTypes, object.Equals), x => x);
1670AssertEx.All(actualWinner.ContainingType.TypeArguments(), typeParam => TypeSymbol.Equals(typeParam, actualParameterType, TypeCompareKind.ConsiderEverything2)); //CONSIDER: Would be different in Dev11.
2012AssertEx.SetEqual(actualCandidates.Select(sym => sym.ContainingAssembly.Name), "Lib1", "Lib2");
2018AssertEx.SetEqual(info.CandidateSymbols.Select(sym => sym.ContainingAssembly.Name), "Lib1", "Lib2");
3380AssertEx.SetEqual(model.LookupSymbols(position).Select(SymbolExtensions.ToTestDisplayString),
4629AssertEx.None(GetCrefSyntaxes(compilation), x => true);
5090AssertEx.Equal(expectedSymbols, actualSymbols);
5678AssertEx.None(cref.DescendantTokens(descendIntoTrivia: true), token => token.ValueText == null);
5693AssertEx.None(cref.DescendantTokens(descendIntoTrivia: true), token => token.ValueText == null);
DocumentationComments\DocumentationCommentCompilerTests.cs (38)
930AssertEx.AssertLinesEqual(expected: """
941AssertEx.AssertLinesEqual("""
990AssertEx.Equal(expected, actualA);
1040AssertEx.Equal(expected, actualA);
1091AssertEx.Equal(expected, actualA);
1145AssertEx.Equal(expected, actualA);
1193AssertEx.Equal(expected, actualA);
1249AssertEx.Equal(expected, actualA);
1312AssertEx.Equal(expected, actual);
1375AssertEx.Equal(expected, actual);
1438AssertEx.Equal(expected, actual);
1495AssertEx.Equal(expected, actual);
1516AssertEx.AssertLinesEqual(expected: """
1527AssertEx.AssertLinesEqual("""
1577AssertEx.Equal(expected, actualA);
1628AssertEx.Equal(expected, actualA);
1654AssertEx.AssertLinesEqual(expected: """
1665AssertEx.AssertLinesEqual("""
1716AssertEx.Equal(expected, actualA);
1768AssertEx.Equal(expected, actualA);
1823AssertEx.Equal(expected, actualA);
1872AssertEx.Equal(expected, actualA);
1929AssertEx.Equal(expected, actualA);
1993AssertEx.Equal(expected, actual);
2057AssertEx.Equal(expected, actual);
2121AssertEx.Equal(expected, actual);
2179AssertEx.Equal(expected, actual);
6924AssertEx.None(module.GetReferencedAssemblies(), id => id.Name.Contains("GeneralPia"));
7658AssertEx.Equal(expected, actual);
7687AssertEx.Equal(expected, actual);
7735AssertEx.Equal(expected, actual);
7779AssertEx.Equal(expected, actual);
7819AssertEx.Equal(expected, actual);
7856AssertEx.Equal(expected, actual);
7887AssertEx.Equal(expected, actual);
7931AssertEx.Equal(expected, actual);
7975AssertEx.Equal(expected, actual);
8022AssertEx.Equal(expected, actual);
DocumentationComments\ParameterTests.cs (34)
335AssertEx.SetEqual(parameters, info.CandidateSymbols);
358AssertEx.SetEqual(typeParameters, info.CandidateSymbols);
411AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
412AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
413AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
414AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
438AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
439AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
440AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString), "T");
441AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString), "T");
465AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
466AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 value");
467AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
468AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
492AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
493AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
494AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
495AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
519AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
520AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x", "System.Int32 value");
521AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
522AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
546AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
547AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString), "System.Int32 x");
548AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
549AssertEx.SetEqual(model.LookupSymbols(pos4).Select(SymbolExtensions.ToTestDisplayString));
574AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
575AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
576AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
577AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
602AssertEx.SetEqual(model.LookupSymbols(pos1).Select(SymbolExtensions.ToTestDisplayString));
603AssertEx.SetEqual(model.LookupSymbols(pos2).Select(SymbolExtensions.ToTestDisplayString));
604AssertEx.SetEqual(model.LookupSymbols(pos3).Select(SymbolExtensions.ToTestDisplayString));
605AssertEx.SetEqual(model.LookupSymbols(pos4), compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").TypeParameters.Single());
Symbols\CustomModifiersTests.cs (2)
2395AssertEx.SetEqual(new[] { "A", "B", ".ctor", "I.A", "Main", ".ctor" }, new[] { reader }.GetStrings(reader.GetMethodDefNames()));
2431AssertEx.SetEqual(new[] { ".ctor", "F", "I.F", "Main" }, new[] { reader }.GetStrings(reader.GetMethodDefNames()));
Symbols\OverriddenOrHiddenMembersTests.cs (12)
276AssertEx.SetEqual(derivedInterface1MethodOverriddenOrHidden.HiddenMembers, baseInterface1Method, baseInterface2Method);
280AssertEx.SetEqual(derivedInterface1PropertyOverriddenOrHidden.HiddenMembers, baseInterface1Property, baseInterface2Property);
284AssertEx.SetEqual(derivedInterface2MethodOverriddenOrHidden.HiddenMembers, baseInterface1Method, baseInterface2Method);
288AssertEx.SetEqual(derivedInterface2PropertyOverriddenOrHidden.HiddenMembers, baseInterface1Property, baseInterface2Property);
2920AssertEx.All(properties, p =>
2968AssertEx.All(properties, p =>
3016AssertEx.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3063AssertEx.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3110AssertEx.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3157AssertEx.All(properties, p => p.DeclaredAccessibility == Accessibility.Public);
3231AssertEx.All(properties, p => p.DeclaredAccessibility == Accessibility.ProtectedOrInternal);
3284AssertEx.All(events, e =>
Symbols\PartialPropertiesTests.cs (64)
54AssertEx.Equal([
62AssertEx.Equal([
69AssertEx.Equal([
76AssertEx.Equal([
84AssertEx.Equal([
126AssertEx.Equal([
134AssertEx.Equal([
141AssertEx.Equal([
148AssertEx.Equal([
156AssertEx.Equal([
915AssertEx.Equal([
990AssertEx.Equal([
1067AssertEx.Equal([
1075AssertEx.Equal([
1134AssertEx.Equal([
1145AssertEx.Equal([
1181AssertEx.Equal([
1192AssertEx.Equal([
1769AssertEx.Equal("System.String C.this[System.String? x] { get; set; }", indexers[0].ToTestDisplayString());
1770AssertEx.Equal("System.String? C.this[System.String x, System.Boolean ignored] { get; set; }", indexers[1].ToTestDisplayString());
1771AssertEx.Equal("System.String C.this[System.Boolean ignored] { get; }", indexers[2].ToTestDisplayString());
1772AssertEx.Equal("System.String? C.this[System.Int32 ignored] { get; }", indexers[3].ToTestDisplayString());
1843AssertEx.Equal([
1947AssertEx.Equal([
2009AssertEx.Equal([
3323AssertEx.Equal([declAttribute, implAttribute], property.GetAttributes().ToStrings());
3324AssertEx.Equal([declAttribute, implAttribute], property.PartialImplementationPart!.GetAttributes().ToStrings());
3357AssertEx.Equal([declAttribute, implAttribute], property.GetAttributes().ToStrings());
3360AssertEx.Equal([declAttribute, implAttribute], ((SourcePropertySymbol)property).PartialImplementationPart!.GetAttributes().ToStrings());
3393AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], property.GetAttributes().ToStrings());
3394AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], property.PartialImplementationPart!.GetAttributes().ToStrings());
3433AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.GetAttributes().ToStrings());
3434AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.PartialImplementationPart!.GetAttributes().ToStrings());
3482AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.GetAttributes().ToStrings());
3483AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], accessor.PartialImplementationPart!.GetAttributes().ToStrings());
3523AssertEx.Equal([], accessor.GetAttributes().ToStrings());
3524AssertEx.Equal([], accessor.PartialImplementationPart.GetAttributes().ToStrings());
3525AssertEx.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], accessor.Parameters.Single().GetAttributes().ToStrings());
3526AssertEx.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], accessor.PartialImplementationPart!.Parameters.Single().GetAttributes().ToStrings());
3556AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], indexer.GetAttributes().ToStrings());
3557AssertEx.Equal(["A(1)", "B(1)", "A(2)", "B(2)"], indexer.PartialImplementationPart!.GetAttributes().ToStrings());
3598AssertEx.Equal(["A(2)", "B(2)", "A(1)", "B(1)"], param.GetAttributes().ToStrings());
3650AssertEx.Equal(["Attr", "Attr"], property.GetAttributes().ToStrings());
3651AssertEx.Equal(["Attr", "Attr"], property.GetMethod!.GetAttributes().ToStrings());
3652AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.GetAttributes().ToStrings());
3653AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.Parameters.Single().GetAttributes().ToStrings());
3712AssertEx.Equal(["Attr", "Attr"], property.GetAttributes().ToStrings());
3713AssertEx.Equal(["Attr", "Attr"], property.GetMethod!.GetAttributes().ToStrings());
3714AssertEx.Equal(["Attr", "Attr"], property.GetMethod!.Parameters[0].GetAttributes().ToStrings());
3715AssertEx.Equal(["Attr", "Attr"], property.GetMethod!.Parameters[1].GetAttributes().ToStrings());
3716AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.GetAttributes().ToStrings());
3717AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[0].GetAttributes().ToStrings());
3718AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[1].GetAttributes().ToStrings());
3719AssertEx.Equal(["Attr", "Attr"], property.SetMethod!.Parameters[2].GetAttributes().ToStrings());
3752AssertEx.Equal([], property.GetAttributes().ToStrings());
3893AssertEx.Equal([
3987AssertEx.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4030AssertEx.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4066AssertEx.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4108AssertEx.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4144AssertEx.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4186AssertEx.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings());
4237AssertEx.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("x")"""], indexer.Parameters[1].GetAttributes().ToStrings());
4294AssertEx.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("x")"""], indexer.Parameters[1].GetAttributes().ToStrings());
Symbols\RequiredMembersTests.cs (17)
32AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedAttributeLayout, actualAttributes);
40AssertEx.NotNull(member, $"Member {memberPath} was not found");
43Assert.All(member.GetAttributes(), attr => AssertEx.NotEqual("System.Runtime.CompilerServices.RequiredMemberAttribute", attr.AttributeClass.ToTestDisplayString()));
3949AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
3978AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
4008AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
4038AssertEx.Equal("AttrAttribute", attr.AttributeClass.ToTestDisplayString());
5844AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()",
5906AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()",
6192AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString());
6195AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!);
6238AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString());
6241AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!);
6460AssertEx.NotNull(c);
6464AssertEx.NotNull(d);
6571AssertEx.Empty(u_c.AllRequiredMembers);
6956AssertEx.Equal(new[] { "AnotherField", "Item1", "Item2", "Property" }, tupleType.AllRequiredMembers
Symbols\Source\CustomModifierCopyTests.cs (19)
1008AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1011AssertEx.Equal("(object a, object b) I.M((object c, object d) x)",
1018AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1021AssertEx.Equal("(object a, object b) C.M((object c, object d) x)",
1043AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1067AssertEx.Equal("(object, object) C.M((object c, object d) x)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1084AssertEx.Equal("(object a, object b) C.M((object c, object d) x)", classMethod4.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1138AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> I.P { get; set; }",
1140AssertEx.Equal("(object a, object b) I.P", interfaceProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1141AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
1144AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> C.I.P { get; set; }",
1146AssertEx.Equal("(object a, object b) C.P", classProperty1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1284AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)> " +
1287AssertEx.Equal("(object a, object b) Base.M((object c, object d) x)",
1307AssertEx.Equal("(object a, object b) C.M((object c, object d) y)", classMethod1.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1335AssertEx.Equal("(object, object) C.M((object c, object d) y)", classMethod2.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1336AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
1357AssertEx.Equal("(object a, object b) C.M((object, object) y)", classMethod3.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
1358AssertEx.Equal("System.ValueTuple<System.Object modopt(System.Runtime.CompilerServices.IsLong), System.Object modopt(System.Runtime.CompilerServices.IsLong)>",
Symbols\Source\FileModifierTests.cs (20)
221AssertEx.Equal("<>FE3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855__C", symbol.MetadataName);
271AssertEx.Equal("<file2>F66382B88D8E28FDD21CEADA0DE847F8B00DA1324042DD28F8FFC58C454BD6188__C", symbol.MetadataName);
746AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", c.MetadataName);
753AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", classC.MetadataName);
779AssertEx.Equal(expectedMetadataName, c.MetadataName);
785AssertEx.Equal(expectedMetadataName, expectedSymbol.MetadataName);
810AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", c.MetadataName);
816AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", expectedSymbol.MetadataName);
892AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName);
939AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", member.MetadataName);
974AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C`1", classC.MetadataName);
1004AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName);
1154AssertEx.Equal("<My_File>FA818559F9E8E4AF40425A1819866C71357DE9017B4B7EFE1D34D9F48C0539B6E__C", c.MetadataName);
1214AssertEx.Equal(firstMetadataName, expectedSymbol.MetadataName);
1222AssertEx.Equal(secondMetadataName, expectedSymbol.MetadataName);
4238AssertEx.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", sourceMember.MetadataName);
4415AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4424AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4433AssertEx.Equal(expectedChecksum, identifier.FilePathChecksumOpt);
4482AssertEx.Equal(
Symbols\Source\NullablePublicAPITests.cs (15)
507AssertEx.Equal(expectedAnnotations, actualAnnotations);
966AssertEx.Equal(expectedAnnotations, actualAnnotations);
1024AssertEx.Equal(expectedAnnotations, actualAnnotations);
1066AssertEx.Equal(expectedNullabilities, members.Select(nullabilityFunc));
4789AssertEx.Equal(expectedAnnotations, actualAnnotations);
4936AssertEx.Equal("void M()", model.GetDeclaredSymbol(localFunction).ToTestDisplayString());
4968AssertEx.Equal("(System.Object, System.Int32 a)", operation.Type.ToTestDisplayString());
5011AssertEx.Equal("(System.String a, System.String b)", model.GetTypeInfo(tupleLiteral).Type.ToTestDisplayString(includeNonNullable: false));
5050AssertEx.Equal("C..ctor(System.Int32 i)", model.GetSymbolInfo(constructor).CandidateSymbols[0].ToTestDisplayString());
5053AssertEx.Equal("_ = s", assignmentsInLambda[0].ToString());
5054AssertEx.Equal("_ = s", assignmentsInLambda[2].ToString());
5055AssertEx.Equal("System.String?", model.GetTypeInfo(assignmentsInLambda[0].Right).Type.ToTestDisplayString(includeNonNullable: true));
5056AssertEx.Equal("System.String!", model.GetTypeInfo(assignmentsInLambda[2].Right).Type.ToTestDisplayString(includeNonNullable: true));
5068AssertEx.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true));
5072AssertEx.Equal("System.String!", model.GetTypeInfo(switchExpressionInput).Type.ToTestDisplayString(includeNonNullable: true));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
Diagnostics\LineSpanDirectiveTests.cs (17)
50AssertEx.Equal(expectedLineMappings, actualLineMappings);
62AssertEx.Equal(expectedTextSpans, actualTextSpans);
96AssertEx.Equal(expectedLineMappings, actualLineMappings);
111AssertEx.Equal(expectedTextSpans, actualTextSpans);
153AssertEx.Equal(expectedLineMappings, actualLineMappings);
192AssertEx.Equal(expectedLineMappings, actualLineMappings);
204AssertEx.Equal(expectedTextSpans, actualTextSpans);
243AssertEx.Equal(expectedLineMappings, actualLineMappings);
262AssertEx.Equal(expectedVisibility, actualVisibility);
274AssertEx.Equal(expectedTextSpans, actualTextSpans);
311AssertEx.Equal(expectedLineMappings, actualLineMappings);
320AssertEx.Equal(expectedTextSpans, actualTextSpans);
363AssertEx.Equal(expectedLineMappings, actualLineMappings);
375AssertEx.Equal(expectedTextSpans, actualTextSpans);
424AssertEx.Equal(expectedLineMappings, actualLineMappings);
437AssertEx.Equal(expectedTextSpans, actualTextSpans);
580AssertEx.Equal(expectedLineMappings, actualLineMappings);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (11)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (25)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (33)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
Microsoft.CodeAnalysis.Features.Test.Utilities (14)
EditAndContinue\EditAndContinueTestVerifier.cs (11)
214AssertEx.Equal(
223AssertEx.Equal(
246AssertEx.Empty(duplicateNonPartial, "Duplicate non-partial symbols");
265AssertEx.SetEqual(expected, actual, message: message, itemSeparator: ",\r\n", itemInspector: d => d.ToString(TryGetResource));
294AssertEx.Equal(
345AssertEx.AreEqual(
362AssertEx.AreEqual(
371AssertEx.AreEqual(
415AssertEx.Equal(
456AssertEx.Equal(
525=> AssertEx.Equal(expected, actual.Edits.Select(e => e.GetDebuggerDisplay()), itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
Microsoft.CodeAnalysis.Features.UnitTests (169)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (106)
142AssertEx.Equal(
157AssertEx.Equal([$"P.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFileB.Path)}"], InspectDiagnostics(emitDiagnostics));
223AssertEx.Equal(
291AssertEx.Equal(
481AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, moduleFile.Path, expectedErrorMessage)}"], InspectDiagnostics(emitDiagnostics));
501AssertEx.Equal(
510AssertEx.Equal(
560AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
564AssertEx.Equal(
607AssertEx.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
620AssertEx.Equal(
678AssertEx.Equal(
686AssertEx.Equal(
842AssertEx.Empty(diagnostics1);
848AssertEx.Equal([$"{document2.FilePath}: (5,0)-(5,32): Error ENC2016: {string.Format(FeaturesResources.EditAndContinueDisallowedByProject, document2.Project.Name, "*message*")}"], InspectDiagnostics(emitDiagnostics));
852AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
854AssertEx.Equal(
940AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
959AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
963AssertEx.Equal(
972AssertEx.Equal(
1011AssertEx.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)],
1018AssertEx.Empty(diagnostics);
1025AssertEx.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)],
1043AssertEx.Empty(diagnostics);
1078AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
1133AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
1150AssertEx.Equal(
1171AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1175AssertEx.Equal(
1184AssertEx.Equal(
1223AssertEx.Equal(
1266AssertEx.Equal(
1280AssertEx.Equal(
1313AssertEx.Empty(diagnostics1);
1323AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1325AssertEx.Equal(
1353AssertEx.Empty(diagnostics1);
1364AssertEx.Equal([$"{document2.FilePath}: (0,30)-(0,32): Error CS0266: {string.Format(CSharpResources.ERR_NoImplicitConvCast, "long", "int")}"], InspectDiagnostics(emitDiagnostics));
1368AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
1370AssertEx.Equal(
1524AssertEx.Equal([generatedDocumentId],
1530AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1554AssertEx.Equal(documentKind == DocumentKind.Source ? new[] { documentId } : [],
1579AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId],
1584AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1606AssertEx.Equal([generatedDocumentId],
1611AssertEx.Equal([generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id));
1653AssertEx.AreEqual("generated: text", generatedText);
1677AssertEx.Empty(await EditSession.GetChangedDocumentsAsync(oldProject, project, CancellationToken.None).ToImmutableArrayAsync(CancellationToken.None));
1682AssertEx.Empty(changedOrAddedDocuments);
1749AssertEx.Equal(
1807AssertEx.Empty(diagnostics);
1815AssertEx.Empty(diagnostics);
1835AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)],
1844AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)],
1860AssertEx.Empty(diagnostics);
1869AssertEx.Equal(
1957AssertEx.Empty(diagnostics);
1961AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics));
1989AssertEx.Empty(diagnostics1);
1993AssertEx.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics));
2010AssertEx.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics));
2014AssertEx.Equal(
2061AssertEx.Equal(requiredChecksum, CreateText(source1).GetChecksum());
2160AssertEx.Empty(diagnostics);
2165AssertEx.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics));
2238AssertEx.Empty(diagnostics);
2249AssertEx.Empty(emitDiagnostics);
2330AssertEx.Empty(diagnostics1);
2355AssertEx.Equal(updates.Updates, pendingUpdate.Deltas);
2413AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate());
2417AssertEx.Equal(
2425AssertEx.Equal(
2597AssertEx.SetEqual([0x02000002, 0x02000003, 0x02000004, 0x02000005], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
2654AssertEx.Equal([0x02000002, 0x02000003], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
2703AssertEx.Equal(
2767AssertEx.Equal(["3 -> 4"], lineUpdate.LineUpdates.Select(edit => $"{edit.OldLine} -> {edit.NewLine}"));
2982AssertEx.Empty(diagnostics);
2986AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics));
3121AssertEx.Equal(readers, baselineReaders);
3131AssertEx.Equal(readers, baselineReaders);
3170AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-pdb", new FileNotFoundException().Message)}"], InspectDiagnostics(emitDiagnostics));
3203AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-assembly", "*message*")}"], InspectDiagnostics(emitDiagnostics));
3208AssertEx.Equal(
3272AssertEx.Equal(
3281AssertEx.Equal(trackedActiveSpans1, currentSpans);
3293AssertEx.Equal([adjustedActiveLineSpan1, adjustedActiveLineSpan2], currentSpans.Select(s => s.LineSpan));
3345AssertEx.Equal(
3357AssertEx.Equal([activeLineSpan11, activeLineSpan12], currentSpans.Select(s => s.LineSpan));
3463AssertEx.Equal(
3469AssertEx.Equal(
3491AssertEx.Equal(
3567AssertEx.Equal(
3581AssertEx.Equal([$"(9,18)-(9,22)"], baseSpans.Single().Select(s => s.LineSpan.ToString()));
3588AssertEx.Equal([$"(10,12)-(10,16)"], baseSpans.Single().Select(s => s.LineSpan.ToString()));
3667AssertEx.Equal(
3737AssertEx.Equal(["ENC0063: " + string.Format(FeaturesResources.Updating_a_0_around_an_active_statement_requires_restarting_the_application, CSharpFeaturesResources.catch_clause)],
3829AssertEx.Equal(
3850AssertEx.Equal(
3870AssertEx.Equal(
3886AssertEx.Equal(
3972AssertEx.Equal(
3985AssertEx.Equal(
4004AssertEx.Equal(
4081AssertEx.Equal(
EditAndContinue\EmitSolutionUpdateResultsTests.cs (9)
143AssertEx.Equal(
196AssertEx.SetEqual([b], projectsToRestart.Select(p => p.Id));
199AssertEx.SetEqual([d], projectsToRebuild.Select(p => p.Id));
246AssertEx.SetEqual([a, b], projectsToRestart.Select(p => p.Id));
249AssertEx.SetEqual([c, d], projectsToRebuild.Select(p => p.Id));
272AssertEx.SetEqual([b], projectsToRestart.Select(p => p.Id));
275AssertEx.SetEqual([d], projectsToRebuild.Select(p => p.Id));
302AssertEx.SetEqual([r1, r2, r3, r4], projectsToRestart.Select(p => p.Id));
303AssertEx.SetEqual([p1, p2, p3, p4], projectsToRebuild.Select(p => p.Id));
EditAndContinue\RemoteEditAndContinueServiceTests.cs (11)
132AssertEx.Equal(new[] { documentId }, captureMatchingDocuments);
180AssertEx.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result);
217AssertEx.Equal($"[{projectId}] Error ENC1001: test.cs(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error")}", Inspect(results.SyntaxError!));
223AssertEx.Equal(new byte[] { 1, 2 }, delta.ILDelta);
224AssertEx.Equal(new byte[] { 3, 4 }, delta.MetadataDelta);
225AssertEx.Equal(new byte[] { 5, 6 }, delta.PdbDelta);
226AssertEx.Equal(new[] { 0x06000001 }, delta.UpdatedMethods);
227AssertEx.Equal(new[] { 0x02000001 }, delta.UpdatedTypes);
231AssertEx.Equal(new[] { new SourceLineUpdate(1, 2) }, lineEdit.LineUpdates);
256AssertEx.Equal(new[] { documentId, inProcOnlyDocumentId }, documentIds);
268AssertEx.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (118)
SemanticTokens\SemanticTokensRangeTests.cs (7)
71AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results.Data));
166AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
214AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
268AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
349AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
456AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
577AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results));
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
Microsoft.CodeAnalysis.Test.Utilities (107)
Compilation\CompilationDifference.cs (6)
66AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
77AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
100AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
138AssertEx.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
144AssertEx.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n");
149AssertEx.Equal(
Compilation\CompilationExtensions.cs (5)
177AssertEx.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
185AssertEx.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
418AssertEx.Equal(positions, getPositionsFromEnd(separatedList));
427AssertEx.Equal(positions, getPositionsFromStart(new SeparatedWithManyChildren(green, null, separatedList.Position)));
430AssertEx.Equal(positions, getPositionsFromEnd(new SeparatedWithManyChildren(green, null, separatedList.Position)));
Compilation\TestOperationVisitor.cs (65)
122AssertEx.Equal(operation.Operations, operation.ChildOperations);
128AssertEx.Equal(operation.Declarations, operation.ChildOperations);
143AssertEx.Equal(children, operation.ChildOperations);
157AssertEx.Equal(children, operation.ChildOperations);
165AssertEx.Equal(new[] { operation.Value }.Concat(operation.Cases), operation.ChildOperations);
172AssertEx.Equal(operation.Clauses.Concat(operation.Body), operation.ChildOperations);
217AssertEx.Equal(new[] { operation.Value }, operation.ChildOperations);
232AssertEx.Equal(new[] { operation.Value }, operation.ChildOperations);
285AssertEx.Equal(children, operation.ChildOperations);
305AssertEx.Equal(children, operation.ChildOperations);
326AssertEx.Equal(children, operation.ChildOperations);
335AssertEx.Equal(children, operation.ChildOperations);
422AssertEx.Equal(new[] { operation.LockedValue, operation.Body }, operation.ChildOperations);
436AssertEx.Equal(children, operation.ChildOperations);
457AssertEx.Equal(children, operation.ChildOperations);
464AssertEx.Equal(new[] { operation.Resources, operation.Body }, operation.ChildOperations);
484AssertEx.Equal(new[] { operation.Variables, operation.Body }, operation.ChildOperations);
490AssertEx.Equal(operation.Elements, operation.ChildOperations);
502AssertEx.Equal(new[] { operation.Group, operation.Aggregation }, operation.ChildOperations);
514AssertEx.Equal(new[] { operation.Value, operation.Body }, operation.ChildOperations);
551AssertEx.Equal(children, operation.ChildOperations);
573AssertEx.Equal(children, operation.ChildOperations);
601AssertEx.Equal(new[] { operation.ArrayReference }.Concat(operation.Indices), operation.ChildOperations);
607AssertEx.Equal(new[] { operation.Instance, operation.Argument }, operation.ChildOperations);
616AssertEx.Equal(new[] { operation.Instance, operation.Argument }, operation.ChildOperations);
676AssertEx.Equal(children, operation.ChildOperations);
723AssertEx.Equal(new[] { operation.EventReference, operation.HandlerValue }, operation.ChildOperations);
730AssertEx.Equal(new[] { operation.Operation, operation.WhenNotNull }, operation.ChildOperations);
790AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
821AssertEx.Fail($"Unexpected parameter count for built in method: {method.ToDisplayString()}");
835AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
893AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations);
897AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);
904AssertEx.Equal(new[] { operation.Value, operation.WhenNull }, operation.ChildOperations);
911AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1042AssertEx.Equal(children, operation.ChildOperations);
1048AssertEx.Equal(operation.Initializers, operation.ChildOperations);
1069AssertEx.Equal(children, operation.ChildOperations);
1075AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1081AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1087AssertEx.Equal(operation.Initializers, operation.ChildOperations);
1093AssertEx.Equal(new[] { operation.InitializedMember, operation.Initializer }, operation.ChildOperations);
1146AssertEx.Equal(children, operation.ChildOperations);
1153AssertEx.Equal(operation.ElementValues, operation.ChildOperations);
1158AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1278AssertEx.Equal(operation.Elements, operation.ChildOperations);
1284AssertEx.Equal(operation.Parts, operation.ChildOperations);
1315AssertEx.Equal(children, operation.ChildOperations);
1322AssertEx.Equal(children, operation.ChildOperations);
1332AssertEx.Equal(new[] { operation.Left, operation.Right }, operation.ChildOperations);
1474AssertEx.Equal(children, operation.ChildOperations);
1518AssertEx.Equal(children, operation.ChildOperations);
1525AssertEx.Equal(children, operation.ChildOperations);
1554AssertEx.Equal(children, operation.ChildOperations);
1568AssertEx.Equal(children, operation.ChildOperations);
1574AssertEx.Equal(new[] { operation.Value, operation.Pattern }, operation.ChildOperations);
1585AssertEx.Equal(new[] { operation.Pattern, operation.Guard }, operation.ChildOperations);
1620AssertEx.Equal(new IOperation[] { operation.EventReference }.Concat(operation.Arguments), operation.ChildOperations);
1627AssertEx.Equal(new[] { operation.MinimumValue, operation.MaximumValue }, operation.ChildOperations);
1653AssertEx.Equal(builder, operation.ChildOperations);
1666AssertEx.Equal(new[] { operation.BlockBody, operation.ExpressionBody }, operation.ChildOperations);
1785AssertEx.Equal(operation.Clauses, operation.ChildOperations);
1792AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations);
1798AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.DeclarationGroup), operation.ChildOperations);
1821AssertEx.Equal(children, operation.ChildOperations);
CompilationVerifier.cs (8)
197AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, output, escapeQuotes: false);
389AssertEx.AssertEqualToleratingWhitespaceDifferences(verification.ILVerifyMessage, actualMessage);
549actual.Add(AssertEx.NormalizeWhitespace(VisualizeIL(qualifiedName)));
550expected.Add(AssertEx.NormalizeWhitespace(qualifiedMethodNamesAndExpectedIL[i++]));
557builder.AppendLine(AssertEx.GetAssertMessage(expected[i], actual[i], prefix: names[i], escapeQuotes: true));
581AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine);
599AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, message: null, escapeQuotes, callerPath, callerLine);
750AssertEx.SetEqual(expectedFields, members);
Microsoft.CodeAnalysis.UnitTests (197)
Collections\ArrayBuilderTests.cs (26)
22AssertEx.Equal([6, 5, 1, 2, 3, 2, 4, 5, 1, 7], builder);
25AssertEx.Equal([5, 1, 2, 3, 2, 4, 5, 1, 7], builder);
28AssertEx.Equal([5, 1, 2, 3, 2, 4, 5, 1], builder);
31AssertEx.Equal([5, 3, 4, 5], builder);
34AssertEx.Equal([], builder);
37AssertEx.Equal([], builder);
45AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
49AssertEx.Equal(new[] { 1 }, builder);
53AssertEx.Equal(new int[0], builder);
61AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
65AssertEx.Equal(new[] { 1 }, builder);
69AssertEx.Equal(new[] { 1, 2 }, builder);
73AssertEx.Equal(new[] { 1, 2, 3 }, builder);
77AssertEx.Equal(new[] { 1, 2 }, builder);
81AssertEx.Equal(new int[0], builder);
88AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => n));
91AssertEx.Equal(new[] { 1 }, builder.SelectDistinct(n => n));
94AssertEx.Equal(new int[0], builder.SelectDistinct(n => n));
97AssertEx.Equal(new[] { 10 }, builder.SelectDistinct(n => 10));
100AssertEx.Equal(new byte[] { 1, 2, 3, 4, 5 }, builder.SelectDistinct(n => (byte)n));
109AssertEx.Equal(new int[0], builder.ToArray());
112AssertEx.Equal(new[] { 1, 2, 3 }, builder.ToArray());
115AssertEx.Equal(new[] { 1, 2, 3 }, builder.ToArray());
118AssertEx.Equal(new[] { 1, 2, 3, 2 }, builder.ToArray());
121AssertEx.Equal(new[] { 1, 2, 3, 2, 2, 3 }, builder.ToArray());
124AssertEx.Equal(new[] { 1, 2, 3, 2, 2, 3, 3 }, builder.ToArray());
Collections\ImmutableArrayExtensionsTests.cs (8)
378AssertEx.Equal(new[] { 10 }, ImmutableArray.Create(1).SelectAsArray(i => 10 * i));
379AssertEx.Equal(new[] { 10, 20 }, ImmutableArray.Create(1, 2).SelectAsArray(i => 10 * i));
380AssertEx.Equal(new[] { 10, 20, 30 }, ImmutableArray.Create(1, 2, 3).SelectAsArray(i => 10 * i));
381AssertEx.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i));
382AssertEx.Equal(new[] { 10, 20, 30, 40, 50 }, ImmutableArray.Create(1, 2, 3, 4, 5).SelectAsArray(i => 10 * i));
391AssertEx.Equal(new[] { 2, 3, 4, 5, 6 }, array.SelectAsArray(item => true, item => item + 1));
392AssertEx.Equal(new[] { 3, 5 }, array.SelectAsArray(item => item % 2 == 0, item => item + 1));
499AssertEx.Equal(new[] { 3, 4, 5 }, a.WhereAsArray((i, j) => i > j, 2));
Collections\TopologicalSortTests.cs (3)
42AssertEx.Equal(new[] { 4, 5, 2, 3, 1, 0 }, sorted);
63AssertEx.Equal(new[] { "4", "5", "2", "3", "1", "0" }, sorted);
86AssertEx.Equal(new[] { 1, 4, 3, 5, 6, 7, 2 }, sorted);
CryptoBlobParserTests.cs (20)
34AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 });
38AssertEx.Equal(expectedModulus, privKey.Modulus);
42AssertEx.Equal(expectedP, privKey.P);
46AssertEx.Equal(expectedQ, privKey.Q);
50AssertEx.Equal(expectedDP, privKey.DP);
54AssertEx.Equal(expectedDQ, privKey.DQ);
58AssertEx.Equal(expectedInverseQ, privKey.InverseQ);
62AssertEx.Equal(expectedD, privKey.D);
77AssertEx.Equal(privKey.Exponent, new byte[] { 0x01, 0x00, 0x01 });
81AssertEx.Equal(expectedModulus, privKey.Modulus);
85AssertEx.Equal(expectedP, privKey.P);
89AssertEx.Equal(expectedQ, privKey.Q);
93AssertEx.Equal(expectedDP, privKey.DP);
97AssertEx.Equal(expectedDQ, privKey.DQ);
101AssertEx.Equal(expectedInverseQ, privKey.InverseQ);
105AssertEx.Equal(expectedD, privKey.D);
118AssertEx.Equal(TestResources.General.snPublicKey, pubKey);
129AssertEx.Equal(TestResources.General.snPublicKey2, pubKey);
140AssertEx.Equal(key, pubKey);
158AssertEx.Equal(snBlob, pubKey);
EmbeddedTextTests.cs (33)
84AssertEx.Equal(SourceText.CalculateChecksum(new byte[0], 0, 0, SourceHashAlgorithm.Sha1), text.Checksum);
85AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
96AssertEx.Equal(checksum, text.Checksum);
97AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
109AssertEx.Equal(checksum, text.Checksum);
110AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob);
122AssertEx.Equal(checksum, text.Checksum);
123AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
124AssertEx.Equal(bytes, text.Blob.Skip(4));
136AssertEx.Equal(checksum, text.Checksum);
138AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
139AssertEx.Equal(bytes, text.Blob.Skip(4));
150AssertEx.Equal(source.GetChecksum(), text.Checksum);
151AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
152AssertEx.Equal(Encoding.UTF8.GetPreamble().Concat(Encoding.UTF8.GetBytes(SmallSource)), text.Blob.Skip(4));
164AssertEx.Equal(checksum, text.Checksum);
165AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
166AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
178AssertEx.Equal(checksum, text.Checksum);
180AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
181AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
192AssertEx.Equal(source.GetChecksum(), text.Checksum);
193AssertEx.Equal(BitConverter.GetBytes(Encoding.Unicode.GetPreamble().Length + LargeSource.Length * sizeof(char)), text.Blob.Take(4));
194AssertEx.Equal(Encoding.Unicode.GetPreamble().Concat(Encoding.Unicode.GetBytes(LargeSource)), Decompress(text.Blob.Skip(4)));
208AssertEx.Equal(expectedEmbedded.Checksum, actualEmbedded.Checksum);
209AssertEx.Equal(expectedEmbedded.Blob, actualEmbedded.Blob);
223AssertEx.Equal(expectedEmbedded.Checksum, actualEmbedded.Checksum);
224AssertEx.Equal(expectedEmbedded.Blob, actualEmbedded.Blob);
242AssertEx.Equal(SourceText.CalculateChecksum(bytes, 0, bytes.Length, SourceHashAlgorithm.Sha1), source.GetChecksum());
243AssertEx.Equal(source.GetChecksum(), text.Checksum);
244AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
245AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
257AssertEx.Equal(source.GetChecksum(), text.Checksum);
Emit\CustomDebugInfoTests.cs (25)
90AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
122AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
134AssertEx.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.EditAndContinueLocalSlotMap));
146AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi, CustomDebugInfoKind.DynamicLocals));
209AssertEx.Equal(new byte[] { 0xFF, 0xC0, 0x00, 0x4E, 0x20, 0x81, 0xC0, 0x00, 0x4E, 0x1F, 0x0A, 0x9A, 0x00, 0x0A }, bytes);
213AssertEx.Equal(slots, deserialized);
238AssertEx.Equal(new byte[] { 0x7C, 0x80, 0xC8, 0x03, 0x64, 0x80, 0xD2, 0x00, 0x80, 0xDC, 0x03, 0x80, 0x96, 0x02, 0x14, 0x01 }, bytes);
242AssertEx.Equal(closures, deserialized.Closures);
243AssertEx.Equal(lambdas, deserialized.Lambdas);
261AssertEx.Equal(new byte[] { 0x00, 0x01, 0x00, 0x15, 0x01 }, bytes);
265AssertEx.Equal(closures, deserialized.Closures);
266AssertEx.Equal(lambdas, deserialized.Lambdas);
285AssertEx.Equal(new byte[] { 0x0B, 0x01, 0x00 }, bytes);
289AssertEx.Equal(closures, deserialized.Closures);
290AssertEx.Equal(lambdas, deserialized.Lambdas);
315AssertEx.Equal(new byte[] { 0x06, 0x00, 0x02, 0x10, 0x04, 0x10, 0x00, 0x10, 0x06, 0x20, 0x08, 0x20, 0x0A, 0x30 }, bytes);
322AssertEx.Equal(new[]
371AssertEx.Equal(new byte[]
452AssertEx.Equal(new byte[]
486AssertEx.Equal(new byte[]
518AssertEx.Equal(new byte[]
547AssertEx.Equal(new byte[]
589AssertEx.Equal(new byte[]
662AssertEx.Equal(new byte[]
782AssertEx.Equal(new byte[] { 0x01, 0x00, 0x00, 0x06 }, records[0].Data);
MetadataReferences\AssemblyIdentityTests.cs (19)
114AssertEx.Equal(id.PublicKey, PublicKey1);
161AssertEx.Equal(PublicKey1, id.PublicKey);
162AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
173AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
183AssertEx.Equal(PublicKey1, id.PublicKey);
184AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
194AssertEx.Equal(PublicKey1, id.PublicKey);
195AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
265AssertEx.Equal(PublicKey1, id.PublicKey);
266AssertEx.Equal(PublicKeyToken1, id.PublicKeyToken);
314AssertEx.Equal(new byte[0], an.GetPublicKeyToken());
315AssertEx.Equal(null, an.GetPublicKey());
330AssertEx.Equal(PublicKeyToken1, an.GetPublicKeyToken());
331AssertEx.Equal(PublicKey1, an.GetPublicKey());
346AssertEx.Equal(new byte[0], an.GetPublicKeyToken());
347AssertEx.Equal(null, an.GetPublicKey());
350AssertEx.Equal(null, an.CodeBase);
371AssertEx.Equal(PublicKeyToken1, anPkt);
372AssertEx.Equal(PublicKeyToken1, aiPkt);
MetadataReferences\MetadataReferenceTests.cs (9)
230AssertEx.Equal(ImmutableArray.Create("a", "b"), r.Properties.Aliases);
302AssertEx.Equal(new[] { "a" }, r.Properties.Aliases);
314AssertEx.Equal(new[] { "b", "c" }, r3.Properties.Aliases);
322AssertEx.Equal(r.Properties.Aliases, r4.Properties.Aliases);
332AssertEx.Equal(new[] { "x" }, r6.Properties.Aliases);
349AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
361AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases);
380AssertEx.Equal(new[] { "a", "b" }, r1.Properties.Aliases);
392AssertEx.Equal(new[] { "x" }, r3.Properties.Aliases);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (36)
CommandLineTests.vb (31)
761AssertEx.Equal({"System.dll"}, cmd.Arguments.MetadataReferences.Select(Function(r) r.Reference))
762AssertEx.Equal(
799AssertEx.Equal({"System", "System.Xml", "System.Linq"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
803AssertEx.Equal({"System", "Microsoft.VisualBasic", "System.IO"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
942AssertEx.Equal({"System", "System.Collections.Generic", "System.Linq", "System.Text"},
2058AssertEx.SetEqual({"default", "9", "10", "11", "12", "14", "15", "15.3", "15.5", "16", "16.9", "latest"},
2083AssertEx.SetEqual(versions, errorCodes)
2324AssertEx.Equal({"a", "b", "c"},
2331AssertEx.Equal({" ", " b "},
2366AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2370AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2439AssertEx.Equal({folder.Path + "\c.cpp", folder.Path + "\b\B_e.vb"}, resolvedSourceFiles)
2473AssertEx.Equal({"a", "b", "c"},
2480AssertEx.Equal({" ", " b "},
3197AssertEx.Equal(File.ReadAllBytes(sl.Path), blob)
3226AssertEx.Equal(File.ReadAllBytes(sl.Path), blob)
3240AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles)
3241AssertEx.Equal(
3247AssertEx.Equal(
3253AssertEx.Equal(
3259AssertEx.Equal(
3265AssertEx.Equal(
3271AssertEx.Equal(
3277AssertEx.Equal(
3283AssertEx.Equal(
3559AssertEx.Equal(ImmutableArray.Create(Of String)(), args.KeyFileSearchPaths)
3571AssertEx.Equal(ImmutableArray.Create(sdkPath), parser.ReferencePaths)
3590AssertEx.Equal(ImmutableArray(Of String).Empty, parser.ReferencePaths)
3599AssertEx.Equal(ImmutableArray.Create(sdkDir.Path), parser.ReferencePaths)
5755AssertEx.Equal(
5759AssertEx.Equal(expectedOptions, actualOrdered.Select(Function(entry) entry.Value))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (137)
Attributes\AssemblyAttributes.vb (13)
1933AssertEx.SetEqual({
2046Assert.True(expectedStr.Equals(actualStr), AssertEx.GetAssertMessage(expectedStr, actualStr))
2275AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2276AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2277AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
2278AssertEx.Equal("A1(1)", attrs(3).ToString())
2346AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2347AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2348AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
2349AssertEx.Equal("A1(GetType(C1))", attrs(3).ToString())
2381AssertEx.Equal("System.Runtime.CompilerServices.CompilationRelaxationsAttribute(8)", attrs(0).ToString())
2382AssertEx.Equal("System.Runtime.CompilerServices.RuntimeCompatibilityAttribute(WrapNonExceptionThrows:=True)", attrs(1).ToString())
2383AssertEx.Equal("System.Diagnostics.DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)", attrs(2).ToString())
Attributes\AttributeTests_Synthesized.vb (29)
72AssertEx.SetEqual(expectedAttrs, actualAttrs)
110AssertEx.SetEqual(expected, GetAttributeNames(attrs))
116AssertEx.SetEqual(expected, GetAttributeNames(attrs))
122AssertEx.SetEqual(expected.Concat("AccessedThroughPropertyAttribute"), GetAttributeNames(attrs))
167AssertEx.SetEqual(expected, GetAttributeNames(attrs))
170AssertEx.SetEqual(expected, GetAttributeNames(attrs))
173AssertEx.SetEqual(New String() {}, GetAttributeNames(attrs))
176AssertEx.SetEqual(New String() {}, GetAttributeNames(attrs))
179AssertEx.SetEqual(expected, GetAttributeNames(attrs))
182AssertEx.SetEqual(expected, GetAttributeNames(attrs))
185AssertEx.SetEqual(expected, GetAttributeNames(attrs))
188AssertEx.SetEqual(expected, GetAttributeNames(attrs))
283AssertEx.SetEqual(expectedNames, GetAttributeNames(baseWrapper.GetAttributes()))
339AssertEx.SetEqual(expectedNames, GetAttributeNames(baseWrapper.GetAttributes()))
372AssertEx.SetEqual({"CompilerGeneratedAttribute"}, actual)
392AssertEx.SetEqual(expected, actual)
423AssertEx.SetEqual({"CompilerGeneratedAttribute", "DebuggerDisplayAttribute"}, actual)
437AssertEx.SetEqual(expected, actual)
531AssertEx.SetEqual({"DebuggerDisplayAttribute", "CompilerGeneratedAttribute"}, GetAttributeNames(anon.GetAttributes()))
562AssertEx.SetEqual(expected, actual)
1463AssertEx.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1490AssertEx.SetEqual({"AsyncStateMachineAttribute", "DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1520AssertEx.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1550AssertEx.SetEqual({"AsyncStateMachineAttribute", "DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1578AssertEx.SetEqual({"AsyncStateMachineAttribute"}, GetAttributeNames(asyncMethodAttributes))
1631AssertEx.SetEqual({"DebuggerStepThroughAttribute"}, GetAttributeNames(asyncMethodAttributes))
1661AssertEx.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
1695AssertEx.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
1725AssertEx.SetEqual({"IteratorStateMachineAttribute"}, GetAttributeNames(iteratorMethodAttributes))
CodeGen\CodeGenTuples.vb (6)
11150AssertEx.SetEqual(xSymbol.GetMembers().OfType(Of FieldSymbol)().Select(Function(f) f.Name),
15281AssertEx.Equal(baseLine, symbols.Select(Function(s) s.ToTestDisplayString()))
22687AssertEx.SetEqual({"I1(Of System.String)"}, imc1.InterfacesNoUseSiteDiagnostics().Select(Function(i) i.ToTestDisplayString()))
22688AssertEx.SetEqual({"I1(Of System.String)", "I2(Of System.String, (a As System.Object, b As System.Object))"}, imc1.AllInterfacesNoUseSiteDiagnostics.Select(Function(i) i.ToTestDisplayString()))
22701AssertEx.SetEqual({"I1(Of System.String)"}, imc2.InterfacesNoUseSiteDiagnostics().Select(Function(i) i.ToTestDisplayString()))
22702AssertEx.SetEqual({"I1(Of System.String)", "I2(Of System.String, (a As System.Object, b As System.Object))"}, imc2.AllInterfacesNoUseSiteDiagnostics.Select(Function(i) i.ToTestDisplayString()))
PDB\PortablePdbTests.vb (6)
86AssertEx.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
100AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
139AssertEx.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
154AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
211AssertEx.Equal(sourceLinkBlob, actualBlob)
248AssertEx.Equal(sourceLinkBlob, actualBlob)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (53)
Compilation\CompilationAPITests.vb (15)
1708AssertEx.Equal(Array.Empty(Of CodeAnalysis.NullableAnnotation)(), GetAnonymousTypeNullableAnnotations(type))
1720AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1726AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, GetAnonymousTypeNullableAnnotations(type))
1749AssertEx.Equal(display, result)
1765AssertEx.Equal(display, result)
1774AssertEx.Equal("Public Shared Operator &(left As String, right As String) As String", result)
1784AssertEx.Equal("Public Shared Operator Like(left As String, right As String) As Boolean", result)
1795AssertEx.Equal(display, result)
1811AssertEx.Equal("Public Shared Operator +(left As Integer, right As Integer) As Integer", result)
1854AssertEx.Equal(display, result)
1898AssertEx.Equal("Public Shared Operator +(value As Integer) As Integer", result)
1949AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1956AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1981AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
1988AssertEx.Equal({CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None}, type.TypeArgumentNullableAnnotations)
Semantics\FieldInitializerBindingTests.vb (22)
908AssertEx.Equal(_ZERO4, actual)
979AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
981AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
987AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
989AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
995AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
997AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
1003AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1005AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1011AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1013AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
1019AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1021AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1027AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1034AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1041AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1048AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1055AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1062AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1320AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1325AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1330AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (38)
CompilationAPITests.vb (11)
38AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
64AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
84AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
86AssertEx.Equal("N.C(Of T)", types(1).ToTestDisplayString())
108AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
136AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
137AssertEx.Equal("N.C(Of T)", types(1).ToTestDisplayString())
170AssertEx.Equal("N.C(Of T)", types(0).ToTestDisplayString())
172AssertEx.Equal("N.C(Of T)", types(1).ToTestDisplayString())
173AssertEx.Equal("N.C(Of T)", types(2).ToTestDisplayString())
215AssertEx.Equal(types.Select(Function(t) t.ToTestDisplayString()), {"C", "C", "C"})
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (14)
Parser\VisualBasicParseOptionsTests.vb (8)
60AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable)
64AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "module")}, symbols.AsEnumerable)
68AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable)
72AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", "Goo"), New KeyValuePair(Of String, Object)("TARGET", 123)}, symbols.AsEnumerable)
75AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "exe")}, symbols.AsEnumerable)
78AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winexe")}, symbols.AsEnumerable)
113AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "appcontainerexe")}, symbols.AsEnumerable)
116AssertEx.SetEqual({New KeyValuePair(Of String, Object)("VBC_VER", PredefinedPreprocessorSymbols.CurrentVersionNumber), New KeyValuePair(Of String, Object)("TARGET", "winmdobj")}, symbols.AsEnumerable)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (61)
Formatter\FormatterTests.cs (3)
59AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 4, IndentationSize = 4, NewLine = \r\n }", formattedText.ToString());
100AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = True, TabSize = 5, IndentationSize = 6, NewLine = \r }", formattedText.ToString());
105AssertEx.Equal(@"Formatted with options: LineFormattingOptions { UseTabs = False, TabSize = 1, IndentationSize = 7, NewLine = \n }", formattedText.ToString());
SolutionTests\SolutionTests.cs (28)
231AssertEx.Equal([documentId], newSolution1.GetDocumentIdsWithFilePath(path));
1132AssertEx.AreEqual([projectReference], newProject.ProjectReferences);
1133AssertEx.AreEqual([metadataReference], newProject.MetadataReferences);
1134AssertEx.AreEqual([analyzerReference], newProject.AnalyzerReferences);
1137AssertEx.SetEqual([d1, d3], newProject.DocumentIds);
1158AssertEx.SetEqual([a1, a3], newProject.AdditionalDocumentIds);
1179AssertEx.SetEqual([c1, c3], newProject.AnalyzerConfigDocumentIds);
1859AssertEx.Equal([projectRef2], solution3.GetProject(projectId)!.ProjectReferences);
1860AssertEx.Equal([projectRef2, externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences);
1892AssertEx.Equal([projectRef2], solution2.GetProject(projectId)!.AllProjectReferences);
1896AssertEx.Equal([externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences);
1979AssertEx.Equal([metadataRef1, metadataRef2], solution3.GetProject(projectId)!.MetadataReferences);
2002AssertEx.Equal([metadataRef2], solution2.GetProject(projectId)!.MetadataReferences);
2049AssertEx.Equal([analyzerRef1, analyzerRef2], solution3.GetProject(projectId)!.AnalyzerReferences);
2075AssertEx.Equal([analyzerRef2], solution2.GetProject(projectId)!.AnalyzerReferences);
2117AssertEx.Equal([analyzerRef1, analyzerRef2], solution3.AnalyzerReferences);
2141AssertEx.Equal([analyzerRef2], solution2.AnalyzerReferences);
2228AssertEx.Equal(folders, document.Folders);
2258AssertEx.Equal(folders, document.Folders);
2286AssertEx.Equal(folders, document.Folders);
2315AssertEx.Equal(folders, document2.Folders);
2351AssertEx.Equal(folders, document2.Folders);
4278AssertEx.SetEqual(relatedIds1, ImmutableArray.Create(document1.Id, document2.Id));
4279AssertEx.SetEqual(relatedIds2, ImmutableArray.Create(document1.Id, document2.Id));
5137AssertEx.SetEqual(
5145AssertEx.SetEqual(
5153AssertEx.SetEqual(
5160AssertEx.SetEqual(
TestCompositionTests.cs (12)
31AssertEx.SetEqual([assembly1], composition2.Assemblies);
35AssertEx.SetEqual([assembly2], composition3.Assemblies);
48AssertEx.SetEqual([type1], composition2.Parts);
53AssertEx.SetEqual([type2], composition4.Parts);
67AssertEx.SetEqual([type1], composition2.ExcludedPartTypes);
74AssertEx.SetEqual([type2], composition4.ExcludedPartTypes);
92AssertEx.SetEqual([assembly1, assembly2], composition3.Assemblies);
93AssertEx.SetEqual([type1, type2], composition3.Parts);
94AssertEx.SetEqual([excluded1, excluded2], composition3.ExcludedPartTypes);
98AssertEx.SetEqual([assembly2], composition4.Assemblies);
99AssertEx.SetEqual([type2], composition4.Parts);
100AssertEx.SetEqual([excluded2], composition4.ExcludedPartTypes);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (7)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
Microsoft.VisualStudio.LanguageServices.UnitTests (21)
MoveToNamespace\VisualStudioMoveToNamespaceServiceTests.vb (5)
21AssertEx.Equal({namespaces(0)}, service.History)
24AssertEx.Equal({namespaces(1), namespaces(0)}, service.History)
27AssertEx.Equal({namespaces(2), namespaces(1), namespaces(0)}, service.History)
30AssertEx.Equal({namespaces(3), namespaces(2), namespaces(1)}, service.History)
33AssertEx.Equal({namespaces(2), namespaces(3), namespaces(1)}, service.History)
Roslyn.Test.PdbUtilities (17)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (10)
66=> AssertEx.Equal(expected, readers.GetStrings(actual), message: GetAssertMessage($"{entityKinds} don't match"), itemSeparator: ", ", itemInspector: s => $"\"{s}\"");
72AssertEx.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
78AssertEx.AreEqual(expected, MetadataReader.GetTableRowCount(table), message: GetAssertMessage($"{table} table size doesnt't match"));
84AssertEx.Equal(
92AssertEx.Equal(
100AssertEx.Equal(
108AssertEx.Equal(
116AssertEx.Equal(
136AssertEx.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\"");
146AssertEx.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n");
Roslyn.VisualStudio.Next.UnitTests (12)
SemanticSearch.BuildTask.UnitTests (3)
VBCSCompiler.UnitTests (5)