4353 references to AssertEx
InteractiveHost.UnitTests (43)
AbstractInteractiveHostTests.cs (2)
83AssertEx.AssertEqualToleratingWhitespaceDifferences("", errorOutput); 97AssertEx.Equal(expectedOutput, output);
InteractiveHostCoreInitTests.cs (7)
36AssertEx.AssertEqualToleratingWhitespaceDifferences("", error); 37AssertEx.AssertEqualToleratingWhitespaceDifferences($"(home, {dir}, 1)", output); 48AssertEx.AssertEqualToleratingWhitespaceDifferences(@$" 63AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output); 67AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output); 75AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.Path), output); 83AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(dllDir), output);
InteractiveHostDesktopInitTests.cs (8)
36AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(fxDir), output); 40AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(), output); 48AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.Path), output); 56AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(fxDir, dllDir), output); 74AssertEx.AssertEqualToleratingWhitespaceDifferences("", error); 75AssertEx.AssertEqualToleratingWhitespaceDifferences("", output); 81AssertEx.AssertEqualToleratingWhitespaceDifferences("", error); 82AssertEx.AssertEqualToleratingWhitespaceDifferences("", output);
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)
CopyRefAssemblyTests.cs (3)
76AssertEx.AssertEqualToleratingWhitespaceDifferences($$"""Copying reference assembly from "{{file.Path}}" to "{{dest}}".""", engine.Log); 98AssertEx.AssertEqualToleratingWhitespaceDifferences($$""" 129AssertEx.AssertEqualToleratingWhitespaceDifferences($$"""
CscTests.cs (4)
222AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 231AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 241AssertEx.Equal("""/features:"InterceptorsNamespaces=NS1.NS2;NS3.NS4;NS5.NS6;NS7.NS8" /out:test.exe test.cs""", csc.GenerateResponseFileContents()); 561AssertEx.Equal("/reportivts", csc.GenerateResponseFileContents());
DotNetSdkTests.cs (6)
107AssertEx.AssertEqualToleratingWhitespaceDifferences( 146AssertEx.AssertEqualToleratingWhitespaceDifferences( 184AssertEx.AssertEqualToleratingWhitespaceDifferences( 222AssertEx.AssertEqualToleratingWhitespaceDifferences( 264AssertEx.AssertEqualToleratingWhitespaceDifferences( 304AssertEx.AssertEqualToleratingWhitespaceDifferences(
MapSourceRootTests.cs (14)
55AssertEx.AssertEqualToleratingWhitespaceDifferences("", engine.Log); 104AssertEx.AssertEqualToleratingWhitespaceDifferences("", engine.Log); 142AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 181AssertEx.AssertEqualToleratingWhitespaceDifferences("", engine.Log); 219AssertEx.AssertEqualToleratingWhitespaceDifferences("", engine.Log); 267AssertEx.AssertEqualToleratingWhitespaceDifferences( 328AssertEx.AssertEqualToleratingWhitespaceDifferences( 343AssertEx.NotNull(task.MappedSourceRoots); 344AssertEx.Equal(new[] 377AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 406AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 440AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 448AssertEx.NotNull(task.MappedSourceRoots); 449AssertEx.Equal(new[]
TargetTests.cs (10)
266AssertEx.NotNull(itemType); 270AssertEx.NotNull(metaName); 274AssertEx.NotNull(customMeta); 308AssertEx.NotNull(itemType); 312AssertEx.NotNull(metaName); 316AssertEx.NotNull(customMeta); 348AssertEx.NotNull(itemType); 352AssertEx.NotNull(metaName); 383AssertEx.NotNull(itemType); 387AssertEx.NotNull(metaName);
TestUtilities\DotNetSdkTestBase.cs (1)
238AssertEx.Equal(expectedResults, evaluationResult);
VbcTests.cs (1)
528AssertEx.Equal("/optionstrict:custom /reportivts", vbc.GenerateResponseFileContents());
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (97)
CommandLineIVTTests.cs (4)
45AssertEx.AssertEqualToleratingWhitespaceDifferences($""" 122AssertEx.AssertEqualToleratingWhitespaceDifferences($""" 201AssertEx.AssertEqualToleratingWhitespaceDifferences($""" 286AssertEx.AssertEqualToleratingWhitespaceDifferences($"""
CommandLineTests.cs (93)
226AssertEx.Equal("Class1.cs(1,1): warning ID1000:", output.Trim()); 249AssertEx.Equal("", outWriter.ToString()); 460AssertEx.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference)); 461AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path)); 513AssertEx.Equal(new[] { "first.cs", "second.cs", "b.cs", "a.cs", "c.cs", "d.cs", "last.cs" }.Select(prependBasePath), resolvedSourceFiles); 514AssertEx.Equal(new[] { typeof(object).Assembly.Location, @"..\v4.0.30319\System.dll", @".\System.Data.dll" }, references); 515AssertEx.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray()); 524AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 536AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 550AssertEx.Equal(ImmutableArray.Create<string>(), parser.KeyFileSearchPaths); 566AssertEx.Equal(ImmutableArray<string>.Empty, parser.ReferencePaths); 608AssertEx.Equal(new[] { @"C:\temp\a.cs", @"C:\temp\b.cs", @"C:\temp\c.cs", @"C:\temp\a\x.cs", @"C:\temp\a\b\b.cs", @"C:\temp\a\c.cs" }, resolvedSourceFiles); 716AssertEx.Equal(new[] { folder.Path + @"\c.cpp", folder.Path + @"\B\B_c.cpx", folder.Path + @"\a\A_a.cs", folder.Path + @"\a\A_b.cs", }, resolvedSourceFiles); 1195AssertEx.Equal(new[] { "a", "b", "c" }, 1202AssertEx.Equal(new[] { " b " }, 1238AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs", "{DIR}\\d2\\e.cs" }, 1243AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs" }, 1273AssertEx.Equal(new[] { "a", "b", "c" }, 1280AssertEx.Equal(new[] { " b " }, 1733AssertEx.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" }, 1771AssertEx.SetEqual(versions, errorCodes); 2262AssertEx.Equal(File.ReadAllBytes(sl.Path), blob); 2291AssertEx.Equal(File.ReadAllBytes(sl.Path), blob); 2317AssertEx.Equal(slContent, actualData); 2332AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles); 2333AssertEx.Equal( 2339AssertEx.Equal( 2345AssertEx.Equal( 2351AssertEx.Equal( 2357AssertEx.Equal( 2363AssertEx.Equal( 3603AssertEx.Equal( 3630AssertEx.Equal( 3680AssertEx.Equal(""" 3703AssertEx.Equal(""" 4679AssertEx.Equal(new[] 5340AssertEx.Equal(new[] { "Goo.Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable()); 5344AssertEx.Equal(new[] { "Goo.Bar", "Baz", "System.Core", "System" }, parsedArgs.CompilationOptions.Usings.AsEnumerable()); 5348AssertEx.Equal(new[] { "Goo", "Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable()); 5450AssertEx.Equal( 5454AssertEx.Equal(expectedOptions, actualOrdered.Select(entry => entry.Value)); 6636AssertEx.Equal(new[] { "a.cs", "b.cs", @"c.cs e.cs", "hello", "world" }, args); 6649AssertEx.Equal(new[] { "a.cs", "b#.cs", "c#d.cs", "#f.cs", "#g.cs #h.cs" }, args); 6656AssertEx.Equal(new[] { @"a\b\c", @"d\\e\\f\\", @"\\\g\\\h\\\i", @"\\\\", @"\\\\\k\\\\\" }, args); 6663AssertEx.Equal(new[] { @"a\""a", @"b\\""b c\\\""c d\\\\""d", @"e\\\\\""e", @"f"" g""" }, args); 6670AssertEx.Equal(new[] { @"/o:""goo.cs""", @"/o:""abc def""\baz", @"""/o:baz bar""bing" }, args); 6681AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path)); 8466AssertEx.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[] 8845AssertEx.AssertEqualToleratingWhitespaceDifferences("", outWriter.ToString()); 8850AssertEx.Equal(new byte[] { 0x4D, 0x5A }, ReadBytes(libDll.Path, 2)); 8851AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3)); 8853AssertEx.Equal(new byte[] { 0x4D, 0x69 }, ReadBytes(libPdb.Path, 2)); 8854AssertEx.Equal(new[] { (byte)'P', (byte)'D', (byte)'B' }, ReadBytes(fsPdb, 3)); 8859AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order()); 8889AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 8910AssertEx.Equal(new[] { (byte)'B', (byte)'S', (byte)'J', (byte)'B' }, ReadBytes(libPdb.Path, 4)); 8916AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order()); 8952AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(libDll.Path, 3)); 8953AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3)); 8957AssertEx.Equal(new[] { "Lib.cs", "Lib.dll" }, Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p)).Order()); 10064AssertEx.Equal(expectedWarningsAll, compileAndRun(featureOpt: null)); 10065AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis")); 10066AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always")); 10067AssertEx.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never")); 10068AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored 10069AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored 10070AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored 10071AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored 10072AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored 11450AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11451AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments); 11454AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path)); 11455AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments); 11458AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path)); 11459AssertEx.Equal(new[] { "b", "c" }, args.ScriptArguments); 11462AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11463AssertEx.Equal(new[] { "--", "b", "c" }, args.ScriptArguments); 11466AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11467AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments); 11470AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11471AssertEx.Equal(new[] { "a", "--", "b", "c" }, args.ScriptArguments); 11475AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11476AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments); 11480AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path)); 11481AssertEx.Equal(new[] { "a", "b", "c" }, args.ScriptArguments); 11485AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path)); 11487AssertEx.Equal(new[] { "--" }, args.ScriptArguments); 11597AssertEx.Equal(expected, CommandLineParser.SplitWithDoubledSeparatorEscaping(str, ',')); 11757AssertEx.Equal(programExe32.ReadAllBytes(), programExe64.ReadAllBytes()); 11758AssertEx.Equal(programPdb32.ReadAllBytes(), programPdb64.ReadAllBytes()); 12058AssertEx.AssertEqualToleratingWhitespaceDifferences( 12268AssertEx.AssertEqualToleratingWhitespaceDifferences( 12274AssertEx.AssertEqualToleratingWhitespaceDifferences("", result.Output.Trim());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (495)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
85AssertEx.Equal(expected, actualFormatted);
Classification\SyntacticClassifierTests.cs (2)
6053AssertEx.Equal( 6083AssertEx.Equal(
Classification\TotalClassifierTests.cs (2)
3077AssertEx.Equal( 3178AssertEx.Equal(
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
190AssertEx.EqualOrDiff(expectedSourceOriginal, actualText);
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (1)
46AssertEx.EqualOrDiff(
Completion\CompletionProviders\CompletionProviderOrderTests.cs (1)
78AssertEx.EqualOrDiff(
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (2)
454AssertEx.SetEqual(items.Select(i => i.DisplayText), toTypes); 516AssertEx.SetEqual(items.Select(i => i.DisplayText), expected);
Debugging\ProximityExpressionsGetterTests.cs (2)
64AssertEx.Equal((string[])["yy", "xx"], terms); 110AssertEx.Equal(expectedTerms, actualTerms ?? Array.Empty<string>());
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);
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
261AssertEx.Equal(expected, test.ToString());
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
341AssertEx.Any(diagnostics, d => d.Id == DocumentAnalysisExecutor.AnalyzerExceptionDiagnosticId);
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (9)
52AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 64AssertEx.SetEqual(expectedApplicableAccessibilityList, symbolSpec.ApplicableAccessibilityList); 122AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 183AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 191AssertEx.SetEqual(expectedApplicableAccessibilityList, symbolSpec.ApplicableAccessibilityList); 231AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 272AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 311AssertEx.SetEqual(expectedApplicableSymbolKindList, symbolSpec.ApplicableSymbolKindList); 455AssertEx.SetEqual(expectedApplicableTypeKindList, symbolSpec.ApplicableSymbolKindList);
EditAndContinue\ActiveStatementTrackingServiceTests.cs (6)
79AssertEx.Equal( 86AssertEx.Equal(["(0,10)-(0,15)", "(0,20)-(0,25)"], spans2.Select(s => s.LineSpan.ToString())); 93AssertEx.Equal( 99AssertEx.Empty(await trackingSession.GetAdjustedTrackingSpansAsync(document2, snapshot2, CancellationToken.None)); 106AssertEx.Equal( 117AssertEx.Equal(
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (4)
336var update = AssertEx.Single(updates); 359var update = AssertEx.Single(updates); 372update = AssertEx.Single(updates); 392var update = AssertEx.Single(updates);
ExtractMethod\ExtractMethodBase.cs (1)
103AssertEx.EqualOrDiff(expected, actual);
Formatting\FormattingEngineTests.cs (1)
2930AssertEx.EqualOrDiff(expected, newSnapshot.GetText());
Formatting\RazorLineFormattingOptionsTests.cs (1)
76AssertEx.Equal(@"
Intents\IntentTestsBase.cs (1)
89AssertEx.EqualOrDiff(expectedTexts[i], actualDocumentTexts[i]);
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));
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (3)
116AssertEx.EqualOrDiff(expected, actual.ToString()); 154AssertEx.NotNull(file, $"No source document was found in the pdb for the symbol."); 234AssertEx.NotNull(symbol, $"Couldn't find symbol to go-to-def for.");
PdbSourceDocument\PdbSourceDocumentTests.cs (13)
799AssertEx.NotNull(actualText); 800AssertEx.NotNull(actualText.Encoding); 801AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName); 802AssertEx.EqualOrDiff(source, actualText.ToString()); 828AssertEx.NotNull(actualText); 829AssertEx.NotNull(actualText.Encoding); 830AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName); 831AssertEx.EqualOrDiff(source, actualText.ToString()); 857AssertEx.NotNull(actualText); 858AssertEx.NotNull(actualText.Encoding); 859AssertEx.Equal(encoding.WebName, actualText.Encoding.WebName); 860AssertEx.EqualOrDiff(source, actualText.ToString()); 949AssertEx.NotNull(symbol, $"Couldn't find symbol to go-to-def for.");
QuickInfo\SemanticQuickInfoSourceTests.cs (3)
84AssertEx.NotNull(info); 146AssertEx.NotNull(info); 315AssertEx.NotNull(info);
Rename\CSharpInlineRenameServiceTests.cs (1)
75AssertEx.AreEqual<ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>?>(expectedContext, context, comparer: ContextDictionaryComparer.Instance);
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1425AssertEx.SetEqual(workspace.Projects.SelectMany(p => p.Documents).Select(d => d.Id), eventArgs.Select(e => e.DocumentId));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (2)
74AssertEx.Equal(expectedTree!.Replace("\"", "\"\""), actualTree); 82AssertEx.Equal(RemoveMessagesInNonSupportedLanguage(expectedDiagnostics).Replace("\"", "\"\""), actualDiagnostics);
Recommendations\RecommenderTests.cs (1)
98AssertEx.NotNull(result);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (176)
CodeGen\CodeGenAsyncIteratorTests.cs (6)
1145AssertEx.SetEqual(new[] { "AsyncIteratorStateMachineAttribute" }, 1868AssertEx.SetEqual(new[] { 1888AssertEx.SetEqual(new[] { 2409AssertEx.SetEqual(new[] { 2430AssertEx.SetEqual(new[] { 4218AssertEx.SetEqual(expectedFields, fields);
CodeGen\CodeGenAsyncLocalsTests.cs (7)
238AssertEx.Equal(new[] 251AssertEx.Equal(new[] 290AssertEx.Equal(new[] 308AssertEx.Equal(new[] 997AssertEx.AssertEqualToleratingWhitespaceDifferences(@" 1155AssertEx.AssertEqualToleratingWhitespaceDifferences(@" 1249AssertEx.Equal(new[]
CodeGen\CodeGenAsyncSpillTests.cs (2)
947AssertEx.Equal(new[] 962AssertEx.Equal(new[]
CodeGen\CodeGenCapturing.cs (1)
211AssertEx.Equal(expectedCtx[depth], ctx.VariablesByScope[depth]);
CodeGen\CodeGenClosureLambdaTests.cs (7)
3973AssertEx.Equal(new[] 3982AssertEx.SetEqual(new[] 3992AssertEx.SetEqual(new[] 4002AssertEx.SetEqual(new[] 4012AssertEx.SetEqual(new[] 4044AssertEx.Equal(new[] 4085AssertEx.SetEqual(new[]
CodeGen\CodeGenDynamicTests.cs (3)
595AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(container.GetAttributes())); 649AssertEx.SetEqual(new[] { "<>p__0", "<>p__1", "<>p__2" }, memberNames); 832AssertEx.SetEqual(new[] { "CompilerGeneratedAttribute" }, GetAttributeNames(d.GetAttributes()));
CodeGen\CodeGenExplicitImplementationTests.cs (4)
1003AssertEx.All(classCMembers.Select(m => m.Name), name => name == WellKnownMemberNames.InstanceConstructorName || name.StartsWith("Q::I.", StringComparison.Ordinal)); 1004AssertEx.All(classCMembers.Select(m => m.MetadataName), metadataName => metadataName == WellKnownMemberNames.InstanceConstructorName || metadataName.StartsWith("Q::I.", StringComparison.Ordinal)); 1005AssertEx.None(classCMembers.Select(m => m.ToString()), id => id.Contains("Q")); 1006AssertEx.None(classCMembers.Select(m => m.GetDocumentationCommentId()), id => id.Contains("Q"));
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)); 10810AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>", 10812AssertEx.Equal("System.Func<delegate*<System.Int32, System.Void>>", 10819AssertEx.Equal("System.Func<delegate* unmanaged<System.Int32, System.Void>>",
CodeGen\CodeGenInterfaceImplementation.cs (1)
2746AssertEx.Equal(baseMethods, interfaceMethods.Select(interfaceMethod => derivedType.FindImplementationForInterfaceMember(interfaceMethod)));
CodeGen\CodeGenIterators.cs (6)
1178AssertEx.Equal(new[] 1195AssertEx.Equal(new[] 1235AssertEx.Equal(new[] 1251AssertEx.Equal(new[] 1283AssertEx.Equal(new[] 1295AssertEx.Equal(new[]
CodeGen\CodeGenLocalFunctionTests.cs (1)
5360AssertEx.Equal(new[] { "NullableContextAttribute", "CompilerGeneratedAttribute" }, attrs1.Select(a => a.AttributeClass.Name));
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}",
CodeGen\WinMdDelegateTests.cs (1)
43AssertEx.SetEqual(actualMembers.Select(s => s.Name), expectedMembers);
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)); 5375AssertEx.Equal(expectedNames, actualNames); 5438AssertEx.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\DynamicAnalysis\DynamicAnalysisResourceTests.cs (2)
1066AssertEx.Equal(expected, reader.GetSpans(methodData.Blob).Select(s => $"({s.StartLine},{s.StartColumn})-({s.EndLine},{s.EndColumn})")); 1080AssertEx.Equal(expected, actual);
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)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (8)
2072AssertEx.NotNull(container); 2133AssertEx.NotNull(container); 2190AssertEx.NotNull(container); 2196AssertEx.NotNull(m); 6307AssertEx.NotNull(field); 6357AssertEx.NotNull(container); 6361AssertEx.SetEqual(expectedFields, fields); 6370AssertEx.NotNull(containingType);
Emit\EditAndContinue\AssemblyReferencesTests.cs (3)
97AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL); 171AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL); 508AssertEx.Equal(expected, reader.GetAssemblyReferences().Select(aref => $"{reader.GetString(aref.Name)}, {aref.Version}"));
Emit\EditAndContinue\EditAndContinueTestBase.cs (7)
163AssertEx.Equal( 174AssertEx.Equal( 185AssertEx.Equal( 196AssertEx.Equal( 203AssertEx.Equal(rows, reader.GetCustomAttributeRows(), itemInspector: AttributeRowToString); 227AssertEx.Equal(expectedValue, attributeData); 236AssertEx.Equal(expectedValue, attributeData);
Emit\EditAndContinue\EditAndContinueTests.cs (3)
9542AssertEx.Equal(new[] { "[0x23000002] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader })); 9565AssertEx.Equal(new[] { "[0x23000003] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader, md2.Reader })); 9652AssertEx.Equal(new[] { "[0x23000003] System.Object" }, DumpTypeRefs(new[] { md0.MetadataReader, md1.Reader, md2.Reader }));
Emit\EditAndContinue\SymbolMatcherTests.cs (4)
574AssertEx.SetEqual(fields.Select(f => f.Name), new[] { "x1", "x2" }); 1128AssertEx.SetEqual(fields.Select(f => f.Name), new[] { "x", "y1", "y2" }); 1592AssertEx.SetEqual(new[] 1662AssertEx.SetEqual(new[]
Emit\NumericIntPtrTests.cs (4)
577AssertEx.Equal(expectedMembers, actualMembers); 711AssertEx.Equal(expectedLocals, actualLocals); 1927AssertEx.Equal(expectedOperators, actualOperators); 1991AssertEx.Equal(expectedOperators, actualOperators);
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
74AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
PDB\PDBAsyncTests.cs (1)
2051AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
PDB\PDBIteratorTests.cs (3)
915AssertEx.Equal(new[] 933AssertEx.Equal(new[] 1644AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
PDB\PDBSourceLinkTests.cs (3)
57AssertEx.Equal(sourceLinkBlob, actualData); 99AssertEx.Equal(sourceLinkBlob, actualBlob); 192AssertEx.Equal(sourceLinkBlob, actualData);
PDB\PDBUsingTests.cs (1)
3328AssertEx.AssertEqualToleratingWhitespaceDifferences(@"
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);
PDB\TypeDefinitionDocumentTests.cs (1)
481AssertEx.Equal(expected, actual, itemSeparator: ",\n", itemInspector: i => $"(\"{i.typeName}\", \"{i.documentName}\")");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (679)
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_CallerInfoAttributes.cs (4)
3243AssertEx.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], goo.Parameters[0].GetAttributes().SelectAsArray(attr => attr.ToString())); 3244AssertEx.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], goo.Parameters[1].GetAttributes().SelectAsArray(attr => attr.ToString())); 3245AssertEx.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], goo.Parameters[2].GetAttributes().SelectAsArray(attr => attr.ToString())); 5950AssertEx.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("value")"""], indexer.Parameters[1].GetAttributes().SelectAsArray(attr => attr.ToString()));
Attributes\AttributeTests_Conditional.cs (2)
217AssertEx.SetEqual( 231AssertEx.SetEqual(
Attributes\AttributeTests_LifetimeAnnotation.cs (1)
566AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_NativeInteger.cs (4)
1384AssertEx.Equal(ImmutableArray.Create(true, true, true, false, true, true), reader.ReadBoolArray(customAttribute.Value)); 1615AssertEx.Equal(expectedNames, actualNames); 1626AssertEx.Equal(expectedNames, actualNames); 1637AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
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_NullableContext.cs (1)
426AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual);
Attributes\AttributeTests_NullablePublicOnly.cs (1)
622AssertEx.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()));
Attributes\AttributeTests_Tuples.cs (2)
268AssertEx.Equal(srcMembers, peMembers); 640AssertEx.Equal(expectedElementNames, actualElementNames);
Attributes\AttributeTests_WellKnownAttributes.cs (3)
1127AssertEx.Equal(expectedConstant, actual); 1212AssertEx.Equal(expectedConstant, actual); 4900AssertEx.SetEqual(expectedAttributes, typeC.GetAttributes().Select(a => a.ToString()));
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
485AssertEx.Equal(identity.PublicKey, s_publicKey); 514AssertEx.Equal(identity.PublicKey, s_publicKey);
Diagnostics\DiagnosticSuppressorTests.cs (1)
662AssertEx.SetEqual(programmaticSuppression.Suppressions, suppressionInfo.ProgrammaticSuppressions);
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());
FieldKeywordTests.cs (53)
90AssertEx.Equal(expectedMembers, actualMembers); 155AssertEx.Equal(expectedMembers, actualMembers); 424AssertEx.Equal(expectedMembers, actualMembers); 474AssertEx.Equal(expectedMembers, actualMembers); 820AssertEx.Equal(expectedMembers, actualMembers); 918AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 1021AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 1128AssertEx.Equal(expectedMembers, actualMembers); 1243AssertEx.Equal(expectedMembers, actualMembers); 1517AssertEx.Equal([], actualFields); 1687AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 1854AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 1960AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 2044AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 2165AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 2247AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 4669AssertEx.Equal(expectedMembers, actualMembers); 4820AssertEx.Equal(expectedMembers, actualMembers); 4892AssertEx.Equal(expectedMembers, actualMembers); 4971AssertEx.Equal(expectedMembers, actualMembers); 5098AssertEx.Equal(expectedMembers, actualMembers); 5155AssertEx.Equal(expectedMembers, actualMembers); 5166AssertEx.Equal(expectedMembers, actualMembers); 8098AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8395AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8469AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8637AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8700AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8754AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8832AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 8907AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9007AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9083AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9160AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9283AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9368AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9437AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9458AssertEx.Equal(expectedValues, actualValues); 9469AssertEx.Equal(expectedValues, actualValues); 9566AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9797AssertEx.Equal(expectedMembers, actualMembers); 9857AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 9934AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 10008AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 10092AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 10094AssertEx.Equal(["A(2)"], actualFields[0].GetAttributes().ToStrings()); 10095AssertEx.Equal(["A(3)"], actualFields[1].GetAttributes().ToStrings()); 10096AssertEx.Equal(["A(5)", "A(6)"], actualFields[2].GetAttributes().ToStrings()); 10159AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings()); 10161AssertEx.Equal(["A(2)"], actualFields[0].GetAttributes().ToStrings()); 10162AssertEx.Equal(["A(3)"], actualFields[1].GetAttributes().ToStrings()); 10163AssertEx.Equal(["A(5)", "A(6)"], actualFields[2].GetAttributes().ToStrings()); 10358AssertEx.Equal(expectedFields, actualFields.ToTestDisplayStrings());
FirstClassSpanTests.cs (22)
5002AssertEx.Equal("System.Int32[]", aSymbol.Type.ToTestDisplayString()); 5006AssertEx.Equal("System.Int32 System.Span<System.Int32>.M(System.Int32 y)", lookupResult.Single().ToTestDisplayString()); 8549AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8581AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8613AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8628AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8660AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8692AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8707AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8722AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8754AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8773AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure)); 8792AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp, CandidateReason.OverloadResolutionFailure)); 8825AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8840AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8855AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8870AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8919AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8951AssertEx.Equal("C.M1<System.Int32>", DisplayInvokedMethodTypeArguments(comp)); 8966AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 8981AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp)); 9013AssertEx.Equal("C.M1<System.Object>", DisplayInvokedMethodTypeArguments(comp));
OverloadResolutionPriorityTests.cs (10)
762AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[0]).Symbol!.ToTestDisplayString()); 763AssertEx.Equal("RetValue C.this[System.Object o] { get; set; }", model.GetSymbolInfo(accesses[1]).Symbol!.ToTestDisplayString()); 809AssertEx.Equal("Derived..ctor(System.Object o)", model.GetSymbolInfo(creation).Symbol!.ToTestDisplayString()); 907AssertEx.Equal("C..ctor(System.Object o)", attr.AttributeConstructor.ToTestDisplayString()); 989AssertEx.Equal(["System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", "System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Object priority)"], 995AssertEx.Equal("System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute..ctor(System.Int32 priority)", 1482AssertEx.Equal("System.Int32 C.this[System.Object x] { get; set; }", indexer.ToTestDisplayString()); 1488AssertEx.Equal("System.Int32 C.this[System.String x] { get; set; }", indexer.ToTestDisplayString()); 2373AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString()); 2500AssertEx.Equal("System.Int32 C.this[System.Object o] { get; set; }", s.ToTestDisplayString());
RefReadonlyParameterTests.cs (3)
980AssertEx.SetEqual(new[] 1129AssertEx.SetEqual(new[] 1181AssertEx.SetEqual(new[]
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()); 28946AssertEx.Equal("void ITest29.M21<T1>() where T1 : allows ref struct", m21.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints));
Semantics\CollectionExpressionTests.cs (5)
13444AssertEx.Equal( 13719AssertEx.Equal( 15586AssertEx.Equal(new[] { "<>y__InlineArray2", "<>y__InlineArray3" }, getInlineArrayTypeNames(module)); 15614AssertEx.Equal(new[] { "<>y__InlineArray3" }, getInlineArrayTypeNames(module)); 15642AssertEx.Equal(new[] { $"<>y__InlineArray{n}" }, getInlineArrayTypeNames(module));
Semantics\InlineArrayTests.cs (2)
14641AssertEx.Equal("System.Span<TElement> <PrivateImplementationDetails>.InlineArrayAsSpan<TBuffer, TElement>(ref TBuffer buffer, System.Int32 length)", 14691AssertEx.Equal("System.ReadOnlySpan<TElement> <PrivateImplementationDetails>.InlineArrayAsReadOnlySpan<TBuffer, TElement>(in TBuffer buffer, System.Int32 length)",
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()); 10404AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10405AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10418AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10419AssertEx.Equal("System.ParamArrayAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10528AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10529AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10542AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10543AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10652AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10653AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10666AssertEx.Equal(attributes, test1.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10667AssertEx.Equal(attributes, test2.GetCustomAttributesToEmit(null).Select(a => a.ToString())); 10769AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10770AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 10783AssertEx.Equal("System.ParamArrayAttribute", test1.GetCustomAttributesToEmit(null).Single().ToString()); 10784AssertEx.Equal("System.Runtime.CompilerServices.ParamCollectionAttribute", test2.GetCustomAttributesToEmit(null).Single().ToString()); 12822AssertEx.Equal(adjustedMemberDisplay, member.ToTestDisplayString());
Semantics\PatternMatchingTestBase.cs (1)
470AssertEx.Equal(expectedDecisionDag, decisionDag.Dump());
Semantics\PatternMatchingTests.cs (1)
11391AssertEx.Equal(new[] { "System.ReadOnlySpan<System.Char>", "System.Span<System.Char>" }, types);
Semantics\PatternMatchingTests_ListPatterns.cs (6)
74AssertEx.Multiple( 284AssertEx.Multiple( 541AssertEx.Multiple( 728AssertEx.Multiple( 2454AssertEx.Multiple( 6692AssertEx.Multiple(
Semantics\PatternMatchingTests4.cs (11)
4021AssertEx.Equal( 4090AssertEx.Equal( 4163AssertEx.Equal( 4235AssertEx.Equal( 4279AssertEx.Equal( 4326AssertEx.AssertEqualToleratingWhitespaceDifferences(""" 4408AssertEx.AssertEqualToleratingWhitespaceDifferences(""" 4490AssertEx.AssertEqualToleratingWhitespaceDifferences(""" 4572AssertEx.AssertEqualToleratingWhitespaceDifferences(""" 4654AssertEx.AssertEqualToleratingWhitespaceDifferences(""" 4738AssertEx.AssertEqualToleratingWhitespaceDifferences("""
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()); 22026AssertEx.Equal(new[] { "<x>P", "<y>P" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name)); 22047AssertEx.Equal(new[] { "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name)); 22073AssertEx.Equal(new[] { "b", "<x>P", "<y>P", "a" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name)); 22099AssertEx.Equal(new[] { "<x>P", "<y>P", "a", "b" }, c1.GetMembers().OfType<FieldSymbol>().Select(f => f.Name)); 22130AssertEx.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)
EditAndContinue\BreakpointSpansTests.cs (2)
56AssertEx.AreEqual( 81AssertEx.Equal(expectedSpans, actualSpans,
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
115AssertEx.Equal(Array.Empty<SyntaxKind>(), unhandledKinds); 768AssertEx.Equal([expectedDiagnostic], result.RudeEdits.Select(d => d.ToDiagnostic(newSyntaxTree))
EditAndContinue\SyntaxComparerTests.cs (4)
32AssertEx.Equal( 48AssertEx.Equal( 64AssertEx.Equal( 80AssertEx.Equal(
EditAndContinue\SyntaxUtilitiesTests.cs (4)
257AssertEx.Empty(SyntaxUtilities.GetSuspensionPoints(x.Initializer)); 258AssertEx.Equal(["yield return 1;"], SyntaxUtilities.GetSuspensionPoints(m1.Body).Select(n => n.ToString())); 259AssertEx.Empty(SyntaxUtilities.GetSuspensionPoints(m2.Body)); 261AssertEx.Equal(
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(
Testing\CSharpTestMethodFinderTests.cs (1)
561AssertEx.Equal(expectedTestNames, testMethodNames);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (65)
CommandLineRunnerTests.cs (42)
53AssertEx.AssertEqualToleratingWhitespaceDifferences( 68AssertEx.AssertEqualToleratingWhitespaceDifferences( 91AssertEx.AssertEqualToleratingWhitespaceDifferences( 126AssertEx.AssertEqualToleratingWhitespaceDifferences( 151AssertEx.AssertEqualToleratingWhitespaceDifferences( 166AssertEx.AssertEqualToleratingWhitespaceDifferences( 257AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString()); 258AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString()); 281AssertEx.AssertEqualToleratingWhitespaceDifferences( 304AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 321AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 348AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 370AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 389AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 404AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString()); 405AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString()); 415AssertEx.AssertEqualToleratingWhitespaceDifferences( 428AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()); 432AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()); 436AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()); 440AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()); 458AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Out.ToString()); 459AssertEx.AssertEqualToleratingWhitespaceDifferences(error, runner.Console.Error.ToString()); 468AssertEx.AssertEqualToleratingWhitespaceDifferences( 476AssertEx.AssertEqualToleratingWhitespaceDifferences( 495AssertEx.AssertEqualToleratingWhitespaceDifferences("3", runner.Console.Out.ToString()); 547AssertEx.AssertEqualToleratingWhitespaceDifferences(@" 584AssertEx.AssertEqualToleratingWhitespaceDifferences(@" 608AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 623AssertEx.AssertEqualToleratingWhitespaceDifferences( 644AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 659AssertEx.AssertEqualToleratingWhitespaceDifferences( 683AssertEx.Equal(new[] 694AssertEx.Equal(new[] 714AssertEx.AssertEqualToleratingWhitespaceDifferences(@" 734AssertEx.AssertEqualToleratingWhitespaceDifferences($@" 743AssertEx.AssertEqualToleratingWhitespaceDifferences( 843AssertEx.AssertEqualToleratingWhitespaceDifferences( 866AssertEx.AssertEqualToleratingWhitespaceDifferences( 879AssertEx.AssertEqualToleratingWhitespaceDifferences( 895AssertEx.AssertEqualToleratingWhitespaceDifferences( 914AssertEx.AssertEqualToleratingWhitespaceDifferences(
InteractiveSessionTests.cs (20)
900AssertEx.Equal(new[] { "hello", "hello" }, result); 1024AssertEx.Equal(new object[] { 1, 1, null }, result); 1038AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1); 1041AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2); 1044AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue); 1047AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue); 1050AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue); 1675AssertEx.SetEqual(new[] { "<implicit>", "<host>" }, aliases); 1682AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); 1687AssertEx.SetEqual(new[] { "<host>" }, aliases); 1723AssertEx.SetEqual(Array.Empty<string>(), aliases); 1729AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); 1737AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); 1744AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); 1751AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); 1789AssertEx.SetEqual(Array.Empty<string>(), aliases); 1795AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); 1803AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); 1810AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); 1817AssertEx.SetEqual(new[] { "<host>", "global" }, aliases);
ScriptTests.cs (3)
403AssertEx.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name)); 404AssertEx.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value)); 405AssertEx.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (990)
Semantics\DelegateTypeTests.cs (30)
1381AssertEx.Equal(["void System.Object.F(System.Object y)", "void System.Object.F<T>(T y)"], 1424AssertEx.Equal(["void System.Object.F<T>()", "void System.Object.F()"], 2087AssertEx.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2152AssertEx.Equal(["void C.M()", "void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2215AssertEx.Equal(["void C.M()", "void C.M(System.Object o)", "void C.M(System.Object o)"], 2273AssertEx.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2322AssertEx.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2362AssertEx.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2405AssertEx.Equal(["void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2456AssertEx.Equal(["void C.M(C c)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2497AssertEx.Equal(["void C.M<T>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2545AssertEx.Equal(["void C.M<T>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2597AssertEx.Equal(["void C.M<C>()", "void C.M()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2643AssertEx.Equal(["void C.M<System.Int32, System.Int32>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2691AssertEx.Equal(["void C.M<System.Int32, System.Int32>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2738AssertEx.Equal(["void C.M<T>()", "void C.M<T, U>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2782AssertEx.Equal(["void C.M()", "void C.M(System.Object o)"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2832AssertEx.Equal(["void System.Object.M<System.Object>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2862AssertEx.Equal(["void C<System.Int32, System.Int64>.M<System.Int32, System.Int64>()"], 2891AssertEx.Equal(["void C.M<T>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 2920AssertEx.Equal(["void C.M<System.Int32>()", "void C.M<System.Int32>(System.Object o)"], 2951AssertEx.Equal(["void C.M<System.Object?>()", "void C.M<System.Object?>(System.Object o)"], 2983AssertEx.Equal(["void C.M<System.Object?>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 3014AssertEx.Equal(["void System.Object.M<System.Object>()"], model.GetMemberGroup(memberAccess).ToTestDisplayStrings()); 3046AssertEx.Equal(["void System.Object.M<System.Object>()", "void System.Object.M<System.Object>(System.Object ignored)"], 3081AssertEx.Equal(["void System.Object.F<System.Object>()", "void System.Object.F()"], 10393AssertEx.Equal(expectedInfo, variables.Select(v => getVariableInfo(model, v))); 12038AssertEx.Equal(expectedTypes, actualTypes); 12083AssertEx.Equal(expectedTypes, actualTypes); 12132AssertEx.Equal(expectedTypes, actualTypes);
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\GenericConstraintsTests.cs (4)
632AssertEx.SetEqual(new[] { "System.Enum", "MyEnum" }, constraintTypeNames); 1145AssertEx.SetEqual(new[] { "System.Delegate", "D1" }, constraintTypeNames); 1630AssertEx.SetEqual(new[] { "System.MulticastDelegate", "D1" }, constraintTypeNames); 1906AssertEx.Equal(new string[] { "Enum", "IDisposable" }, typeParameter.ConstraintTypes().Select(type => type.Name));
Semantics\GlobalUsingDirectiveTests.cs (5)
3286AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees); 3288AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees); 3291AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees); 3293AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1], comp2.SyntaxTrees[2] }, comp2.UsageOfUsingsRecordedInTrees); 3303AssertEx.SetEqual(new[] { comp2.SyntaxTrees[1] }, comp2.UsageOfUsingsRecordedInTrees);
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\InitOnlyMemberTests.cs (10)
403AssertEx.SetEqual(members.ToTestDisplayStrings(), 1459AssertEx.Empty(propertyAttributes); 1468AssertEx.Empty(getterAttributes); 1472AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes); 1485AssertEx.Empty(setterAttributes); 1489AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes); 1497AssertEx.Empty(backingFieldAttributes); 1501AssertEx.Equal( 2429AssertEx.SetEqual(members.ToTestDisplayStrings(), new[] { 2540AssertEx.SetEqual(new[] {
Semantics\InterceptorsTests.cs (6)
6880AssertEx.Equal("xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz", locationSpecifier.Data); 6881AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFlIAAABQcm9ncmFtLmNz")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax()); 6889AssertEx.Equal("xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz", otherLocation.Data); 6890AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "xRCCFCvTOZMORzSr/fZQFmAAAABQcm9ncmFtLmNz")]""", otherLocation.GetInterceptsLocationAttributeSyntax()); 7200AssertEx.Equal("""[global::System.Runtime.CompilerServices.InterceptsLocationAttribute(1, "jB4qgCy292LkEGCwmD+R6FIAAAA=")]""", locationSpecifier.GetInterceptsLocationAttributeSyntax()); 7958AssertEx.Equal("System.Span<System.Int32> D.M(this ref S s)", method.ToTestDisplayString());
Semantics\InterpolationTests.cs (45)
4618AssertEx.Equal("System.String System.String.op_Addition(System.String left, System.String right)", semanticInfo.Symbol.ToTestDisplayString()); 6824AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6850AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6882AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6917AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6957AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 6992AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7032AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7070AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7110AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7145AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7185AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7220AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7253AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7293AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7333AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7373AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7413AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7448AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7490AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7525AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7567AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7608AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7648AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7716AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7810AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7922AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 7988AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8018AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8120AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8262AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8322AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8442AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8680AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8805AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 8956AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9067AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9134AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9190AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9306AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9422AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9547AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9808AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 9883AssertEx.Equal("System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute", 11941AssertEx.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); 7013AssertEx.Equal("System.Action", model.GetTypeInfo(action).Type.ToTestDisplayString()); 8444AssertEx.Equal("TResult <>f__AnonymousDelegate0<T1, TResult>.Invoke(params T1[] arg)", lam1.DelegateInvokeMethod.ToTestDisplayString()); 8455AssertEx.Equal("TResult <>f__AnonymousDelegate1<T1, T2, TResult>.Invoke(T1 arg1, params T2[] arg2)", lam3.DelegateInvokeMethod.ToTestDisplayString());
Semantics\LocalFunctionTests.cs (2)
7049AssertEx.Equal(expectedSymbols, actualSymbols); 7107AssertEx.Equal(expectedSymbols, actualSymbols);
Semantics\LookupPositionTests.cs (2)
2302AssertEx.SetEqual(new[] { "default", "case int i:", "label1" }, symbols.Select(s => s.ToTestDisplayString())); 3130AssertEx.Equal(expectedSymbols, actualSymbols,
Semantics\NameOfTests.cs (2)
1082AssertEx.SetEqual( 1246AssertEx.SetEqual(
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\NonTrailingNamedArgumentsTests.cs (1)
427AssertEx.Equal(new[] { "void C.M(System.Int32 a, System.Int32 b, [System.Int32 c = 1])" },
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)
13512AssertEx.Equal("S?[]", model.GetTypeInfo(returnStatement.Expression).Type.ToTestDisplayString()); 30175AssertEx.Empty(copenAttributes); 30179AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes); 30186AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, propertyAttributes); 30190AssertEx.Empty(propertyAttributes); 30197AssertEx.Empty(getterAttributes); 30201AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes); 30208AssertEx.Empty(getterReturnAttributes); 30212AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, getterReturnAttributes); 30219AssertEx.Empty(setterAttributes); 30223AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes.Select(a => a.ToString())); 30228AssertEx.Empty(setterReturnAttributes); 30278AssertEx.Empty(copenAttributes); 30282AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes); 30289AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes); 30293AssertEx.Empty(propertyAttributes); 30300AssertEx.Empty(getterAttributes); 30304AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes); 30311AssertEx.Empty(getterReturnAttributes); 30315AssertEx.Equal(new[] { 30802AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes); 30806AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes); 40789AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes); 40793AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes); 40963AssertEx.Empty(copenAttributes); 40967AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes); 40974AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, propertyAttributes); 40978AssertEx.Empty(propertyAttributes); 40983AssertEx.Empty(setterAttributes); 40989AssertEx.Empty(setterValueAttributes); 40993AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, setterValueAttributes); 40998AssertEx.Empty(setterReturnAttributes); 41024AssertEx.Empty(copenAttributes); 41028AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes); 41035AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes); 41039AssertEx.Empty(propertyAttributes); 41044AssertEx.Empty(setterAttributes); 41050AssertEx.Empty(setterValueAttributes); 41054AssertEx.Equal(new[] { 44644AssertEx.Empty(copenAttributes); 44648AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes); 44655AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes); 44659AssertEx.Empty(propertyAttributes); 44666AssertEx.Empty(setterAttributes); 44670AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes); 44677AssertEx.Empty(setterValueAttributes); 44681AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, setterValueAttributes); 44893AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes); 44897AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes); 47981AssertEx.Empty(copenAttributes); 47985AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes); 47992AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes); 47996AssertEx.Empty(propertyAttributes); 48005AssertEx.Empty(getterReturnAttributes); 48009AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, getterReturnAttributes); 48093AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes); 48097AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes); 111714AssertEx.Equal(expectedTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true))); 111779AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true))); 111832AssertEx.Equal(expectedConstraintTypes, constraintTypes.SelectAsArray(t => t.ToTestDisplayString(true))); 116598AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, actual); 126918AssertEx.Equal<NullableAnnotation>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableAnnotation.{na}", "{0,-32:G}", size); 126923AssertEx.Equal<NullableFlowState>(expected, getResult, (na1, na2) => na1 == na2, na => $"NullableFlowState.{na}", "{0,-32:G}", size); 138242AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138249AssertEx.Equal("I<T>", interfaces[0].ToTestDisplayString(includeNonNullable: true)); 138251AssertEx.Equal("I<T>", interfaces[1].ToTestDisplayString(includeNonNullable: true)); 138257AssertEx.Equal("I<T>", i.ToTestDisplayString(includeNonNullable: true)); 138286AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138290AssertEx.Equal("I<T, T>", i.ToTestDisplayString(includeNonNullable: true)); 138326AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138330AssertEx.Equal("I<T, System.Object?>", i.ToTestDisplayString(includeNonNullable: true)); 138334AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138338AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true)); 138374AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138378AssertEx.Equal("I<T, System.Object>", i.ToTestDisplayString(includeNonNullable: true)); 138382AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138386AssertEx.Equal("I<System.Object!, T>", i.ToTestDisplayString(includeNonNullable: true)); 138411AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138415AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138441AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138445AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138471AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138475AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 138499AssertEx.Equal("T", cT.ToTestDisplayString(includeNonNullable: true)); 138503AssertEx.Equal("I<T?>", i.ToTestDisplayString(includeNonNullable: true)); 157922AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>" }, 157924AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>", "I<object>" }, 157956AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>" }, 157958AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>", "I<(int notA, int notB)>" }, 157994AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>" }, 157996AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>", "I<(object notA, object notB)>" }, 158022AssertEx.Equal(new string[] { "I<object>", "I2<object>" }, 158024AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158054AssertEx.Equal(new string[] { "I<object>", "I2<object>" }, 158056AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158223AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158225AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158264AssertEx.Equal(new string[] { "I<object>", "I2<object>" }, 158266AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" }, 158304AssertEx.Equal(new string[] { "I<object>", "I2<object>" }, 158306AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" }, 158518AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158520AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" }, 158560AssertEx.Equal(new string[] { "I2<object>", "I<object>" }, 158562AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" }, 158641AssertEx.Equal(new string[] { "I<object?>", "I2<object>" }, 158643AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object!>" }, 158673AssertEx.Equal(new string[] { "I<object?>", "I2<object>" }, 158675AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object>" }, 158707AssertEx.Equal(new string[] { "I<object?>", "I2<object!>" }, 158709AssertEx.Equal(new string[] { "I<object?>", "I2<object!>", "I<object!>" },
Semantics\ObjectAndCollectionInitializerTests.cs (22)
4229AssertEx.Equal("ref System.Int32 C.this[System.Int32 x] { get; }", symbolInfo.Symbol.ToTestDisplayString()); 4231AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4232AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4235AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString()); 4240AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4241AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4244AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString()); 4245AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 4246AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString()); 4250AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4251AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4283AssertEx.Equal("ref System.Int32 C.P { get; }", symbolInfo.Symbol.ToTestDisplayString()); 4285AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4286AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4289AssertEx.Equal(symbolInfo.Symbol.ToTestDisplayString(), propertyRef.Property.ToTestDisplayString()); 4294AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4295AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString()); 4298AssertEx.Equal("System.Int32", operation.Target.Type.ToTestDisplayString()); 4299AssertEx.Equal("System.Int32", operation.Value.Type.ToTestDisplayString()); 4300AssertEx.Equal("System.Int32", operation.Type.ToTestDisplayString()); 4304AssertEx.Equal("System.Int32", typeInfo.Type.ToTestDisplayString()); 4305AssertEx.Equal("System.Int32", typeInfo.ConvertedType.ToTestDisplayString());
Semantics\OperatorTests.cs (1)
3217AssertEx.Equal(expected, results);
Semantics\OverloadResolutionTestBase.cs (1)
53AssertEx.EqualOrDiff(expected, results);
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)" }, 10501AssertEx.SetEqual(new[] { "B" }, getAttributeStrings(prop1)); 10504AssertEx.SetEqual(new[] { "A" }, getAttributeStrings(field1)); 10507AssertEx.SetEqual(new[] { "C", "D" }, getAttributeStrings(param1)); 10651AssertEx.AssertEqualToleratingWhitespaceDifferences(expected, SyntaxFactory.TypeDeclaration(SyntaxKind.RecordStructDeclaration, "Point").NormalizeWhitespace().ToString());
Semantics\RefFieldTests.cs (3)
2030AssertEx.Equal(expectedMembers, fieldMembers.ToTestDisplayStrings()); 2038AssertEx.Equal(expectedReferences, fieldReferences.ToTestDisplayStrings()); 2270AssertEx.Equal(actualFields, expectedFields);
Semantics\ScriptSemanticsTests.cs (2)
420AssertEx.SetEqual(new[] { "<Initialize>", "G", ".ctor", "<Main>" }, methods.Select(m => m.Name)); 426AssertEx.SetEqual(new[] { "F", ".ctor" }, methods.Select(m => m.Name));
SourceGeneration\GeneratorDriverTests.cs (4)
727AssertEx.Equal(results.Diagnostics, fullDiagnostics); 2163AssertEx.EqualOrDiff(generatedContent, generatedTree.ToString()); 2224AssertEx.EqualOrDiff(generatedContent[i], trees[i].ToString()); 2367AssertEx.EqualOrDiff(generatedContent[i], trees[i].ToString());
SourceGeneration\StateTableTests.cs (1)
1335AssertEx.Equal(expected[index].Item, entry.Item);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (311)
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);
Compilation\UsedAssembliesTests.cs (4)
98AssertEx.Equal(expected, used.Skip(1)); 102AssertEx.Equal(expected, used); 283AssertEx.Equal(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Assembly), comp.GetUsedAssemblyReferences()); 318AssertEx.Equal(result, currentResult);
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\DocumentationModeTests.cs (1)
405AssertEx.All(modes, mode => mode.IsValid());
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());
SymbolDisplay\SymbolDisplayTests.cs (3)
3629AssertEx.Equal(expectedText, actualParts.ToDisplayString()); 3632AssertEx.Equal(expectedKinds, actualParts.Select(p => p.Kind), itemInspector: p => $" SymbolDisplayPartKind.{p}"); 9038AssertEx.Equal(
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
716AssertEx.SetEqual(interface3PropertyOverriddenOrHidden.HiddenMembers, interface1Property, interface2Property); 720AssertEx.SetEqual(interface3GetterOverriddenOrHidden.HiddenMembers, interface1Getter, interface2Getter);
Symbols\CompilationCreationTests.cs (1)
2709AssertEx.Equal(new[]
Symbols\ConversionTests.cs (2)
2074AssertEx.SetEqual(castInfo.CandidateSymbols, conversionSymbols); 2081AssertEx.SetEqual(elementConversion.OriginalUserDefinedConversions.GetPublicSymbols(), conversionSymbols);
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\FunctionPointerTypeSymbolTests.cs (6)
1557AssertEx.Equal(expectedMessage, ptr.EnsureCSharpSymbolOrNull(nameof(ptr)).GetUseSiteDiagnostic().ToString()); 1639AssertEx.Equal($"delegate* unmanaged{expectedText}<System.String>", ptr.ToTestDisplayString()); 1641AssertEx.Equal($"delegate* unmanaged{expectedText}<ref readonly modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString()); 1654AssertEx.Equal("delegate* unmanaged[Cdecl, Stdcall]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall)>", ptr.ToTestDisplayString()); 1656AssertEx.Equal("delegate* unmanaged[Cdecl, Stdcall]<ref readonly modopt(System.Runtime.CompilerServices.CallConvCdecl) modopt(System.Runtime.CompilerServices.CallConvStdcall) modreq(System.Runtime.InteropServices.InAttribute) System.String>", ptr.ToTestDisplayString()); 1659AssertEx.Equal("delegate* unmanaged[Cdecl]<System.String modopt(System.Runtime.CompilerServices.CallConvCdecl)>", ptr.ToTestDisplayString());
Symbols\IndexerTests.cs (1)
2532AssertEx.Equal(expected, actual, itemInspector: s => string.Format("\"{0}\"", s));
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (2)
807AssertEx.SetEqual(overriddenOrHidden1.HiddenMembers, baseMethod, baseProperty); 813AssertEx.SetEqual(overriddenOrHidden2.HiddenMembers, baseMethod, baseProperty);
Symbols\Metadata\MetadataMemberTests.cs (1)
486AssertEx.None(type.GetMembersUnordered(), symbol => symbol.Name.StartsWith("_VtblGap", StringComparison.Ordinal));
Symbols\Metadata\PE\LoadingEvents.cs (2)
587AssertEx.All(events, e => e.HasAssociatedField); 591AssertEx.All(events, e => e.AssociatedField == field);
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 (66)
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()); 3790AssertEx.Equal([ 3858AssertEx.Equal([ 3942AssertEx.Equal([ 4031AssertEx.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4074AssertEx.Equal(["System.Runtime.CompilerServices.CallerLineNumberAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4110AssertEx.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4152AssertEx.Equal(["System.Runtime.CompilerServices.CallerFilePathAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4188AssertEx.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4230AssertEx.Equal(["System.Runtime.CompilerServices.CallerMemberNameAttribute"], indexer.Parameters[1].GetAttributes().ToStrings()); 4281AssertEx.Equal(["""System.Runtime.CompilerServices.CallerArgumentExpressionAttribute("x")"""], indexer.Parameters[1].GetAttributes().ToStrings()); 4338AssertEx.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()); 5848AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()", 5910AssertEx.Equal("System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute..ctor()", 6196AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString()); 6199AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!); 6242AssertEx.Equal("System.ObsoleteAttribute", attrData.AttributeClass.ToTestDisplayString()); 6245AssertEx.Equal(expectedReason, (string)attrArgs[0].ValueInternal!); 6464AssertEx.NotNull(c); 6468AssertEx.NotNull(d); 6575AssertEx.Empty(u_c.AllRequiredMembers); 6960AssertEx.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));
Symbols\Source\PropertyTests.cs (1)
2768AssertEx.SetEqual(actualMembers.Select(s => s.Name), expectedMembers);
Symbols\Source\RecordTests.cs (1)
1076AssertEx.Equal(new[] {
Symbols\Source\UsingAliasTests.cs (1)
276AssertEx.Equal(expected, usingAliasType.ToDisplayString(SymbolDisplayFormat.TestFormat));
Symbols\SymbolExtensionTests.cs (1)
254AssertEx.Equal("System.String C1<System.Int32 modopt(C2<G>)>.Method()", method.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (37)
Diagnostics\DiagnosticTest.cs (1)
2483AssertEx.Equal(CreateCompilation(tree).GetDiagnostics(), CreateCompilation(tree).GetDiagnostics());
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);
Diagnostics\LocationsTests.cs (5)
156AssertEx.Equal(new[] 220AssertEx.Equal(new[] 253AssertEx.Equal(new[] 267AssertEx.Equal(new[] 287AssertEx.Equal(new[]
IncrementalParsing\IncrementalParsingTests.cs (3)
2789AssertEx.AreEqual(@"System.Console.WriteLine(false) 2820AssertEx.Equal(@"System.Console.WriteLine(true) 2848AssertEx.Equal(@"if (false)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (2)
51AssertEx.Fail("Unmatched expected: " + expectedEnumerator.Current); 56AssertEx.Fail("Unmatched actual: " + expectedEnumerator.Current);
LexicalAndXml\LexicalTests.cs (2)
1159AssertEx.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull)); 1340AssertEx.EqualOrDiff("error CS9202: Feature 'string escape character' is not available in C# 12.0. Please use language version 13.0 or greater.", errors[0].ToString(EnsureEnglishUICulture.PreferredOrNull));
LexicalAndXml\SyntaxTokenParserTests.cs (1)
411AssertEx.Equal(expectedText.NormalizeLineEndings(), result.Token.ToFullString());
Syntax\FieldAndValueKeywordTests.cs (1)
1285AssertEx.Equal(expectedFields, actualFields);
Syntax\SyntaxFactoryTests.cs (4)
125AssertEx.Fail("Should have thrown - can't create an IdentifierName token"); 151AssertEx.Fail("Should have thrown"); 162AssertEx.Fail("Should have thrown"); 173AssertEx.Fail("Should have thrown");
Syntax\SyntaxNormalizerTests.cs (1)
3411AssertEx.Equal(expected.NormalizeLineEndings(), actual.NormalizeLineEndings());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (11)
CompilationTestUtils.cs (2)
63AssertEx.SetEqual(symbols.Select(s => s.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)), descriptions); 482AssertEx.Equal(expectedTypes, actualTypes, message: method.ToTestDisplayString());
CSharpTestBase.cs (2)
1382AssertEx.Equal(resolvedReferences, used); 1432AssertEx.Equal(expectedUsesOfNullable, symbols, itemInspector: s => $"\"{s}\"");
EmitMetadataTestBase.cs (1)
126AssertEx.SetEqual(expectedEntries, actualEntries, itemInspector: entry => $@"
FunctionPointerUtilities.cs (6)
145AssertEx.Equal(expectedSyntax, syntax.ToString()); 157AssertEx.Equal(expectedType, semanticInfo.Type.ToTestDisplayString(includeNonNullable: false)); 166AssertEx.Equal(expectedConvertedType, semanticInfo.ConvertedType.ToTestDisplayString(includeNonNullable: false)); 198AssertEx.Equal(expectedSymbolCandidates, semanticInfo.MemberGroup.Select(s => s.ToTestDisplayString(includeNonNullable: false))); 219AssertEx.Equal(expectedSymbol, semanticInfo.Symbol.ToTestDisplayString(includeNonNullable: false)); 226AssertEx.Equal(expectedSymbolCandidates, semanticInfo.CandidateSymbols.Select(s => s.ToTestDisplayString(includeNonNullable: false)));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
PdbTests.cs (2)
98AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'i', (byte)'c', (byte)'r', (byte)'o' }, pdbStream.GetBuffer().Take(6).ToArray()); 99AssertEx.Equal(new byte[] { 0x12, (byte)'M', (byte)'Z' }, peStream.GetBuffer().Take(3).ToArray());
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\AddImportsTests.cs (1)
106AssertEx.EqualOrDiff(simplifiedText, actualText);
CodeGeneration\SyntaxGeneratorTests.cs (1)
52AssertEx.Equal(expectedText, normalized);
EmbeddedLanguages\VirtualChars\CSharpVirtualCharServiceTests.cs (1)
65AssertEx.Equal(expected, actual);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (26)
AutomaticCompletion\AbstractAutomaticBraceCompletionTests.cs (1)
89AssertEx.EqualOrDiff(result, session.SubjectBuffer.CurrentSnapshot.GetText());
BracePairs\AbstractBracePairsTests.cs (1)
45AssertEx.Fail($"Unexpected brace pair: {bracePair}");
Classification\AbstractClassifierTests.cs (1)
68AssertEx.Equal(expected.ToImmutableArray(), actualFormatted);
Classification\ClassificationTestHelper.cs (2)
44AssertEx.Fail("Unexpected actual classification: {0}", GetText(actualClassificationList[i])); 48AssertEx.Fail("Missing classification for: {0}", GetText(expectedClassificationList[i]));
CommentSelection\AbstractToggleCommentTestBase.cs (1)
76AssertEx.Equal(expectedSpans, textView.Selection.SelectedSpans.Select(snapshotSpan => TextSpan.FromBounds(snapshotSpan.Start, snapshotSpan.End)));
CompleteStatement\AbstractCompleteStatementTests.cs (1)
124AssertEx.EqualOrDiff(expectedCode, view.TextSnapshot.GetText());
Completion\AbstractCompletionProviderTests.cs (5)
223AssertEx.None( 240AssertEx.Any(items, Predicate); 666AssertEx.EqualOrDiff(actualExpectedCode, actualCodeAfterCommit); 971AssertEx.Any(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem)); 989AssertEx.None(completionList.ItemsList, c => CompareItems(c.DisplayText, expectedItem));
DocumentationComments\AbstractDocumentationCommentTests.cs (1)
165AssertEx.Equal(expectedCode, actual);
Formatting\AbstractNewDocumentFormattingServiceTests.cs (1)
41AssertEx.EqualOrDiff(expected, actual.ToString());
Formatting\CoreFormatterTestsBase.cs (1)
234AssertEx.EqualOrDiff(expected, actual);
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
136AssertEx.Equal(expectedWithoutWhitespace, actualWithoutWhitespace); 767AssertEx.NotNull(shutdownTask, "Unexpected shutdown not started");
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
49AssertEx.Fail(errorMessage.ToString());
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
43AssertEx.EqualOrDiff(
QuickInfo\ToolTipAssert.cs (1)
57AssertEx.EqualOrDiff(renderedExpected, renderedActual);
Rename\RenamerTests.cs (2)
98AssertEx.SetEqual(endDocument.DocumentFolders, updatedDocument.Folders); 101AssertEx.EqualOrDiff(endDocument.Text, (await updatedDocument.GetTextAsync()).ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (3)
220AssertEx.Equal(expectedTestItem.Signature, signature.Content); 269AssertEx.Fail("Expected signature help items must be provided for EditorBrowsable tests. If there are no expected items, provide an empty IEnumerable rather than null."); 407AssertEx.NotNull(items, "Signature help provider returned null for items. Did you forget $$ in the test or is the test otherwise malformed, e.g. quotes not escaped?");
SpellCheck\AbstractSpellCheckFixerProviderTests.cs (1)
54AssertEx.Equal(expected, buffer.CurrentSnapshot.GetText());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Utilities\AssertEx.vb (1)
19Roslyn.Test.Utilities.AssertEx.Fail("Wrong token count. Expected '{0}', Actual '{1}', Expected Text: '{2}', Actual Text: '{3}'",
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (33)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (2)
754AssertEx.SetEqual(expectedChanges, edits.TextChanges); 776AssertEx.Equal(expectedSelectedSpans, textView.Selection.SelectedSpans.Select(snapshotSpan => snapshotSpan.Span));
Completion\FileSystemCompletionHelperTests.cs (1)
19AssertEx.Equal(
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
271AssertEx.Equal(
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
184AssertEx.Equal( 190AssertEx.Equal(
EmbeddedLanguages\StackFrame\StackFrameParserTests.Utilities.cs (2)
39AssertEx.NotNull(tree); 89AssertEx.EqualOrDiff(originalText, tree.Root.ToFullString());
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (1)
129AssertEx.NotNull(current);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
145AssertEx.EqualOrDiff(expected, actual);
Snippets\RoslynLSPSnippetConvertTests.cs (3)
405AssertEx.EqualOrDiff("quux$0", lspSnippetString); 416AssertEx.EqualOrDiff("bar quux$0", lspSnippetString); 498AssertEx.EqualOrDiff(output, lspSnippetString);
StackTraceExplorer\StackTraceExplorerTests.cs (11)
29AssertEx.NotNull(stackFrame); 36AssertEx.NotNull(reparsedFrame); 42AssertEx.NotNull(definition); 53AssertEx.NotNull(expectedSymbol); 59AssertEx.SetEqual(expectedDefinition.NameDisplayParts, definition.NameDisplayParts); 60AssertEx.SetEqual(expectedDefinition.Properties, definition.Properties); 61AssertEx.SetEqual(expectedDefinition.SourceSpans, definition.SourceSpans); 62AssertEx.SetEqual(expectedDefinition.Tags, definition.Tags); 803AssertEx.SetEqual(result.ParsedFrames, ignoredFrames); 854AssertEx.NotNull(frame); 859AssertEx.NotNull(definition);
SuggestedActions\SuggestedActionSourceProviderTests.cs (1)
23AssertEx.SetEqual(attributes.Select(a => a.Priority), SuggestedActionsSourceProvider.Orderings);
SymbolFinder\DependentTypeFinderTests.cs (4)
492AssertEx.SetEqual(immediateDerived.Select(d => d.Name), 500AssertEx.SetEqual(transitiveDerived.Select(d => d.Name), 545AssertEx.SetEqual(immediateImpls.Select(d => d.Name), 552AssertEx.SetEqual(transitiveImpls.Select(d => d.Name),
TextEditor\OpenDocumentTests.cs (1)
51AssertEx.SetEqual(documentIds, workspace.CurrentSolution.GetDocumentIdsWithFilePath(FilePath));
Utilities\PatternMatcherTests.cs (2)
118=> Roslyn.Test.Utilities.AssertEx.Equal(parts, BreakIntoWordParts(original)); 121=> Roslyn.Test.Utilities.AssertEx.Equal(parts, BreakIntoCharacterParts(original));
Utilities\StackFrameUtils.cs (1)
41AssertEx.NotNull(actual);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
FunctionResolverTestBase.cs (1)
31AssertEx.Equal(expectedSignatures, actualSignatures);
ParsingTestBase.cs (1)
105AssertEx.Equal(
VisualBasicParsingTests.cs (1)
38AssertEx.SetEqual(actualKeywordKinds, expectedKeywordKinds);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
EnumTests.cs (2)
33AssertEx.Equal(internalValues, externalValues); 34AssertEx.Equal(internalNames, externalNames);
Microsoft.CodeAnalysis.Features.Test.Utilities (14)
EditAndContinue\EditAndContinueTestVerifier.cs (9)
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( 469AssertEx.Equal(
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
396AssertEx.Equal(expectedRows, reader.GetEditAndContinueLogEntries(), itemInspector: EncLogRowToString);
EditAndContinue\EditScriptDescription.cs (2)
32=> AssertEx.Equal(expected, Edits.Select(e => e.GetDebuggerDisplay()), itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\""); 35=> AssertEx.Equal(expected, Edits.Select(e => e.Kind));
EditAndContinue\MatchingPair.cs (1)
43=> AssertEx.Equal(this, actual, itemSeparator: ",\r\n");
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
50AssertEx.Equal(expectedSortedResults, actualSortedResults);
Microsoft.CodeAnalysis.Features.UnitTests (166)
EditAndContinue\ActiveStatementsMapTests.cs (3)
145AssertEx.Equal( 195AssertEx.Empty(oldSpans); 251AssertEx.Equal(
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (3)
89AssertEx.Equal(["Offset=0 Ordinal=0 Kind=LambdaDisplayClass", "Offset=33 Ordinal=0 Kind=UserDefined"], debugInfo.InspectLocalSlots()); 90AssertEx.Equal(["Offset=43 Id=0#0 Closure=0"], debugInfo.InspectLambdas()); 91AssertEx.Equal(["Offset=0 Id=0#0"], debugInfo.InspectClosures());
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (110)
142AssertEx.Equal( 157AssertEx.Equal([$"P.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFileB.Path)}"], InspectDiagnostics(emitDiagnostics)); 223AssertEx.Equal( 332AssertEx.Equal( 520AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, moduleFile.Path, expectedErrorMessage)}"], InspectDiagnostics(emitDiagnostics)); 540AssertEx.SequenceEqual( 549AssertEx.SequenceEqual( 599AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 603AssertEx.Equal( 646AssertEx.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 659AssertEx.Equal( 717AssertEx.Equal( 725AssertEx.Equal( 881AssertEx.Empty(diagnostics1); 887AssertEx.Equal([$"{document2.FilePath}: (5,0)-(5,32): Error ENC2016: {string.Format(FeaturesResources.EditAndContinueDisallowedByProject, document2.Project.Name, "*message*")}"], InspectDiagnostics(emitDiagnostics)); 891AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 893AssertEx.Equal( 979AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 998AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 1002AssertEx.Equal( 1011AssertEx.Equal( 1050AssertEx.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)], 1057AssertEx.Empty(diagnostics); 1064AssertEx.Equal(["ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application)], 1082AssertEx.Empty(diagnostics); 1117AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 1172AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 1189AssertEx.Equal( 1210AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 1214AssertEx.Equal( 1223AssertEx.Equal( 1262AssertEx.Equal( 1305AssertEx.Equal( 1319AssertEx.Equal( 1384AssertEx.Equal( 1391AssertEx.Equal([projectId], result.ProjectsToRebuild); 1392AssertEx.Equal([projectId], result.ProjectsToRestart); 1424AssertEx.SequenceEqual(validChangeBeforeRudeEdit 1463AssertEx.Empty(diagnostics1); 1473AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 1475AssertEx.Equal( 1503AssertEx.Empty(diagnostics1); 1514AssertEx.Equal([$"{document2.FilePath}: (0,30)-(0,32): Error CS0266: {string.Format(CSharpResources.ERR_NoImplicitConvCast, "long", "int")}"], InspectDiagnostics(emitDiagnostics)); 1518AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 1520AssertEx.SequenceEqual( 1678AssertEx.Equal([generatedDocumentId], 1684AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id)); 1708AssertEx.Equal(documentKind == DocumentKind.Source ? new[] { documentId } : [], 1733AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], 1738AssertEx.Equal(documentKind == DocumentKind.Source ? [documentId, generatedDocumentId] : [generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id)); 1760AssertEx.Equal([generatedDocumentId], 1765AssertEx.Equal([generatedDocumentId], changedOrAddedDocuments.Select(d => d.Id)); 1807AssertEx.AreEqual("generated: text", generatedText); 1831AssertEx.Empty(await EditSession.GetChangedDocumentsAsync(oldProject, project, CancellationToken.None).ToImmutableArrayAsync(CancellationToken.None)); 1836AssertEx.Empty(changedOrAddedDocuments); 1903AssertEx.Equal( 1961AssertEx.Empty(diagnostics); 1969AssertEx.Empty(diagnostics); 1989AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)], 1998AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)], 2014AssertEx.Empty(diagnostics); 2023AssertEx.Equal( 2111AssertEx.Empty(diagnostics); 2115AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics)); 2143AssertEx.Empty(diagnostics1); 2147AssertEx.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics)); 2164AssertEx.Equal([$"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}"], InspectDiagnostics(emitDiagnostics)); 2168AssertEx.Equal( 2215AssertEx.Equal(requiredChecksum, CreateText(source1).GetChecksum()); 2314AssertEx.Empty(diagnostics); 2319AssertEx.Equal([$"test.csproj: (0,0)-(0,0): Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 2392AssertEx.Empty(diagnostics); 2403AssertEx.Empty(emitDiagnostics); 2484AssertEx.Empty(diagnostics1); 2509AssertEx.Equal(updates.Updates, pendingUpdate.Deltas); 2567AssertEx.SetEqual([moduleId], debuggingSession.GetTestAccessor().GetModulesPreparedForUpdate()); 2571AssertEx.SequenceEqual( 2579AssertEx.SequenceEqual( 2751AssertEx.SetEqual([0x02000002, 0x02000003, 0x02000004, 0x02000005], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X")); 2809AssertEx.Equal([0x02000002, 0x02000003], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X")); 2864AssertEx.Equal( 2928AssertEx.Equal(["3 -> 4"], lineUpdate.LineUpdates.Select(edit => $"{edit.OldLine} -> {edit.NewLine}")); 3143AssertEx.Empty(diagnostics); 3147AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}"], InspectDiagnostics(emitDiagnostics)); 3282AssertEx.Equal(readers, baselineReaders); 3292AssertEx.Equal(readers, baselineReaders); 3331AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-pdb", new FileNotFoundException().Message)}"], InspectDiagnostics(emitDiagnostics)); 3364AssertEx.Equal([$"proj.csproj: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-assembly", "*message*")}"], InspectDiagnostics(emitDiagnostics)); 3369AssertEx.Equal( 3433AssertEx.Equal( 3442AssertEx.Equal(trackedActiveSpans1, currentSpans); 3454AssertEx.Equal([adjustedActiveLineSpan1, adjustedActiveLineSpan2], currentSpans.Select(s => s.LineSpan)); 3506AssertEx.Equal( 3518AssertEx.Equal([activeLineSpan11, activeLineSpan12], currentSpans.Select(s => s.LineSpan)); 3624AssertEx.Equal( 3630AssertEx.Equal( 3652AssertEx.Equal( 3728AssertEx.Equal( 3742AssertEx.Equal([$"(9,18)-(9,22)"], baseSpans.Single().Select(s => s.LineSpan.ToString())); 3749AssertEx.Equal([$"(10,12)-(10,16)"], baseSpans.Single().Select(s => s.LineSpan.ToString())); 3828AssertEx.Equal( 3898AssertEx.Equal(["ENC0063: " + string.Format(FeaturesResources.Updating_a_0_around_an_active_statement_requires_restarting_the_application, CSharpFeaturesResources.catch_clause)], 3990AssertEx.Equal( 4011AssertEx.Equal( 4031AssertEx.Equal( 4047AssertEx.Equal( 4134AssertEx.Equal( 4147AssertEx.Equal( 4166AssertEx.Equal( 4244AssertEx.Equal(
EditAndContinue\EditSessionActiveStatementsTests.cs (22)
187AssertEx.Equal( 202AssertEx.Equal( 208AssertEx.Equal( 215AssertEx.Equal( 220AssertEx.Equal( 230AssertEx.Equal( 237AssertEx.Equal( 272AssertEx.Equal( 281AssertEx.Equal( 287AssertEx.Equal( 346AssertEx.Equal( 358AssertEx.Equal( 387AssertEx.Equal( 394AssertEx.Equal( 399AssertEx.Equal( 529AssertEx.Equal( 543AssertEx.Equal( 581AssertEx.Equal( 594AssertEx.Equal( 603AssertEx.Equal( 663AssertEx.Equal( 688AssertEx.Equal(
EditAndContinue\EmitSolutionUpdateResultsTests.cs (9)
147AssertEx.Equal( 206AssertEx.SetEqual([b], projectsToRestart); 209AssertEx.SetEqual([d], projectsToRebuild); 262AssertEx.SetEqual([a, b], projectsToRestart); 265AssertEx.SetEqual([c, d], projectsToRebuild); 291AssertEx.SetEqual([b], projectsToRestart); 294AssertEx.SetEqual([d], projectsToRebuild); 324AssertEx.SetEqual([r1, r2, r3, r4], projectsToRestart); 325AssertEx.SetEqual([p1, p2, p3, p4], projectsToRebuild);
EditAndContinue\RemoteEditAndContinueServiceTests.cs (12)
132AssertEx.Equal(new[] { documentId }, captureMatchingDocuments); 180AssertEx.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result); 181AssertEx.Equal([project.Id], runningProjects); 220AssertEx.Equal($"[{projectId}] Error ENC1001: test.cs(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error")}", Inspect(results.SyntaxError!)); 226AssertEx.Equal(new byte[] { 1, 2 }, delta.ILDelta); 227AssertEx.Equal(new byte[] { 3, 4 }, delta.MetadataDelta); 228AssertEx.Equal(new byte[] { 5, 6 }, delta.PdbDelta); 229AssertEx.Equal(new[] { 0x06000001 }, delta.UpdatedMethods); 230AssertEx.Equal(new[] { 0x02000001 }, delta.UpdatedTypes); 234AssertEx.Equal(new[] { new SourceLineUpdate(1, 2) }, lineEdit.LineUpdates); 259AssertEx.Equal(new[] { documentId, inProcOnlyDocumentId }, documentIds); 271AssertEx.Equal(activeSpans1, activeStatementSpanProvider(documentId, "test.cs", CancellationToken.None).AsTask().Result);
EditAndContinue\RudeEditDiagnosticTests.cs (1)
116AssertEx.Equal(allKinds, allKinds.Distinct());
EditAndContinue\TraceLogTests.cs (1)
29AssertEx.Equal(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (2)
57AssertEx.Equal( 73AssertEx.Equal(
FindUsages\DefinitionItemFactoryTests.cs (3)
48AssertEx.Equal( 70=> AssertEx.SetEqual( 78=> AssertEx.Equal(expected, actual, message: PropertyMessage(propertyName), itemInspector: Inspect);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (202)
CodeLens\AbstractCodeLensTests.cs (4)
39AssertEx.NotNull(actualCodeLenses); 49AssertEx.NotNull(resolvedCodeLens?.Command); 66AssertEx.NotNull(actualCodeLenses); 89AssertEx.NotNull(actualCodeLenses);
CodeLens\CSharpCodeLensTests.cs (2)
391AssertEx.NotNull(data); 421AssertEx.Empty(actualCodeLenses);
Completion\CompletionFeaturesTests.cs (11)
93AssertEx.NotNull(results); 421AssertEx.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters); 467AssertEx.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters); 477AssertEx.SetEqual(nonDefaultCharArray, item.CommitCharacters); 483AssertEx.SetEqual(nonDefaultCharArray, results.ItemDefaults.CommitCharacters); 489AssertEx.SetEqual(defaultCharArray, item.CommitCharacters); 652AssertEx.NotNull(results); 755AssertEx.NotNull(results); 790AssertEx.Empty(results.ItemDefaults.CommitCharacters); 806AssertEx.SetEqual(defaultCharArray, results.ItemDefaults.CommitCharacters); 1082AssertEx.NotNull(results);
Completion\CompletionTests.cs (1)
1469AssertEx.NotNull(results);
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (2)
152AssertEx.SetEqual(expectedNames, actualNames); 195AssertEx.Fail($"{Methods.WorkspaceDidChangeConfigurationName} is registered twice.");
Diagnostics\AbstractPullDiagnosticTestsBase.cs (3)
109AssertEx.NotNull(diagnostics); 146AssertEx.NotNull(returnedResult); 267AssertEx.NotNull(diagnostics);
Diagnostics\AdditionalFileDiagnosticsTests.cs (4)
38AssertEx.Equal( 66AssertEx.Empty(results[0].Diagnostics); 69AssertEx.Empty(results[2].Diagnostics); 112AssertEx.Empty(results2);
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (2)
32AssertEx.SetEqual(expectedBuildOnlyDiagnosticIds, result.Ids); 47AssertEx.SetEqual(expectedBuildOnlyDiagnosticIds, result.Ids);
Diagnostics\PullDiagnosticTests.cs (68)
356AssertEx.Empty(results[0].Diagnostics); 472AssertEx.All(results.Single().Diagnostics, d => Assert.Equal("CS1513", d.Code)); 476AssertEx.All(results.Single().Diagnostics, d => Assert.Equal("CSProj1", ((VSDiagnostic)d).Projects.Single().ProjectName)); 567AssertEx.Empty(results.Single().Diagnostics); 689var diagnostic = AssertEx.Single(results.Single().Diagnostics); 753AssertEx.All(results.Single().Diagnostics, d => Assert.False(d.Tags!.Contains(DiagnosticTag.Unnecessary))); 846AssertEx.Empty(results.Single().Diagnostics); 928AssertEx.Empty(results[1].Diagnostics); 929AssertEx.Empty(results[2].Diagnostics); 950AssertEx.Empty(results[1].Diagnostics); 951AssertEx.Empty(results[2].Diagnostics); 961AssertEx.Empty(results2); 970AssertEx.Empty(results3[0].Diagnostics); 992AssertEx.Empty(results[1].Diagnostics); 993AssertEx.Empty(results[2].Diagnostics); 1004AssertEx.Empty(results2[0].Diagnostics); 1014AssertEx.Empty(results3); 1035AssertEx.Empty(results[0].Diagnostics); 1180AssertEx.Empty(results.Single().Diagnostics); 1228AssertEx.Equal( 1235AssertEx.Equal( 1249AssertEx.Equal( 1256AssertEx.Equal( 1269AssertEx.Equal( 1276AssertEx.Equal([], workspaceResults3.Select(Inspect)); 1333AssertEx.Empty(results[1].Diagnostics); 1399AssertEx.Empty(results[0].Diagnostics); 1401AssertEx.Empty(results[2].Diagnostics); 1417AssertEx.Empty(results[1].Diagnostics); 1418AssertEx.Empty(results[2].Diagnostics); 1444AssertEx.Empty(results[1].Diagnostics); 1445AssertEx.Empty(results[2].Diagnostics); 1466AssertEx.Empty(results[1].Diagnostics); 1467AssertEx.Empty(results[2].Diagnostics); 1477AssertEx.Empty(results2[0].Diagnostics); 1495AssertEx.Empty(results[1].Diagnostics); 1496AssertEx.Empty(results[2].Diagnostics); 1514AssertEx.Empty(results2[1].Diagnostics); 1516AssertEx.Empty(results2[2].Diagnostics); 1555AssertEx.Empty(results[1].Diagnostics); 1556AssertEx.Empty(results[2].Diagnostics); 1590AssertEx.NotNull(results); 1604AssertEx.NotNull(results); 1610AssertEx.Empty(results[0].Diagnostics); 1614AssertEx.Empty(results[1].Diagnostics); 1663AssertEx.NotNull(results); 1667AssertEx.Empty(results[1].Diagnostics); 1670AssertEx.Empty(results[3].Diagnostics); 1673AssertEx.Empty(results[5].Diagnostics); 1684AssertEx.NotNull(results); 1694AssertEx.Empty(results[1].Diagnostics); 1698AssertEx.Empty(results[2].Diagnostics); 1732AssertEx.NotNull(results); 1735AssertEx.Empty(results[1].Diagnostics); 1737AssertEx.Empty(results[3].Diagnostics); 1748AssertEx.NotNull(results); 1753AssertEx.Empty(results[0].Diagnostics); 1797AssertEx.NotNull(results); 1799AssertEx.Empty(results[0].Diagnostics); 1814AssertEx.NotNull(results); 1854AssertEx.NotNull(results); 1872AssertEx.NotNull(results); 1906AssertEx.NotNull(results); 1924AssertEx.NotNull(results); 2081AssertEx.Empty(results[1].Diagnostics); 2102AssertEx.Empty(results[0].Diagnostics); 2103AssertEx.Empty(results[1].Diagnostics); 2127AssertEx.Empty(results[1].Diagnostics);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (2)
31AssertEx.Empty(results[0].Diagnostics); 48AssertEx.Empty(results[0].Diagnostics);
DocumentChanges\DocumentChangesTests.cs (6)
84AssertEx.NotNull(document); 205AssertEx.NotNull(document); 283AssertEx.NotNull(document); 322AssertEx.NotNull(document); 362AssertEx.NotNull(document); 446AssertEx.NotNull(document);
FormatNewFile\FormatNewFileTests.cs (1)
65AssertEx.EqualOrDiff(expected, result);
InlayHint\AbstractInlayHintTests.cs (5)
37AssertEx.NotNull(actualInlayHints); 50AssertEx.Equal(name, matchingInlayHint.Label.First.TrimEnd(':')); 52AssertEx.NotNull(matchingInlayHint.Kind); 57AssertEx.NotNull(matchingInlayHint.TextEdits); 61AssertEx.NotNull(resolvedInlayHint?.ToolTip);
InlayHint\CSharpInlayHintTests.cs (1)
135AssertEx.NotNull(data);
InlineCompletions\InlineCompletionsTests.cs (2)
278AssertEx.NotNull(result); 282AssertEx.NotNull(item.Range);
MapCode\MapCodeTests.cs (1)
113AssertEx.NotNull(results);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
241AssertEx.NotNull(miscDoc); 285AssertEx.NotNull(miscDoc);
OnAutoInsert\OnAutoInsertTests.cs (1)
412AssertEx.NotNull(result);
RelatedDocuments\RelatedDocumentsTests.cs (2)
43AssertEx.NotNull(spans); 133AssertEx.SetEqual([.. project.Documents.Skip(1).Select(d => d.FilePath)], results.SelectMany(r => r.FilePaths));
SemanticTokens\SemanticTokensRangesTests.cs (1)
68AssertEx.Equal(ConvertToReadableFormat(testLspServer.ClientCapabilities, expectedResults.Data), ConvertToReadableFormat(testLspServer.ClientCapabilities, results.Data));
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));
SpellCheck\SpellCheckTests.cs (8)
351AssertEx.Empty(results[1].Ranges); 424AssertEx.Empty(results[1].Ranges); 436AssertEx.Empty(results[1].Ranges); 462AssertEx.Empty(results[1].Ranges); 498AssertEx.Empty(results[1].Ranges); 551AssertEx.Empty(results[1].Ranges); 619AssertEx.NotNull(spans); 640AssertEx.NotNull(spans);
Symbols\WorkspaceSymbolsTests.cs (1)
211AssertEx.Empty(results);
UriTests.cs (12)
53AssertEx.NotNull(document); 79AssertEx.NotNull(document); 111AssertEx.NotNull(document); 122AssertEx.NotNull(document); 150AssertEx.NotNull(fileDocument); 157AssertEx.NotNull(gitDocument); 186AssertEx.NotNull(lspDocument); 204AssertEx.NotNull(encodedDocument); 238AssertEx.NotNull(lspDocument); 252AssertEx.NotNull(lowerCaseDocument); 286AssertEx.NotNull(lspDocument); 311AssertEx.NotNull(document);
VSTypeScriptHandlerTests.cs (2)
72AssertEx.Empty(response); 166AssertEx.NotNull(context.Document);
Workspaces\LspWorkspaceManagerTests.cs (36)
39AssertEx.NotNull(lspDocument); 45AssertEx.NotNull(lspDocument); 87AssertEx.NotNull(firstDocument); 92AssertEx.NotNull(firstDocumentWithChange); 93AssertEx.NotNull(secondDocumentUnchanged); 126AssertEx.NotNull(openedDocument); 131AssertEx.NotNull(secondDocument); 164AssertEx.NotNull(openedDocument); 197AssertEx.NotNull(openedDocument); 231AssertEx.NotNull(lspDocument); 256AssertEx.NotNull(miscDocument); 263AssertEx.NotNull(miscDocument); 272AssertEx.NotNull(document); 319AssertEx.NotNull(hostSolution); 381AssertEx.NotNull(firstDocument); 386AssertEx.NotNull(secondDocument); 395AssertEx.NotNull(changedFirstDocument); 436AssertEx.NotNull(firstDocument); 441AssertEx.NotNull(secondDocument); 451AssertEx.NotNull(secondDocumentChangedProject); 487AssertEx.NotNull(documentServerTwo); 507AssertEx.NotNull(documentServerOne); 510AssertEx.NotNull(documentServerTwo); 527AssertEx.NotNull(lspDocument); 552AssertEx.NotNull(document1); 571AssertEx.NotNull(document1); 589AssertEx.NotNull(document1); 610AssertEx.NotNull(document); 624AssertEx.NotNull(document); 649AssertEx.NotNull(originalDocument); 660AssertEx.NotNull(newDocument); 708AssertEx.NotNull(sourceGeneratedDocument); 725AssertEx.NotNull(sourceGeneratedDocument); 741AssertEx.NotNull(sourceGeneratedDocument); 748AssertEx.NotNull(sourceGeneratedDocument as SourceGeneratedDocument); 759AssertEx.NotNull(lspDocument);
Workspaces\SourceGeneratedDocumentTests.cs (14)
37AssertEx.NotNull(text); 53AssertEx.NotNull(text); 77AssertEx.NotNull(text?.Text); 101AssertEx.NotNull(hover); 122AssertEx.NotNull(text); 138AssertEx.NotNull(text); 144AssertEx.NotNull(secondRequest); 167AssertEx.NotNull(text); 183AssertEx.NotNull(secondRequest); 190AssertEx.NotNull(secondRequest); 214AssertEx.NotNull(text); 223AssertEx.NotNull(secondRequest); 241AssertEx.NotNull(text); 267AssertEx.NotNull(text);
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
38AssertEx.NotNull(deserialized);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
ServerInitializationTests.cs (2)
65AssertEx.NotNull(capabilities); 66AssertEx.NotNull(capabilities.OnAutoInsertProvider);
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationOptionsReaderTests.cs (1)
35AssertEx.NotNull(originalPdbReader);
DeterministicKeyBuilderTests.cs (1)
96AssertEx.NotNull(compilation);
RebuildCommandLineTests.cs (1)
110AssertEx.NotNull(compilation);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
TelemetryLoggerTests.cs (3)
102AssertEx.Equal(new[] 127AssertEx.Equal(new[] 135AssertEx.Equal(new[]
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
152AssertEx.SetEqual(new[] { "MultiModule.dll", "mod2.netmodule", "mod3.netmodule" }, scFiles.Select(p => Path.GetFileName(p)));
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
RuntimeMetadataReferenceResolverTests.cs (3)
38AssertEx.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly1.Path, assembly2.Path); 44AssertEx.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly2.Path); 59AssertEx.SetEqual(actualReferences.SelectAsArray(r => r.FilePath), assembly2.Path);
ScriptOptionsTests.cs (1)
114AssertEx.Equal(new[] { "", "blah.", "b\0lah", ".blah", "b\0lah", ".blah" }, options.Imports);
Microsoft.CodeAnalysis.Test.Utilities (107)
Assert\AssertEx.cs (2)
893AssertEx.Equal( 901AssertEx.Equal(
Assert\AssertXml.cs (1)
102if (AssertEx.TryGenerateExpectedSourceFileAndGetDiffLink(actualString, expectedString.Count(c => c == '\n') + 1, expectedValueSourcePath, expectedValueSourceLine, out var link))
Compilation\CompilationDifference.cs (6)
68AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine); 79AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine); 102AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: callerPath, expectedValueSourceLine: callerLine); 164AssertEx.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\""); 170AssertEx.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n"); 175AssertEx.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\CompilationTestDataExtensions.cs (1)
40AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL, actualIL, escapeQuotes: false, expectedValueSourcePath: expectedValueSourcePath, expectedValueSourceLine: expectedValueSourceLine);
Compilation\OperationTreeVerifier.cs (1)
71AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedOperationTree, actual);
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);
InstrumentationChecker.cs (3)
76AssertEx.Fail(output.ToStringAndFree()); 211AssertEx.Fail(output.ToStringAndFree()); 338AssertEx.SequenceEqual(expectedSnippets, actualSnippets, new SnippetComparer(), $"Validation of method {method} failed.");
Metadata\MetadataReaderUtils.cs (5)
470AssertEx.SetEqual(metadataReader.TypeDefinitions.Select(t => metadataReader.Dump(t)), types); 471AssertEx.SetEqual(metadataReader.MethodDefinitions.Select(t => metadataReader.Dump(t)), methods); 473AssertEx.SetEqual( 511AssertEx.Equal(ThrowNull, il); 522AssertEx.NotEqual(ThrowNull, il);
Metadata\MetadataValidation.cs (3)
95AssertEx.Equal(expectedBlob, actualBlob); 126AssertEx.Equal(expectedBlob, actualBlob); 192AssertEx.AssertResultsEqual(mdw1.ToString(), mdw2.ToString());
Mocks\MoqExtensions.cs (2)
16AssertEx.Equal( 22AssertEx.Equal(expectedInvocations[i].Args, invocations[i].Arguments);
Mocks\TestMissingMetadataReferenceResolver.cs (1)
57AssertEx.Equal(expected, ResolutionAttempts.Select(a => a.ToString()));
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
350AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedMessage, actualMessage);
ReflectionAssert.cs (1)
23AssertEx.SetEqual(expectedFieldsAndProperties, fieldsAndProps, itemSeparator: "\r\n");
Syntax\TokenUtilities.cs (2)
49AssertEx.Fail($"Unexpected token. Actual '{actualAll}' Expected '{expectedAll}'\r\nActual:\r\n{actual}"); 57AssertEx.Fail(@"Wrong token count. Expected '{0}', Actual '{1}', Expected Text: '{2}', Actual Text: '{3}'",
Microsoft.CodeAnalysis.UnitTests (197)
AnalyzerAssemblyLoaderTests.cs (4)
247analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 249analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 764analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 766analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message);
Analyzers\AnalyzerConfigTests.cs (17)
45AssertEx.SetEqual( 52AssertEx.SetEqual( 79AssertEx.Equal( 85AssertEx.Equal( 91AssertEx.Equal( 170AssertEx.SetEqual( 206AssertEx.SetEqual( 241AssertEx.SetEqual( 254AssertEx.SetEqual( 268AssertEx.SetEqual( 280AssertEx.SetEqual( 304AssertEx.SetEqual( 318AssertEx.SetEqual( 335AssertEx.SetEqual( 355AssertEx.SetEqual( 365AssertEx.SetEqual( 1245AssertEx.SetEqual(
Analyzers\AnalyzerFileReferenceTests.cs (5)
327AssertEx.Equal($""" 356AssertEx.Equal($""" 371AssertEx.SetEqual(new[] 408AssertEx.SetEqual(new[] 430AssertEx.SetEqual(new[]
AssemblyUtilitiesTests.cs (4)
76AssertEx.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase); 89AssertEx.SetEqual(new[] { satelliteFile }, results, StringComparer.OrdinalIgnoreCase); 103AssertEx.SetEqual(new[] { satelliteFileDE, satelliteFileFR }, results, StringComparer.OrdinalIgnoreCase); 133AssertEx.SetEqual(new[] { "netstandard", "Gamma" }, results);
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\SegmentedCollectionsMarshalTests.cs (3)
509AssertEx.NotNull(list); 640AssertEx.NotNull(set); 771AssertEx.NotNull(dictionary);
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);
Diagnostics\CompilationWithAnalyzersTests.cs (1)
52AssertEx.Equal(new[] { d1 }, filtered);
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);
FileSystem\PathUtilitiesTests.cs (3)
436AssertEx.Equal(output, PathUtilities.CollapseWithForwardSlash(input.AsSpan())); 448AssertEx.Equal(output, PathUtilities.NormalizeDriveLetter(input)); 460AssertEx.Equal(input, PathUtilities.NormalizeDriveLetter(input));
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\MetadataHelpersTests.cs (1)
258AssertEx.Equal(expectedArrayRanks, decodedName.ArrayRanks);
MetadataReferences\MetadataReferencePropertiesTests.cs (1)
26AssertEx.Equal(new[] { "\\/[.'\":_)??\t\n*#$@^%*&)", "goo" }, m.Aliases);
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);
PEWriter\InstructionOperandTypesTests.cs (2)
46AssertEx.Equal(OneByteOperandTypes, InstructionOperandTypes.OneByte); 47AssertEx.Equal(TwoByteOperandTypes, InstructionOperandTypes.TwoByte);
SourceFileResolverTest.cs (2)
37AssertEx.Fail("Didn't throw"); 60AssertEx.Fail("Didn't throw");
Symbols\SpecialTypeTests.cs (7)
15AssertEx.Equal("0", ((ExtendedSpecialType)SpecialType.None).ToString()); 16AssertEx.Equal("System_Object", ((ExtendedSpecialType)1).ToString()); 17AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.Count).ToString()); 18AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.First).ToString()); 19AssertEx.Equal("System_ReadOnlySpan_T", ((ExtendedSpecialType)InternalSpecialType.System_ReadOnlySpan_T).ToString()); 20AssertEx.Equal("System_Reflection_MethodInfo", ((ExtendedSpecialType)(InternalSpecialType.NextAvailable - 1)).ToString()); 21AssertEx.Equal("52", ((ExtendedSpecialType)InternalSpecialType.NextAvailable).ToString());
Text\StringTextTest.cs (4)
238AssertEx.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum); 253AssertEx.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum); 265AssertEx.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum); 280AssertEx.Equal(CryptographicHashProvider.ComputeSha1(bytes), checksum);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (36)
CommandLineIVTTests.vb (5)
47AssertEx.AssertEqualToleratingWhitespaceDifferences($" 148AssertEx.AssertEqualToleratingWhitespaceDifferences($" 249AssertEx.AssertEqualToleratingWhitespaceDifferences($" 360AssertEx.AssertEqualToleratingWhitespaceDifferences($" 478AssertEx.AssertEqualToleratingWhitespaceDifferences($"
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"}, 2062AssertEx.SetEqual({"default", "9", "10", "11", "12", "14", "15", "15.3", "15.5", "16", "16.9", "17.13", "latest"}, 2088AssertEx.SetEqual(versions, errorCodes) 2331AssertEx.Equal({"a", "b", "c"}, 2338AssertEx.Equal({" ", " b "}, 2373AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2377AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2446AssertEx.Equal({folder.Path + "\c.cpp", folder.Path + "\b\B_e.vb"}, resolvedSourceFiles) 2480AssertEx.Equal({"a", "b", "c"}, 2487AssertEx.Equal({" ", " b "}, 3204AssertEx.Equal(File.ReadAllBytes(sl.Path), blob) 3233AssertEx.Equal(File.ReadAllBytes(sl.Path), blob) 3247AssertEx.Equal(parsedArgs.SourceFiles, parsedArgs.EmbeddedFiles) 3248AssertEx.Equal( 3254AssertEx.Equal( 3260AssertEx.Equal( 3266AssertEx.Equal( 3272AssertEx.Equal( 3278AssertEx.Equal( 3284AssertEx.Equal( 3290AssertEx.Equal( 3566AssertEx.Equal(ImmutableArray.Create(Of String)(), args.KeyFileSearchPaths) 3578AssertEx.Equal(ImmutableArray.Create(sdkPath), parser.ReferencePaths) 3597AssertEx.Equal(ImmutableArray(Of String).Empty, parser.ReferencePaths) 3606AssertEx.Equal(ImmutableArray.Create(sdkDir.Path), parser.ReferencePaths) 5790AssertEx.Equal( 5794AssertEx.Equal(expectedOptions, actualOrdered.Select(Function(entry) entry.Value))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (170)
Attributes\AssemblyAttributes.vb (27)
795AssertEx.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8}, 799AssertEx.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D}, 826AssertEx.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8}, 830AssertEx.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D}, 857AssertEx.Equal(New Byte() {&H24, &H22, &H3, &HC3, &H94, &HD5, &HC2, &HD9, &H99, &HB3, &H6D, &H59, &HB2, &HCA, &H23, &HBC}, 861AssertEx.Equal(New Byte() {&H8D, &HFE, &HBF, &H49, &H8D, &H62, &H2A, &H88, &H89, &HD1, &HE, &H0, &H9E, &H29, &H72, &HF1}, 888AssertEx.Equal(New Byte() {&H6C, &H9C, &H3E, &HDA, &H60, &HF, &H81, &H93, &H4A, &HC1, &HD, &H41, &HB3, &HE9, &HB2, &HB7, &H2D, &HEE, &H59, &HA8}, 892AssertEx.Equal(New Byte() {&H7F, &H28, &HEA, &HD1, &HF4, &HA1, &H7C, &HB8, &HC, &H14, &HC0, &H2E, &H8C, &HFF, &H10, &HEC, &HB3, &HC2, &HA5, &H1D}, 918AssertEx.Equal(New Byte() {&HA2, &H32, &H3F, &HD, &HF4, &HB8, &HED, &H5A, &H1B, &H7B, &HBE, &H14, &H4F, &HEC, &HBF, &H88, &H23, &H61, &HEB, &H40, &HF7, &HF9, &H46, &HEF, &H68, &H3B, &H70, &H29, &HCF, &H12, &H5, &H35}, 922AssertEx.Equal(New Byte() {&HCC, &HAE, &HA0, &HB4, &H9E, &HAE, &H28, &HE0, &HA3, &H46, &HE9, &HCF, &HF3, &HEF, &HEA, &HF7, 949AssertEx.Equal(New Byte() {&HB6, &H35, &H9B, &HBE, &H82, &H89, &HFF, &H1, &H22, &H8B, &H56, &H5E, &H9B, &H15, &H5D, &H10, 955AssertEx.Equal(New Byte() {&H45, &H5, &H2E, &H90, &H9B, &H61, &HA3, &HF8, &H60, &HD2, &H86, &HCB, &H10, &H33, &HC9, &H86, 983AssertEx.Equal(New Byte() {&H5F, &H4D, &H7E, &H63, &HC9, &H87, &HD9, &HEB, &H4F, &H5C, &HFD, &H96, &H3F, &H25, &H58, &H74, 990AssertEx.Equal(New Byte() {&H79, &HFE, &H97, &HAB, &H8, &H8E, &HDF, &H74, &HC2, &HEF, &H84, &HBB, &HFC, &H74, &HAC, &H60, 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.vb (3)
427AssertEx.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(get_AP.GetAttributes())) 435AssertEx.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(set_AP.GetAttributes())) 4396AssertEx.NotEqual(nullArray, emptyArray)
Attributes\AttributeTests_Conditional.vb (4)
205AssertEx.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(eventE.AddMethod.GetAttributes())) 206AssertEx.Equal({"CompilerGeneratedAttribute"}, GetAttributeNames(eventE.RemoveMethod.GetAttributes())) 241AssertEx.SetEqual({"PreservedAppliedAttribute", 266AssertEx.SetEqual(expectedAttributeNames, actualAttributeNames)
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))
Attributes\AttributeTests_Tuples.vb (2)
247AssertEx.Equal(srcMembers, peMembers) 437AssertEx.Equal(expectedElementNames, actualElementNames)
Attributes\AttributeTests_WellKnownAttributes.vb (3)
724AssertEx.SetEqual({"System.SerializableAttribute", "BobAttribute"}, typeC.GetAttributes().Select(Function(a) a.ToString())) 738AssertEx.SetEqual({"System.SerializableAttribute", "BobAttribute"}, typeC1.GetAttributes().Select(Function(a) a.ToString())) 747AssertEx.SetEqual({"BobAttribute"}, typeC2.GetAttributes().Select(Function(a) a.ToString()))
Attributes\InternalsVisibleToAndStrongNameTests.vb (5)
393AssertEx.Equal(identity.PublicKey, s_publicKey) 426AssertEx.Equal(identity.PublicKey, s_publicKey) 1143AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp.Assembly.Identity.PublicKeyToken) 1161AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp2.Assembly.Identity.PublicKeyToken) 1168AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp3.Assembly.Identity.PublicKeyToken)
CodeGen\CodeGenClosureLambdaTests.vb (6)
3492AssertEx.Equal({ 3500AssertEx.SetEqual({ 3509AssertEx.SetEqual({ 3518AssertEx.SetEqual({ 3527AssertEx.SetEqual({ 3581AssertEx.SetEqual({
CodeGen\CodeGenLateBound.vb (1)
2399AssertEx.Equal(
CodeGen\CodeGenTests.vb (1)
10669AssertEx.SetEqual({"<Module>",
CodeGen\CodeGenTuples.vb (13)
11150AssertEx.SetEqual(xSymbol.GetMembers().OfType(Of FieldSymbol)().Select(Function(f) f.Name), 14927AssertEx.Equal({ 14970AssertEx.Equal({ 15011AssertEx.Equal({ 15044AssertEx.Equal({ 15062AssertEx.Equal({ 15281AssertEx.Equal(baseLine, symbols.Select(Function(s) s.ToTestDisplayString())) 16302AssertEx.Equal({".ctor", "Item1", "Item2", "ToString"}, 16304AssertEx.Equal({".ctor", "Item1", "a2", "Item2", "b2", "ToString"}, 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()))
CodeGen\CodeGenWinMdDelegates.vb (2)
38AssertEx.SetEqual((From s In actualMembers Select s.Name), expectedMembers) 93AssertEx.SetEqual((From member In nodeSymbol.GetMembers() Select member.Name),
Emit\CompilationEmitTests.vb (33)
654AssertEx.Equal(expectedMethods, 666AssertEx.Equal( 689AssertEx.Empty(attributes.Select(Function(a) MetadataReaderUtils.Dump(reader, reader.GetCustomAttribute(a).Constructor))) 706AssertEx.Equal( 1071AssertEx.Equal(image1, image2) 1073AssertEx.NotEqual(image1, image2) 1478AssertEx.SetEqual( 1482AssertEx.Equal( 1496AssertEx.SetEqual( 1510AssertEx.SetEqual( 1514AssertEx.Equal( 1528AssertEx.SetEqual( 1544AssertEx.SetEqual( 1548AssertEx.SetEqual( 1558AssertEx.SetEqual( 1595AssertEx.SetEqual( 1599AssertEx.Equal( 1612AssertEx.SetEqual( 1616AssertEx.Equal( 1631AssertEx.SetEqual( 1635AssertEx.SetEqual( 1673AssertEx.SetEqual( 1677AssertEx.Equal( 1691AssertEx.SetEqual( 1695AssertEx.Equal( 1711AssertEx.SetEqual( 1715AssertEx.SetEqual( 1743AssertEx.SetEqual( 1747AssertEx.SetEqual( 2463AssertEx.Equal(Of String)("C.dll", m.GlobalNamespace.ContainingModule.ToString) 2599AssertEx.Fail("Unable to find type:" + typeName) 2615AssertEx.Fail("Unable to find method:" + methodName) 4440AssertEx.Equal(expectedNames, actualNames)
Emit\DeterministicTests.vb (5)
63AssertEx.Equal(result1, result2) 67AssertEx.Equal(result3, result4) 71AssertEx.Equal(result5, result6) 85AssertEx.Equal(result1, result2) 89AssertEx.Equal(result3, result4)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (2)
842AssertEx.Equal(expected, reader.GetSpans(methodData.Blob).Select(Function(s) $"({s.StartLine},{s.StartColumn})-({s.EndLine},{s.EndColumn})")) 855AssertEx.Equal(expected, actual)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
352AssertEx.Equal(expected, reader.GetAssemblyReferences().Select(Function(aref) $"{reader.GetString(aref.Name)}, {aref.Version}"))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (7)
4015AssertEx.Equal( 4028AssertEx.Equal( 7073AssertEx.Equal( 7420AssertEx.Equal( 7429AssertEx.Equal( 7574AssertEx.Equal( 8178AssertEx.Equal(
Emit\EditAndContinue\EditAndContinueTestBase.vb (9)
212AssertEx.Equal( 222AssertEx.Equal( 232AssertEx.Equal( 242AssertEx.Equal( 253AssertEx.Equal(expectedNames, actualNames) 264AssertEx.Equal(expectedNames, actualNames) 275AssertEx.Equal(expectedNames, entityHandles.Select( 293AssertEx.Equal(expectedValue, attributeData) 302AssertEx.Equal(expectedValue, attributeData)
Emit\EditAndContinue\EditAndContinueTests.vb (4)
4493AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedIL0, actualIL0) 4817AssertEx.Equal({"[0x23000002] 0x0000020d.0x0000021a"}, DumpTypeRefs(md1.Reader)) 4837AssertEx.Equal({"[0x23000003] 0x00000256.0x00000263"}, DumpTypeRefs(md2.Reader)) 4909AssertEx.Equal({"[0x23000003] 0x00000289.0x00000296"}, DumpTypeRefs(md2.Reader))
Emit\EmitMetadata.vb (3)
101AssertEx.AssertEqualToleratingWhitespaceDifferences(" 336AssertEx.Equal( 545AssertEx.SetEqual({"CompilationRelaxationsAttribute", "RuntimeCompatibilityAttribute", "DebuggableAttribute", "DebuggingModes", "Object", "Array"}, list)
PDB\PDBAsyncTests.vb (1)
901AssertEx.AssertEqualToleratingWhitespaceDifferences("
PDB\PDBIteratorTests.vb (1)
562AssertEx.AssertEqualToleratingWhitespaceDifferences("
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)
PDB\TypeDefinitionDocumentTests.vb (1)
363AssertEx.Equal(expected, actual, itemSeparator:=", ", itemInspector:=Function(i) $"(""{i.Item1}"", ""{i.Item2}"")")
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
53AssertEx.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Of DebugDirectoryEntryType)(Function(e) e.Type))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (11)
CommandLineRunnerTests.vb (11)
36AssertEx.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + " 48AssertEx.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + " 65AssertEx.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + " 75AssertEx.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + " 89AssertEx.AssertEqualToleratingWhitespaceDifferences(s_logoAndHelpPrompt + " 113AssertEx.AssertEqualToleratingWhitespaceDifferences( 147AssertEx.AssertEqualToleratingWhitespaceDifferences( 168AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()) 172AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()) 176AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString()) 180AssertEx.AssertEqualToleratingWhitespaceDifferences(s_compilerVersion, runner.Console.Out.ToString())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (135)
Binding\BindingCollectionInitializerTests.vb (1)
1850AssertEx.Equal({"Sub X.Add(x As System.Collections.Generic.List(Of System.Byte))",
Binding\LookupTests.vb (33)
1625AssertEx.Equal({"System.ComponentModel", "System.Windows.Forms.ComponentModel"}, 1629AssertEx.Equal({"System.ComponentModel", "System.Windows.Forms.ComponentModel"}, 1675AssertEx.Equal({"System.Diagnostics", "Windows.Foundation.Diagnostics"}, 1679AssertEx.Equal({"System.Diagnostics", "Windows.Foundation.Diagnostics"}, 1744AssertEx.Equal({"NS1.NS3", "NS2.NS3"}, 1748AssertEx.Equal({"NS1.NS3", "NS2.NS3"}, 1931AssertEx.Equal({"NS1.NS6.NS7.T1", "NS2.NS6.NS7.T1", "NS4.NS6.NS7.T1", "NS5.NS6.NS7.T1"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 1939AssertEx.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS4.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 1947AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS4.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 1949AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, 1953AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, 1963AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 1972AssertEx.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS4.NS6.NS7", "NS5.NS6.NS7", "NS9.NS6.NS7"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 1980AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2115AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, 2119AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS4.NS6", "NS5.NS6", "NS9.NS6"}, 2243AssertEx.Equal({"Sub NS1.NS6.NS7.T1.M1()", "Sub NS2.NS6.NS7.T1.M1()", "Sub NS5.NS6.NS7.T1.M1()"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2250AssertEx.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2257AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2259AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2263AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2356AssertEx.Equal({"Sub NS1.NS6.NS7.T1.M1(x As System.Int32)", "Sub NS1.NS6.NS7.T1.M1(x As System.Int64)"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2370AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2374AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2471AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2475AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2601AssertEx.Equal({"NS1.NS6.NS7.Module1.T1", "NS2.NS6.NS7.Module1.T1", "NS5.NS6.NS7.Module1.T1"}, info3.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2608AssertEx.Equal({"NS1.NS6.NS7", "NS2.NS6.NS7", "NS5.NS6.NS7"}, info2.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2615AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS5.NS6"}, info1.CandidateSymbols.AsEnumerable().Select(Function(s) s.ToTestDisplayString()).OrderBy(Function(s) s).ToArray()) 2617AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2621AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2748AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"}, 2752AssertEx.Equal({"NS1.NS6", "NS2.NS6", "NS3.NS6", "NS5.NS6", "NS9.NS6"},
Compilation\CompilationAPITests.vb (27)
384AssertEx.Equal(Of Boolean)(False, comp.IsCaseSensitive) 564AssertEx.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(compCollection1.References)) 566AssertEx.Equal(Of Integer)(3, Enumerable.Count(Of MetadataReference)(c2.References)) 570AssertEx.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(compCollection2.References)) 572AssertEx.Equal(Of Integer)(3, Enumerable.Count(Of MetadataReference)(c3.References)) 576AssertEx.Equal(Of Integer)(2, Enumerable.Count(Of AssemblyIdentity)(RefAsm_Names)) 587AssertEx.Equal(Of Integer)(0, Enumerable.Count(Of MetadataReference)(c2.References)) 799AssertEx.Equal(Of Boolean)(False, b1) 802AssertEx.Equal(Of Boolean)(True, b1) 805AssertEx.Equal(Of Boolean)(False, comp.ContainsSyntaxTree(xt)) 816AssertEx.Equal(Of Integer)(1, comp.SyntaxTrees.Length) 817AssertEx.Equal(Of String)("Object", comp.ObjectType.Name) 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)
Compilation\ReferenceManagerTests.vb (5)
565AssertEx.SetEqual({"mscorlib 4.0", "RefLibV1 1.0", "Lib 2.0"}, reader.DumpAssemblyReferences()) 1497AssertEx.Equal(moduleReferences1, moduleReferences2) 1718AssertEx.Equal( 1753AssertEx.Equal( 2052AssertEx.Equal(
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (2)
1942AssertEx.Equal(Of Accessibility)(Accessibility.NotApplicable, symLabel.DeclaredAccessibility) 2628AssertEx.Equal(Of ISymbol)(nsSymbolA, memSymbol)
FlowAnalysis\FlowTestBase.vb (13)
228AssertEx.Equal(If(alwaysAssigned, {}), analysis.AlwaysAssigned.Select(Function(s) s.Name).ToArray()) 229AssertEx.Equal(If(captured, {}), analysis.Captured.Select(Function(s) s.Name).ToArray()) 230AssertEx.Equal(If(dataFlowsIn, {}), analysis.DataFlowsIn.Select(Function(s) s.Name).ToArray()) 231AssertEx.Equal(If(dataFlowsOut, {}), analysis.DataFlowsOut.Select(Function(s) s.Name).ToArray()) 232AssertEx.Equal(If(definitelyAssignedOnEntry, {}), analysis.DefinitelyAssignedOnEntry.Select(Function(s) s.Name).ToArray()) 233AssertEx.Equal(If(definitelyAssignedOnExit, {}), analysis.DefinitelyAssignedOnExit.Select(Function(s) s.Name).ToArray()) 234AssertEx.Equal(If(readInside, {}), analysis.ReadInside.Select(Function(s) s.Name).ToArray()) 235AssertEx.Equal(If(readOutside, {}), analysis.ReadOutside.Select(Function(s) s.Name).ToArray()) 236AssertEx.Equal(If(variablesDeclared, {}), analysis.VariablesDeclared.Select(Function(s) s.Name).ToArray()) 237AssertEx.Equal(If(writtenInside, {}), analysis.WrittenInside.Select(Function(s) s.Name).ToArray()) 238AssertEx.Equal(If(writtenOutside, {}), analysis.WrittenOutside.Select(Function(s) s.Name).ToArray()) 239AssertEx.Equal(If(capturedInside, {}), analysis.CapturedInside.Select(Function(s) s.Name).ToArray()) 240AssertEx.Equal(If(capturedOutside, {}), analysis.CapturedOutside.Select(Function(s) s.Name).ToArray())
Semantics\FieldInitializerBindingTests.vb (22)
908AssertEx.Equal(_ZERO4, actual) 979AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 981AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT}, 987AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 989AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4}, 995AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 997AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT}, 1003AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1005AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1}, 1011AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value)) 1013AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4}, 1019AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value)) 1021AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1}, 1027AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1034AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1041AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1048AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value)) 1055AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value)) 1062AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value)) 1320AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1325AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value)) 1330AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
Semantics\ForeachTest.vb (12)
1161AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo.GetEnumeratorMethod) 1162AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo.CurrentProperty) 1163AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo.MoveNextMethod) 1164AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo.DisposeMethod) 1201AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo.GetEnumeratorMethod) 1202AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo.CurrentProperty) 1203AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo.MoveNextMethod) 1204AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo.DisposeMethod) 1257AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), loopInfo0.CurrentProperty) 1258AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), loopInfo0.MoveNextMethod) 1259AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), loopInfo0.DisposeMethod) 1265AssertEx.Equal(Of ISymbol)(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), loopInfo1.GetEnumeratorMethod) ' No longer using System.Array method.
Semantics\GotoTests.vb (9)
210AssertEx.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol) 241AssertEx.Equal(Of ISymbol)(declaredSymbol0, semanticSummary0.Symbol) 250AssertEx.Equal(Of ISymbol)(declaredSymbol0, semanticSummary1.Symbol) 284AssertEx.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol) 318AssertEx.NotEqual(Of ISymbol)(declaredSymbolOuter, semanticSummary.Symbol) 319AssertEx.Equal(Of ISymbol)(declaredSymbolInner, semanticSummary.Symbol) 357AssertEx.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol) 393AssertEx.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol) 427AssertEx.Equal(Of ISymbol)(declaredSymbol, semanticSummary.Symbol)
Semantics\NonTrailingNamedArgumentsTests.vb (3)
404AssertEx.Equal({"Sub C.M(a As System.Int32, b As System.Int32, [c As System.Int32 = 1])"}, 436AssertEx.Equal({"Sub C.M(a As System.Int32, b As System.Int32, [c As System.Int32 = 1], [d As System.Int32 = 2])"}, 467AssertEx.Equal({"Sub C.M(ParamArray c As System.Int32())"},
Semantics\RefFieldTests.vb (2)
177AssertEx.Equal(expectedMembers, fieldMembers.Select(Function(f) f.ToTestDisplayString())) 185AssertEx.Equal(expectedReferences, fieldReferences.Select(Function(f) f.ToTestDisplayString()))
Semantics\RequiredMembersTests.vb (6)
75AssertEx.Equal({"Property Base.Field As System.Int32"}, vbDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString())) 80AssertEx.Equal({"Property Base.Field As System.Int32"}, vbDerivedDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString())) 220AssertEx.Empty(vbDerivedDerived.AllRequiredMembers.Select(Function(m) m.Value.ToTestDisplayString())) 1423AssertEx.Equal(Of Symbol)({field, prop}, From kvp In c.AllRequiredMembers 2077AssertEx.Equal( 2167AssertEx.Equal(
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (45)
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"})
DocumentationComments\DocCommentTests.vb (1)
11783AssertEx.None(m.GetReferencedAssemblies(), Function(id) id.Name.Contains("GeneralPia"))
SymbolDisplay\SymbolDisplayTests.vb (2)
6105AssertEx.Equal(expectedText, parts.ToDisplayString()) 6108AssertEx.Equal(kinds, parts.Select(Function(p) p.Kind), itemInspector:=Function(p) $" SymbolDisplayPartKind.{p}")
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (1)
41AssertEx.SetEqual(actual, expected)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (2)
147AssertEx.Equal(Of ISymbol)(localType, symbol) 179AssertEx.Equal(Of ISymbol)(member, propSymbol)
SymbolsTests\Metadata\MetadataMemberTests.vb (1)
753AssertEx.None(type.GetMembersUnordered().AsEnumerable(), Function(symbol) symbol.Name.StartsWith("_VtblGap", StringComparison.Ordinal))
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1561AssertEx.All(references, Function(ref) model.GetSymbolInfo(ref).Symbol.Equals(eventSymbol)) 1565AssertEx.All(references, Function(ref) model.GetTypeInfo(ref).Type.Equals(actionType))
SymbolsTests\ParamsCollectionTests.vb (4)
80AssertEx.Equal("Public Shared Sub M1(a As System.Collections.Generic.IEnumerable(Of Integer))", SymbolDisplay.ToDisplayString(m1)) 81AssertEx.Equal("Public Shared Sub M2(ParamArray a As Integer())", SymbolDisplay.ToDisplayString(m2)) 95AssertEx.Equal("Sub C1.M1(a As System.Collections.Generic.IEnumerable(Of System.Int32))", comp1.GetMember("C1.M1").ToTestDisplayString()) 96AssertEx.Equal("Sub C1.M2(ParamArray a As System.Int32())", comp1.GetMember("C1.M2").ToTestDisplayString())
SymbolsTests\RefStructInterfacesTests.vb (4)
82AssertEx.Equal("A(Of T)", a.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)) 86AssertEx.Equal("B(Of S)", b.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)) 90AssertEx.Equal("C(Of T)", c.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints)) 94AssertEx.Equal("C(Of S)", c.ToDisplayString(SymbolDisplayFormat.TestFormatWithConstraints))
SymbolsTests\Source\BindingsTests.vb (1)
492AssertEx.Equal(Of ISymbol)(importsYellowSymInfo.Type, symbol)
SymbolsTests\Source\ClsComplianceTests.vb (4)
1653AssertEx.Any(m.GetAttributes(), predicate) 1655AssertEx.None(m.GetAttributes(), predicate) 1659AssertEx.Any(m.ContainingAssembly.GetAttributes(), predicate) 1661AssertEx.None(m.ContainingAssembly.GetAttributes(), predicate)
SymbolsTests\Source\ComClassTests.vb (1)
251Assert.True(expectedStr.Equals(actualStr), AssertEx.GetAssertMessage(expectedStr, actualStr))
SymbolsTests\Source\PropertyTests.vb (3)
7983AssertEx.SetEqual((From s In actualMembers 8036AssertEx.SetEqual((From member In members Select member.Name), 8048AssertEx.SetEqual((From member In members Select member.Name),
SymbolsTests\Source\SourceSymbolTests.vb (2)
681AssertEx.Equal({"", "N3", "N0", "N", "", "N4", "N"}, comp2.Declarations.NamespaceNames.ToArray()) 682AssertEx.Equal({"C3", "C0", "S", "C", "C4", "C"}, comp2.Declarations.TypeNames.ToArray())
SymbolsTests\Source\TypeTests.vb (1)
1787AssertEx.Equal(typeGoo.Locations, instanceConstructor.Locations)
SymbolsTests\TypedConstantTests.vb (2)
41AssertEx.Equal(Of Object)(common.Type, lang.Type) 54AssertEx.Equal(Of Object)(commonArray.Type, langArray.Type)
UsedAssembliesTests.vb (3)
88AssertEx.Equal(expected, used.Skip(1)) 90AssertEx.Equal(expected, used) 134AssertEx.Equal(comp.References.Where(Function(r) r.Properties.Kind = MetadataImageKind.Assembly), comp.GetUsedAssemblyReferences())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (23)
LocationTests.vb (5)
125AssertEx.Equal( 155AssertEx.Equal( 180AssertEx.Equal( 200AssertEx.Equal( 225AssertEx.Equal(
Parser\ParseXml.vb (1)
3547AssertEx.All(kinds1, Function(k) k = SyntaxKind.XmlNameToken)
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)
Parser\XmlDocComments.vb (9)
577AssertEx.Equal(Of String)(expected, actual) 597AssertEx.Equal(Of String)(expected, actual) 625AssertEx.Equal(Of String)(expected, actual) 668AssertEx.Equal(Of String)(expected, actual) 694AssertEx.Equal(Of String)(expected, actual) 721AssertEx.Equal(Of String)(expected, actual) 752AssertEx.Equal(Of String)(expected, actual) 777AssertEx.Equal(Of String)(expected, actual) 802AssertEx.Equal(Of String)(expected, actual)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (2)
107AssertEx.Equal(resolvedReferences, used) 963AssertEx.Equal(expectedPooledBuilder.ToStringAndFree(), actualPooledBuilder.ToStringAndFree())
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
CaseCorrection\VisualBasicCaseCorrectionTestBase.vb (1)
22AssertEx.EqualOrDiff(expected, actual.ToString())
CodeGeneration\AddImportsTests.vb (1)
110AssertEx.EqualOrDiff(simplifiedText, actualText)
CodeGeneration\SyntaxGeneratorTests.vb (1)
45AssertEx.Equal(fixedExpectations, normalized)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
MSBuildWorkspaceTestBase.cs (1)
29AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind == WorkspaceDiagnosticKind.Failure).Select(d => d.Message));
NewlyCreatedProjectsFromDotNetNew.cs (3)
224AssertEx.Empty(workspace.Diagnostics, $"The following workspace diagnostics are being reported for the template."); 240AssertEx.Empty(unnecessaryIgnoreDiagnostics, $"The following diagnostics are unnecessarily being ignored for the template."); 245AssertEx.Empty(filteredDiagnostics, $"The following compiler diagnostics are being reported for the template.");
VisualStudioMSBuildWorkspaceTests.cs (3)
1840AssertEx.Equal( 1867AssertEx.Equal( 3217AssertEx.Equal(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Formatting\FormattingTestBase.cs (1)
130AssertEx.EqualOrDiff(expected, actual);
Workspaces\TestWorkspace_XmlConsumption.cs (1)
669AssertEx.Fail($"The document attributes on file {fileName} conflicted");
Microsoft.CodeAnalysis.Workspaces.UnitTests (63)
CodeCleanup\CodeCleanupTests.cs (1)
411AssertEx.Equal(expectedSpans, sortedSpans);
CodeCleanup\ReduceTokenTests.cs (1)
2011AssertEx.EqualOrDiff(expectedResult, (await cleanDocument.GetSyntaxRootAsync()).ToFullString());
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (2)
1447AssertEx.EqualOrDiff(expectedResult, actualResult); 1458AssertEx.NotNull(project.ParseOptions);
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());
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
53AssertEx.EqualOrDiff(expectedMergedText, mergedSolution.GetDocument(documentIds[i]).GetTextAsync().Result.ToString());
Remote\ServiceDescriptorTests.cs (3)
195AssertEx.Equal(new byte[] { 0x3f }, deserialized.GetBytes("\u1234")); 341AssertEx.Empty(errors, "Types are not MessagePack-serializable"); 371AssertEx.SetEqual(descriptorsWithCallbackServiceTypes, callbackDispatcherServiceTypes);
SolutionTests\SolutionTests.cs (30)
231AssertEx.Equal([documentId], newSolution1.GetDocumentIdsWithFilePath(path)); 1224AssertEx.AreEqual([projectReference], newProject.ProjectReferences); 1225AssertEx.AreEqual([metadataReference], newProject.MetadataReferences); 1226AssertEx.AreEqual([analyzerReference], newProject.AnalyzerReferences); 1229AssertEx.SetEqual([d1, d3], newProject.DocumentIds); 1250AssertEx.SetEqual([a1, a3], newProject.AdditionalDocumentIds); 1271AssertEx.SetEqual([c1, c3], newProject.AnalyzerConfigDocumentIds); 1500AssertEx.AreEqual(objDir, project.CompilationOutputInfo.GetEffectiveGeneratedFilesOutputDirectory()); 1506AssertEx.AreEqual(otherDir, project.CompilationOutputInfo.GetEffectiveGeneratedFilesOutputDirectory()); 1983AssertEx.Equal((ProjectReference[])[projectRef2], solution3.GetProject(projectId)!.ProjectReferences); 1984AssertEx.Equal((ProjectReference[])[projectRef2, externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences); 2016AssertEx.Equal((ProjectReference[])[projectRef2], solution2.GetProject(projectId)!.AllProjectReferences); 2020AssertEx.Equal((ProjectReference[])[externalProjectRef], solution3.GetProject(projectId)!.AllProjectReferences); 2103AssertEx.Equal((MetadataReference[])[metadataRef1, metadataRef2], solution3.GetProject(projectId)!.MetadataReferences); 2126AssertEx.Equal((MetadataReference[])[metadataRef2], solution2.GetProject(projectId)!.MetadataReferences); 2173AssertEx.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.GetProject(projectId)!.AnalyzerReferences); 2199AssertEx.Equal((AnalyzerReference[])[analyzerRef2], solution2.GetProject(projectId)!.AnalyzerReferences); 2241AssertEx.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.AnalyzerReferences); 2265AssertEx.Equal((AnalyzerReference[])[analyzerRef2], solution2.AnalyzerReferences); 2371AssertEx.Equal(folders, document.Folders); 2401AssertEx.Equal(folders, document.Folders); 2429AssertEx.Equal(folders, document.Folders); 2458AssertEx.Equal(folders, document2.Folders); 2494AssertEx.Equal(folders, document2.Folders); 4421AssertEx.SetEqual(relatedIds1, ImmutableArray.Create(document1.Id, document2.Id)); 4422AssertEx.SetEqual(relatedIds2, ImmutableArray.Create(document1.Id, document2.Id)); 5280AssertEx.SetEqual( 5288AssertEx.SetEqual( 5296AssertEx.SetEqual( 5303AssertEx.SetEqual(
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
328AssertEx.SetEqual(expectedGeneratedContents, texts);
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);
UtilityTest\AsyncLazyTests.cs (4)
111AssertEx.NotNull(asyncContinuationRanSynchronously, "The continuation never ran."); 186AssertEx.Fail(nameof(AsyncLazy<object>.GetValue) + " did not throw an exception."); 214AssertEx.Fail(nameof(AsyncLazy<object>.GetValueAsync) + " did not throw an exception."); 316AssertEx.NotNull(arg.asynchronousComputation, $"The asynchronous computation was not expected to be running.");
UtilityTest\IntervalTreeTests.cs (1)
416AssertEx.Equal(tree, Enumerable.Range(1, i));
UtilityTest\WeakEventTests.cs (1)
32AssertEx.Equal([10, 30], target);
UtilityTest\XmlDocumentationProviderTests.cs (1)
42AssertEx.NotNull(xml);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
189AssertEx.Equal(
WorkspaceTests\DynamicFileInfoProviderMefTests.cs (1)
26AssertEx.SetEqual(["cshtml", "vbhtml"], lazy.Metadata.Extensions);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (11)
DocumentOutline\DocumentOutlineTests.cs (1)
63AssertEx.NotNull(response.Value);
EditorConfigSettings\DataProvider\DataProviderTests.cs (4)
127AssertEx.Equal( 174AssertEx.SetEqual(optionsWithUI.OrderBy(o => o.Name), dataSnapShot.Select(setting => setting.Key.Option).OrderBy(o => o.Name)); 196AssertEx.Equal( 212AssertEx.SetEqual(CSharpFormattingOptions2.EditorConfigOptions, optionsForSettings);
Interactive\Commands\InteractiveCommandHandlerTests.cs (1)
190AssertEx.Equal(expectedSubmissions, submissions);
Interactive\Commands\ResetInteractiveTests.cs (1)
129AssertEx.Equal(expectedSubmissions, executedSubmissionCalls);
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (2)
166AssertEx.AreEqual( 172AssertEx.AreEqual(path, environment.Workspace.CurrentSolution.Projects.Single().CompilationOutputInfo.GeneratedFilesOutputDirectory);
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (2)
202AssertEx.AreEqual(path, environment.Workspace.CurrentSolution.Projects.Single().CompilationOutputInfo.GeneratedFilesOutputDirectory); 206AssertEx.AreEqual(
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
UnifiedSettings\UnifiedSettingsTests.vb (1)
88AssertEx.Equal(expectedEnumValues, actualEnumValues)
Microsoft.VisualStudio.LanguageServices.UnitTests (23)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (2)
23AssertEx.SetEqual( 40AssertEx.SetEqual(
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)
Options\BasicEditorConfigGeneratorTests.vb (2)
166AssertEx.EqualOrDiff(expectedText, actualText) 317AssertEx.EqualOrDiff(expectedText, actualText)
Options\CSharpEditorConfigGeneratorTests.vb (2)
270AssertEx.EqualOrDiff(expectedText, actualText) 528AssertEx.EqualOrDiff(expectedText, actualText)
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (7)
138AssertEx.Equal( 152AssertEx.Equal( 166AssertEx.Equal( 176AssertEx.Equal( 204AssertEx.Equal({path1, path2}, environment.Workspace.CurrentSolution.Projects.Single().AnalyzerReferences.Select(Function(r) r.FullPath)) 233AssertEx.Equal( 274AssertEx.Equal(
RQName\RQNameTests.vb (1)
255AssertEx.Fail("Could not find symbol")
Snippets\CSharpSnippetExpansionClientTests.vb (1)
397AssertEx.EqualOrDiff(expectedUpdatedCode,
Snippets\VisualBasicSnippetExpansionClientTests.vb (1)
419AssertEx.EqualOrDiff(expectedUpdatedCode.Replace(vbLf, vbCrLf),
Venus\DocumentService_IntegrationTests.vb (2)
113AssertEx.SetEqual(expected, actual) 164AssertEx.SetEqual(expected, actual)
Roslyn.Test.PdbUtilities (17)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (10)
67=> AssertEx.Equal(expected, readers.GetStrings(actual), message: GetAssertMessage($"{entityKinds} don't match"), itemSeparator: ", ", itemInspector: s => $"\"{s}\""); 73AssertEx.SetEqual(expected, actual, itemSeparator: ",\r\n", itemInspector: s => $"\"{s}\""); 79AssertEx.AreEqual(expected, MetadataReader.GetTableRowCount(table), message: GetAssertMessage($"{table} table size doesnt't match")); 85AssertEx.Equal( 93AssertEx.Equal( 101AssertEx.Equal( 109AssertEx.Equal( 117AssertEx.Equal( 140AssertEx.SetEqual(expectedSynthesizedTypesAndMemberCounts, actual, itemSeparator: "\r\n"); 212AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedSignature, actualSignature, escapeQuotes: true);
EditAndContinue\EditAndContinueTestUtilities.cs (3)
86AssertEx.Equal(expectedNames, actualNames); 92AssertEx.Equal(expectedNames, actualNames); 110AssertEx.Equal(expectedNames, entityHandles.Select(handle =>
Reader\PdbValidation.cs (4)
141AssertEx.AssertLinesEqual( 309AssertEx.AssertLinesEqual( 350AssertEx.AssertLinesEqual( 680AssertEx.EqualOrDiff(expected, source.Input);
Roslyn.VisualStudio.Next.UnitTests (12)
Remote\SerializationValidator.cs (5)
227AssertEx.Equal(collection1.Children, collection2.Children); 234AssertEx.Equal(collection1.AttributeChecksums, collection2.AttributeChecksums); 235AssertEx.Equal(collection1.TextChecksums, collection2.TextChecksums); 236AssertEx.Equal(collection1.Ids, collection2.Ids); 255AssertEx.Equals(solutionObject1.Projects.Ids, solutionObject2.Projects.Ids);
Remote\SnapshotSerializationTests.cs (1)
494AssertEx.Equal([file1.Path, file2.Path], recovered.GetProject(project.Id).AnalyzerReferences.Select(r => r.FullPath));
Services\SolutionAssetCacheTests.cs (2)
67AssertEx.Fail("asset not cleaned up"); 122AssertEx.Fail("asset not cleaned up");
Services\SolutionServiceTests.cs (4)
186AssertEx.SetEqual(isRecovered 230AssertEx.SetEqual( 686AssertEx.Equal(project2.Name, project2SyncedSolution.Projects.Single().Name); 693AssertEx.Equal(project1.Name, project1SyncedSolution.Projects.Single().Name);
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
46AssertEx.Equal(new[] { ("expected metadata name", 1) }, errors); 60AssertEx.Equal(new[] { ($"unexpected symbol kind: '{kind}'", 1) }, errors); 89AssertEx.Equal(new[] { (symbolKinds, $"^{pattern}$", isIncluded) }, patterns.Select(p => (p.SymbolKinds, p.MetadataNamePattern.ToString(), p.IsIncluded)));
VBCSCompiler.UnitTests (5)
CompilerServerTests.cs (4)
238AssertEx.Fail($"Deterministic compile failed \n stdout: {result.Output}"); 244AssertEx.NotNull(bytes); 271AssertEx.AssertEqualToleratingWhitespaceDifferences("", result.Output); 1509AssertEx.Fail($"Bytes were different at position {i} ({first[i]} vs {second[i]}). Flags used were (\"{finalFlags1}\" vs \"{finalFlags2}\")");
NamedPipeClientConnectionHostTests.cs (1)
137AssertEx.NotNull(stream);