1262 references to Equal
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (65)
CommandLineTests.cs (65)
404AssertEx.Equal(new[] { "System.dll" }, cmd.Arguments.MetadataReferences.Select(r => r.Reference));
405AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "a.cs"), Path.Combine(WorkingDirectory, "b.cs") }, cmd.Arguments.SourceFiles.Select(file => file.Path));
457AssertEx.Equal(new[] { "first.cs", "second.cs", "b.cs", "a.cs", "c.cs", "d.cs", "last.cs" }.Select(prependBasePath), resolvedSourceFiles);
458AssertEx.Equal(new[] { typeof(object).Assembly.Location, @"..\v4.0.30319\System.dll", @".\System.Data.dll" }, references);
459AssertEx.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray());
552AssertEx.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);
660AssertEx.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);
1139AssertEx.Equal(new[] { "a", "b", "c" },
1146AssertEx.Equal(new[] { " b " },
1182AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs", "{DIR}\\d2\\e.cs" },
1187AssertEx.Equal(new[] { "{DIR}\\a.cs", "{DIR}\\b.cs" },
1217AssertEx.Equal(new[] { "a", "b", "c" },
1224AssertEx.Equal(new[] { " b " },
2253AssertEx.Equal(slContent, actualData);
2269AssertEx.Equal(
2275AssertEx.Equal(
2281AssertEx.Equal(
2287AssertEx.Equal(
2293AssertEx.Equal(
2299AssertEx.Equal(
3486AssertEx.Equal(
3513AssertEx.Equal(
5119AssertEx.Equal(new[] { "Goo.Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5123AssertEx.Equal(new[] { "Goo.Bar", "Baz", "System.Core", "System" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5127AssertEx.Equal(new[] { "Goo", "Bar" }, parsedArgs.CompilationOptions.Usings.AsEnumerable());
5229AssertEx.Equal(
5233AssertEx.Equal(expectedOptions, actualOrdered.Select(entry => entry.Value));
6415AssertEx.Equal(new[] { "a.cs", "b.cs", @"c.cs e.cs", "hello", "world" }, args);
6428AssertEx.Equal(new[] { "a.cs", "b#.cs", "c#d.cs", "#f.cs", "#g.cs #h.cs" }, args);
6435AssertEx.Equal(new[] { @"a\b\c", @"d\\e\\f\\", @"\\\g\\\h\\\i", @"\\\\", @"\\\\\k\\\\\" }, args);
6442AssertEx.Equal(new[] { @"a\""a", @"b\\""b c\\\""c d\\\\""d", @"e\\\\\""e", @"f"" g""" }, args);
6449AssertEx.Equal(new[] { @"/o:""goo.cs""", @"/o:""abc def""\baz", @"""/o:baz bar""bing" }, args);
6460AssertEx.Equal(new[] { @"d:\abc def\baz.cs", @"c:\abc de.cs" }, args.SourceFiles.Select(file => file.Path));
8245AssertEx.Equal(csc.Arguments.MetadataReferences.Select(r => r.Reference), new string[]
8629AssertEx.Equal(new byte[] { 0x4D, 0x5A }, ReadBytes(libDll.Path, 2));
8630AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8632AssertEx.Equal(new byte[] { 0x4D, 0x69 }, ReadBytes(libPdb.Path, 2));
8633AssertEx.Equal(new[] { (byte)'P', (byte)'D', (byte)'B' }, ReadBytes(fsPdb, 3));
8638AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p))));
8689AssertEx.Equal(new[] { (byte)'B', (byte)'S', (byte)'J', (byte)'B' }, ReadBytes(libPdb.Path, 4));
8695AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p))));
8731AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(libDll.Path, 3));
8732AssertEx.Equal(new[] { (byte)'D', (byte)'L', (byte)'L' }, ReadBytes(fsDll, 3));
8736AssertEx.Equal(new[] { "Lib.cs", "Lib.dll" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.Path).Select(p => Path.GetFileName(p))));
9842AssertEx.Equal(expectedWarningsAll, compileAndRun(featureOpt: null));
9843AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis"));
9844AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=always"));
9845AssertEx.Equal(expectedWarningsNone, compileAndRun("/features:run-nullable-analysis=never"));
9846AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=ALWAYS")); // unrecognized value (incorrect case) ignored
9847AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=NEVER")); // unrecognized value (incorrect case) ignored
9848AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=true")); // unrecognized value ignored
9849AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=false")); // unrecognized value ignored
9850AssertEx.Equal(expectedWarningsAll, compileAndRun("/features:run-nullable-analysis=unknown")); // unrecognized value ignored
11183AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11187AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "@script.csx") }, args.SourceFiles.Select(f => f.Path));
11191AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "-script.csx") }, args.SourceFiles.Select(f => f.Path));
11195AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11199AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11203AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11208AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11213AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "script.csx") }, args.SourceFiles.Select(f => f.Path));
11218AssertEx.Equal(new[] { Path.Combine(WorkingDirectory, "--") }, args.SourceFiles.Select(f => f.Path));
11330AssertEx.Equal(expected, CommandLineParser.SplitWithDoubledSeparatorEscaping(str, ','));
11490AssertEx.Equal(programExe32.ReadAllBytes(), programExe64.ReadAllBytes());
11491AssertEx.Equal(programPdb32.ReadAllBytes(), programPdb64.ReadAllBytes());
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (20)
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
177AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
189AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
193AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
205AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (107)
CodeGen\CodeGenTupleTest.cs (7)
4473AssertEx.Equal(new[] { "T1 (T1, T2).Item1", "T2 (T1, T2).Item2" }, vt2.TupleElements.ToTestDisplayStrings());
4476AssertEx.Equal(new[] {
11436AssertEx.Equal(new[] {
11463AssertEx.Equal(new[] {
11500AssertEx.Equal(new[] { "T1", "T2", "T3", "T4", "T5", "T6", "T7", "TRest" }, m1Tuple.TypeParameters.ToTestDisplayStrings());
11505AssertEx.Equal(new[] { "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "System.Int32", "(System.Int32, System.Int32)" },
13884AssertEx.Equal(baseLine, symbols.Select(s => s.ToTestDisplayString()));
Emit\CompilationEmitTests.cs (34)
658AssertEx.Equal(new[] { ".text", ".rsrc", ".reloc", ".mvid" },
899AssertEx.Equal(
913AssertEx.Equal(new[] {
956AssertEx.Equal(new string[] {
1214AssertEx.Equal(image1.GetBuffer(), image2.GetBuffer(), message: $"Expecting match for includePrivateMembers={includePrivateMembers} case, but differences were found.");
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));
5370AssertEx.Equal(expectedNames, actualNames);
5433AssertEx.Equal(expectedNames, actualNames);
Emit\EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (10)
41AssertEx.Equal(expected, actual, message: GetAssertMessage("TypeDefs don't match"));
47AssertEx.Equal(expected, actual, message: GetAssertMessage("MethodDefs don't match"));
53AssertEx.Equal(expected, actual, message: GetAssertMessage("MemberRefs don't match"));
59AssertEx.Equal(expected, actual, message: GetAssertMessage("FieldDefs don't match"));
65AssertEx.Equal(expected, actual, message: GetAssertMessage("PropertyDefs don't match"));
81AssertEx.Equal(expected, _metadataReader.GetEditAndContinueLogEntries(), itemInspector: EncLogRowToString, message: GetAssertMessage("EncLog doesn't match"));
86AssertEx.Equal(expected, _metadataReader.GetEditAndContinueMapEntries(), itemInspector: EncMapRowToString, message: GetAssertMessage("EncMap doesn't match"));
91AssertEx.Equal(expected, _metadataReader.GetEditAndContinueLogEntries().Where(e => IsDefinition(e.Handle.Kind)), itemInspector: EncLogRowToString, message: GetAssertMessage("EncLog definitions don't match"));
96AssertEx.Equal(expected, _metadataReader.GetEditAndContinueMapEntries().Where(e => IsDefinition(e.Kind)), itemInspector: EncMapRowToString, message: GetAssertMessage("EncMap definitions don't match"));
101AssertEx.Equal(expected, _metadataReader.GetCustomAttributeRows(), itemInspector: AttributeRowToString);
Emit\EmitMetadataTests.cs (5)
270AssertEx.Equal(new[]
2308AssertEx.Equal(new byte[]
2321AssertEx.Equal(new byte[]
2348AssertEx.Equal(new byte[] { 0xFF, 0x25, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00 }, startupStub);
2406AssertEx.Equal(new byte[] { 0, 0x20, 0, 0, 0x0c, 0, 0, 0, 0x80, 0x33, 0, 0 }, relocBytes);
PDB\PortablePdbTests.cs (8)
88AssertEx.Equal(new byte[]
136AssertEx.Equal(new byte[]
177AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
192AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
237AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
253AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
317AssertEx.Equal(sourceLinkBlob, actualBlob);
360AssertEx.Equal(sourceLinkBlob, actualBlob);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (12)
InteractiveSessionTests.cs (7)
899AssertEx.Equal(new[] { "hello", "hello" }, result);
1023AssertEx.Equal(new object[] { 1, 1, null }, result);
1037AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1);
1040AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2);
1043AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue);
1046AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue);
1049AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue);
ScriptTests.cs (3)
399AssertEx.Equal(new[] { "a", "b", "a", "x", "X" }, state.Variables.Select(v => v.Name));
400AssertEx.Equal(new object[] { '1', 2u, 3m, 5m, 20 }, state.Variables.Select(v => v.Value));
401AssertEx.Equal(new Type[] { typeof(char), typeof(uint), typeof(decimal), typeof(decimal), typeof(int) }, state.Variables.Select(v => v.Type));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (250)
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 (56)
28241AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
28248AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, propertyAttributes);
28263AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
28274AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, getterReturnAttributes);
28285AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes.Select(a => a.ToString()));
28344AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
28351AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
28366AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, getterAttributes);
28377AssertEx.Equal(new[] {
28864AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
28868AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.MaybeNullAttribute" }, fieldAttributes);
38723AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
38727AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, fieldAttributes);
38901AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
38908AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, propertyAttributes);
38927AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute" }, setterValueAttributes);
38962AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
38969AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.AllowNullAttribute", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
38988AssertEx.Equal(new[] {
42582AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)" }, copenAttributes);
42589AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, propertyAttributes);
42604AssertEx.Equal(new[] { "System.Runtime.CompilerServices.CompilerGeneratedAttribute" }, setterAttributes);
42615AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, setterValueAttributes);
42827AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
42831AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.DisallowNullAttribute" }, fieldAttributes);
45864AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableContextAttribute(1)", "System.Runtime.CompilerServices.NullableAttribute(0)", "System.Reflection.DefaultMemberAttribute(\"Item\")" }, copenAttributes);
45871AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, propertyAttributes);
45888AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, getterReturnAttributes);
45972AssertEx.Equal(new[] { "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
45976AssertEx.Equal(new[] { "System.Runtime.CompilerServices.NullableAttribute(1)", "System.Diagnostics.CodeAnalysis.NotNullAttribute" }, fieldAttributes);
153514AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>" },
153516AssertEx.Equal(new string[] { "I<dynamic>", "I2<object>", "I<object>" },
153548AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>" },
153550AssertEx.Equal(new string[] { "I<(int a, int b)>", "I2<(int notA, int notB)>", "I<(int notA, int notB)>" },
153586AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>" },
153588AssertEx.Equal(new string[] { "I<(object a, object b)>", "I2<(object notA, object notB)>", "I<(object notA, object notB)>" },
153614AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
153616AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
153646AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
153648AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
153815AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
153817AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
153856AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
153858AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
153896AssertEx.Equal(new string[] { "I<object>", "I2<object>" },
153898AssertEx.Equal(new string[] { "I<object>", "I2<object>", "I<object!>" },
154110AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
154112AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
154152AssertEx.Equal(new string[] { "I2<object>", "I<object>" },
154154AssertEx.Equal(new string[] { "I2<object>", "I<object!>", "I<object>" },
154233AssertEx.Equal(new string[] { "I<object?>", "I2<object>" },
154235AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object!>" },
154265AssertEx.Equal(new string[] { "I<object?>", "I2<object>" },
154267AssertEx.Equal(new string[] { "I<object?>", "I2<object>", "I<object>" },
154299AssertEx.Equal(new string[] { "I<object?>", "I2<object!>" },
154301AssertEx.Equal(new string[] { "I<object?>", "I2<object!>", "I<object!>" },
Semantics\RecordStructTests.cs (12)
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);
3740AssertEx.Equal(new[] {
4122AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4123AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
4144AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
4145AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
Semantics\RecordTests.cs (117)
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);
1589AssertEx.Equal(expectedMembers, actualMembers);
1640AssertEx.Equal(expectedMembers, actualMembers);
5988AssertEx.Equal(expectedMembers, actualMembers);
6031AssertEx.Equal(expectedMembers, actualMembers);
6072AssertEx.Equal(expectedMembers, actualMembers);
6113AssertEx.Equal(expectedMembers, actualMembers);
9755AssertEx.Equal(expectedMembers, actualMembers);
9782AssertEx.Equal(new[] { "System.Type A.B.EqualityContract { get; }" }, actualMembers);
9805AssertEx.Equal(new[] { "System.Type C1.EqualityContract { get; }" }, GetProperties(comp, "C1").ToTestDisplayStrings());
9818AssertEx.Equal(new[] { "System.Type C2.EqualityContract { get; }", "System.Object C2.P { get; init; }" }, GetProperties(comp, "C2").ToTestDisplayStrings());
9870AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9901AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9948AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
9982AssertEx.Equal(new[] { "System.Type B1.EqualityContract { get; }", "System.Int32 B1.X { get; init; }" }, GetProperties(comp, "B1").ToTestDisplayStrings());
9983AssertEx.Equal(new[] { "System.Type B2.EqualityContract { get; }", "System.Int32 B2.X { get; init; }" }, GetProperties(comp, "B2").ToTestDisplayStrings());
10021AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Int32 C.X { get; init; }", "System.Int32 C.Y { get; init; }" }, actualMembers);
10066AssertEx.Equal(expectedMembers, actualMembers);
10088AssertEx.Equal(expectedMemberNames, c.GetPublicSymbol().MemberNames);
10095AssertEx.Equal(expectedCtors, c.GetPublicSymbol().Constructors.ToTestDisplayStrings());
10189AssertEx.Equal(expectedMembers, actualMembers);
10226AssertEx.Equal(expectedMembers, actualMembers);
10269AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10302AssertEx.Equal(expectedMembers, actualMembers);
10348AssertEx.Equal(expectedMembers, actualMembers);
10395AssertEx.Equal(expectedMembers, actualMembers);
10444AssertEx.Equal(expectedMembers, actualMembers);
10496AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
10556AssertEx.Equal(expectedMembers, actualMembers);
10593AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10669AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10701AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }" }, actualMembers);
10759AssertEx.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("B").GetMembers().ToTestDisplayStrings());
10783AssertEx.Equal(expectedMembers, comp.GetMember<NamedTypeSymbol>("C").GetMembers().ToTestDisplayStrings());
10827AssertEx.Equal(expectedMembers, actualMembers);
10852AssertEx.Equal(expectedMembers, actualMembers);
10875AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10881AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10905AssertEx.Equal(expectedMembers, actualMembers);
10929AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }", "System.Object B.P { get; init; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
10930AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", "System.Object C.P { get; init; }", "System.Object C.I.P { get; }" }, GetProperties(comp, "C").ToTestDisplayStrings());
10992AssertEx.Equal(expectedMembers, actualMembers);
11060AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
11155AssertEx.Equal(expectedMembers, actualMembers);
11207AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11268AssertEx.Equal(expectedMembers, actualMembers);
11304AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
11345AssertEx.Equal(expectedMembers, actualMembers);
11559AssertEx.Equal(expectedMembers, actualMembers);
11795AssertEx.Equal(expectedMembers, actualMembers);
12108AssertEx.Equal(new[] { "System.Type C.EqualityContract { get; }", }, GetProperties(comp, "C").ToTestDisplayStrings());
12216AssertEx.Equal(new[] { "System.Type CA.EqualityContract { get; }", "System.Object CA.P { get; init; }" }, GetProperties(comp, "CA").ToTestDisplayStrings());
12217AssertEx.Equal(new[] { "System.Type CB.EqualityContract { get; }" }, GetProperties(comp, "CB").ToTestDisplayStrings());
12588AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, GetProperties(comp, "B").ToTestDisplayStrings());
12748AssertEx.Equal(expectedMembers, actualMembers);
13478AssertEx.Equal(expectedMembers, actualMembers);
15782AssertEx.Equal(expectedMembers, actualMembers);
15841AssertEx.Equal(expectedMembers, actualMembers);
20718AssertEx.Equal(expectedMembers, actualMembers);
20760AssertEx.Equal(expectedMembers, actualMembers);
20790AssertEx.Equal(new[] { "System.Type B.EqualityContract { get; }" }, actualMembers);
23651AssertEx.Equal(expectedMembers, actualMembers);
23799AssertEx.Equal(expectedMembers, actualMembers);
24032AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24033AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24036AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24037AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B?>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24087AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24088AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24091AssertEx.Equal(new[] { "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24092AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24152AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24153AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24156AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24157AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24197AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24198AssertEx.Equal(new[] { "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24201AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24202AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24222AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24223AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<B2>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24226AssertEx.Equal(new[] { "System.IEquatable<B1>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24227AssertEx.Equal(new[] { "System.IEquatable<B2>", "System.IEquatable<A<System.Object>>", "System.IEquatable<B1>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24230AssertEx.Equal(new[] { "System.IEquatable<B2>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24231AssertEx.Equal(new[] { "System.IEquatable<B1>", "System.IEquatable<A<System.Int32>>", "System.IEquatable<B2>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24251AssertEx.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24252AssertEx.Equal(new[] { "I<A<T>>", "System.IEquatable<A<T>>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24255AssertEx.Equal(new[] { "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24256AssertEx.Equal(new[] { "System.IEquatable<A<System.Object>>", "I<A<System.Object>>", "I<B>", "System.IEquatable<B>" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24316AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24317AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24320AssertEx.Equal(new[] { "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24321AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24386AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24387AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24390AssertEx.Equal(new[] { "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24391AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "System.IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24460AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24461AssertEx.Equal(new[] { "System.IEquatable<A<T>>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24464AssertEx.Equal(new[] { "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.InterfacesNoUseSiteDiagnostics().ToTestDisplayStrings());
24465AssertEx.Equal(new[] { "System.IEquatable<A<System.Int32>>[missing]", "IEquatable<B>", "System.IEquatable<B>[missing]" }, type.AllInterfacesNoUseSiteDiagnostics.ToTestDisplayStrings());
24890AssertEx.Equal(expectedMembers, actualMembers);
24935AssertEx.Equal(expectedMembers, actualMembers);
30165AssertEx.Equal(expectedMembers, actualMembers);
30195AssertEx.Equal(expectedMembers, actualMembers);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Compilation\CompilationAPITests.cs (5)
3041AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3049AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3076AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.None, CodeAnalysis.NullableAnnotation.None }, type.TypeArgumentNullableAnnotations());
3084AssertEx.Equal(new[] { CodeAnalysis.NullableAnnotation.Annotated, CodeAnalysis.NullableAnnotation.NotAnnotated }, type.TypeArgumentNullableAnnotations());
3611AssertEx.Equal(types.Select(t => t.ToTestDisplayString()), new[] { "C", "C", "C" });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (104)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (70)
424AssertEx.Equal(expectedRows, reader.GetEditAndContinueLogEntries(), itemInspector: EncLogRowToString);
589AssertEx.Equal(new[]
604AssertEx.Equal(new[] { $"{projectPId}: Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFileB.Path)}" }, InspectDiagnostics(emitDiagnostics));
670AssertEx.Equal(new[]
739AssertEx.Equal(new[]
931AssertEx.Equal(new[] { $"{document2.Project.Id}: Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, moduleFile.Path, expectedErrorMessage)}" }, InspectDiagnostics(emitDiagnostics));
951AssertEx.Equal(new[]
960AssertEx.Equal(new[]
1012AssertEx.Equal(new[] { $"{project.Id}: Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}" }, InspectDiagnostics(emitDiagnostics));
1016AssertEx.Equal(new[]
1059AssertEx.Equal(new[] { $"{project.Id}: Warning ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}" }, InspectDiagnostics(emitDiagnostics));
1072AssertEx.Equal(new[]
1131AssertEx.Equal(new[]
1139AssertEx.Equal(new[]
1302AssertEx.Equal(new[] { $"{document2.FilePath}: (5,0)-(5,32): Error ENC2016: {string.Format(FeaturesResources.EditAndContinueDisallowedByProject, document2.Project.Name, "*message*")}" }, InspectDiagnostics(emitDiagnostics));
1308AssertEx.Equal(new[]
1404AssertEx.Equal(new[] { "ENC0021: " + string.Format(FeaturesResources.Adding_0_requires_restarting_the_application, FeaturesResources.type_parameter) },
1427AssertEx.Equal(new[]
1436AssertEx.Equal(new[]
1475AssertEx.Equal(new[] { "ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application) },
1489AssertEx.Equal(new[] { "ENC0001: " + string.Format(FeaturesResources.Updating_an_active_statement_requires_restarting_the_application) },
1542AssertEx.Equal(new[] { "ENC0021: " + string.Format(FeaturesResources.Adding_0_requires_restarting_the_application, FeaturesResources.type_parameter) },
1601AssertEx.Equal(new[] { $"{project.Id}: Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}" }, InspectDiagnostics(emitDiagnostics));
1618AssertEx.Equal(new[]
1644AssertEx.Equal(new[]
1654AssertEx.Equal(new[]
1695AssertEx.Equal(
1739AssertEx.Equal(
1753AssertEx.Equal(
1798AssertEx.Equal(new[]
1837AssertEx.Equal(new[] { $"{document2.FilePath}: (0,30)-(0,32): Error CS0266: {string.Format(CSharpResources.ERR_NoImplicitConvCast, "long", "int")}" }, InspectDiagnostics(emitDiagnostics));
1843AssertEx.Equal(new[]
1991AssertEx.Equal(documentKind == DocumentKind.Source ? new[] { documentId, generatedDocumentId } : new[] { generatedDocumentId }, changedOrAddedDocuments.Select(d => d.Id));
2043AssertEx.Equal(documentKind == DocumentKind.Source ? new[] { documentId, generatedDocumentId } : new[] { generatedDocumentId }, changedOrAddedDocuments.Select(d => d.Id));
2069AssertEx.Equal(new[] { generatedDocumentId }, changedOrAddedDocuments.Select(d => d.Id));
2125AssertEx.Equal(new[]
2215AssertEx.Equal(new[] { "ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_) },
2224AssertEx.Equal(new[] { "ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_) },
2249AssertEx.Equal(new[]
2341AssertEx.Equal(new[] { $"{document2.Project.Id}: Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}" }, InspectDiagnostics(emitDiagnostics));
2373AssertEx.Equal(new[] { $"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}" }, InspectDiagnostics(emitDiagnostics));
2390AssertEx.Equal(new[] { $"{document2.FilePath}: (0,0)-(0,54): Error CS8055: {string.Format(CSharpResources.ERR_EncodinglessSyntaxTree)}" }, InspectDiagnostics(emitDiagnostics));
2394AssertEx.Equal(new[]
2545AssertEx.Equal(new[] { $"{project.Id}: Warning ENC1005: {string.Format(FeaturesResources.DocumentIsOutOfSyncWithDebuggee, sourceFile.Path)}" }, InspectDiagnostics(emitDiagnostics));
2799AssertEx.Equal(new[]
2807AssertEx.Equal(new[]
3026AssertEx.Equal(new[] { 0x02000002, 0x02000003 }, delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
3084AssertEx.Equal(new[] { "3 -> 4" }, lineUpdate.LineUpdates.Select(edit => $"{edit.OldLine} -> {edit.NewLine}"));
3303AssertEx.Equal(new[] { $"{document2.Project.Id}: Error ENC1007: {FeaturesResources.ChangesRequiredSynthesizedType}" }, InspectDiagnostics(emitDiagnostics));
3487AssertEx.Equal(new[] { $"{document1.Project.Id}: Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-pdb", new FileNotFoundException().Message)}" }, InspectDiagnostics(emitDiagnostics));
3520AssertEx.Equal(new[] { $"{document.Project.Id}: Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, "test-assembly", "*message*")}" }, InspectDiagnostics(emitDiagnostics));
3525AssertEx.Equal(new[]
3616AssertEx.Equal(new[] { adjustedActiveLineSpan1, adjustedActiveLineSpan2 }, currentSpans.Select(s => s.LineSpan));
3687AssertEx.Equal(new[] { activeLineSpan11, activeLineSpan12 }, currentSpans.Select(s => s.LineSpan));
3809AssertEx.Equal(new[]
3815AssertEx.Equal(new[]
3837AssertEx.Equal(new[]
3913AssertEx.Equal(new[]
3927AssertEx.Equal(new[] { $"(9,18)-(9,22)" }, baseSpans.Single().Select(s => s.LineSpan.ToString()));
3937AssertEx.Equal(new[] { $"(10,12)-(10,16)" }, baseSpans.Single().Select(s => s.LineSpan.ToString()));
4018AssertEx.Equal(new[]
4088AssertEx.Equal(new[] { "ENC0063: " + string.Format(FeaturesResources.Updating_a_0_around_an_active_statement_requires_restarting_the_application, CSharpFeaturesResources.catch_clause) },
4180AssertEx.Equal(new[]
4201AssertEx.Equal(new[]
4237AssertEx.Equal(new[]
4362AssertEx.Equal(new[]
4577AssertEx.Equal(new[]
4594AssertEx.Equal(
4644AssertEx.Equal(new[]
4660AssertEx.Equal(
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (12)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (73)
Assert\AssertEx.cs (4)
179Equal((IEnumerable<T>)expected, actual, comparer, message);
191Equal(expected, (IEnumerable<T>)actual, comparer, message, itemSeparator);
197Equal(expected, (IEnumerable<T>)actual, comparer, message, itemSeparator);
848AssertEx.Equal(
Compilation\CompilationExtensions.cs (5)
177AssertEx.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
185AssertEx.Equal(expectedAssembliesAndAliases, actual, itemInspector: s => '"' + s + '"');
413AssertEx.Equal(positions, getPositionsFromEnd(separatedList));
422AssertEx.Equal(positions, getPositionsFromStart(new SeparatedWithManyChildren(green, null, separatedList.Position)));
425AssertEx.Equal(positions, getPositionsFromEnd(new SeparatedWithManyChildren(green, null, separatedList.Position)));
Compilation\TestOperationVisitor.cs (57)
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(new[] { operation.Group, operation.Aggregation }, operation.ChildOperations);
502AssertEx.Equal(new[] { operation.Value, operation.Body }, operation.ChildOperations);
539AssertEx.Equal(children, operation.ChildOperations);
561AssertEx.Equal(children, operation.ChildOperations);
589AssertEx.Equal(new[] { operation.ArrayReference }.Concat(operation.Indices), operation.ChildOperations);
595AssertEx.Equal(new[] { operation.Instance, operation.Argument }, operation.ChildOperations);
658AssertEx.Equal(children, operation.ChildOperations);
705AssertEx.Equal(new[] { operation.EventReference, operation.HandlerValue }, operation.ChildOperations);
712AssertEx.Equal(new[] { operation.Operation, operation.WhenNotNull }, operation.ChildOperations);
772AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
817AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
875AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue, operation.WhenFalse }, operation.ChildOperations);
879AssertEx.Equal(new[] { operation.Condition, operation.WhenTrue }, operation.ChildOperations);
886AssertEx.Equal(new[] { operation.Value, operation.WhenNull }, operation.ChildOperations);
893AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1024AssertEx.Equal(children, operation.ChildOperations);
1051AssertEx.Equal(children, operation.ChildOperations);
1057AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1063AssertEx.Equal(new[] { operation.Operation }.Concat(operation.Arguments), operation.ChildOperations);
1075AssertEx.Equal(new[] { operation.InitializedMember, operation.Initializer }, operation.ChildOperations);
1128AssertEx.Equal(children, operation.ChildOperations);
1140AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
1266AssertEx.Equal(operation.Parts, operation.ChildOperations);
1297AssertEx.Equal(children, operation.ChildOperations);
1304AssertEx.Equal(children, operation.ChildOperations);
1314AssertEx.Equal(new[] { operation.Left, operation.Right }, operation.ChildOperations);
1456AssertEx.Equal(children, operation.ChildOperations);
1500AssertEx.Equal(children, operation.ChildOperations);
1507AssertEx.Equal(children, operation.ChildOperations);
1536AssertEx.Equal(children, operation.ChildOperations);
1550AssertEx.Equal(children, operation.ChildOperations);
1556AssertEx.Equal(new[] { operation.Value, operation.Pattern }, operation.ChildOperations);
1567AssertEx.Equal(new[] { operation.Pattern, operation.Guard }, operation.ChildOperations);
1602AssertEx.Equal(new IOperation[] { operation.EventReference }.Concat(operation.Arguments), operation.ChildOperations);
1609AssertEx.Equal(new[] { operation.MinimumValue, operation.MaximumValue }, operation.ChildOperations);
1635AssertEx.Equal(builder, operation.ChildOperations);
1648AssertEx.Equal(new[] { operation.BlockBody, operation.ExpressionBody }, operation.ChildOperations);
1767AssertEx.Equal(operation.Clauses, operation.ChildOperations);
1774AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations);
1780AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.DeclarationGroup), operation.ChildOperations);
1803AssertEx.Equal(children, operation.ChildOperations);
Microsoft.CodeAnalysis.UnitTests (64)
Collections\ArrayBuilderTests.cs (15)
21AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
25AssertEx.Equal(new[] { 1 }, builder);
29AssertEx.Equal(new int[0], builder);
37AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, builder);
41AssertEx.Equal(new[] { 1 }, builder);
45AssertEx.Equal(new[] { 1, 2 }, builder);
49AssertEx.Equal(new[] { 1, 2, 3 }, builder);
53AssertEx.Equal(new[] { 1, 2 }, builder);
57AssertEx.Equal(new int[0], builder);
85AssertEx.Equal(new int[0], builder.ToArray());
88AssertEx.Equal(new[] { 1, 2, 3 }, builder.ToArray());
91AssertEx.Equal(new[] { 1, 2, 3 }, builder.ToArray());
94AssertEx.Equal(new[] { 1, 2, 3, 2 }, builder.ToArray());
97AssertEx.Equal(new[] { 1, 2, 3, 2, 2, 3 }, builder.ToArray());
100AssertEx.Equal(new[] { 1, 2, 3, 2, 2, 3, 3 }, builder.ToArray());
CryptoBlobParserTests.cs (16)
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);
EmbeddedTextTests.cs (14)
123AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
124AssertEx.Equal(bytes, text.Blob.Skip(4));
138AssertEx.Equal(new byte[] { 0, 0, 0, 0 }, text.Blob.Take(4));
139AssertEx.Equal(bytes, text.Blob.Skip(4));
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));
165AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
166AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
180AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
181AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
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)));
244AssertEx.Equal(BitConverter.GetBytes(bytes.Length), text.Blob.Take(4));
245AssertEx.Equal(bytes, Decompress(text.Blob.Skip(4)));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (22)
CommandLineTests.vb (22)
760AssertEx.Equal({"System.dll"}, cmd.Arguments.MetadataReferences.Select(Function(r) r.Reference))
761AssertEx.Equal(
798AssertEx.Equal({"System", "System.Xml", "System.Linq"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
802AssertEx.Equal({"System", "Microsoft.VisualBasic", "System.IO"}, args.CompilationOptions.GlobalImports.Select(Function(import) import.Clause.ToString()))
941AssertEx.Equal({"System", "System.Collections.Generic", "System.Linq", "System.Text"},
2323AssertEx.Equal({"a", "b", "c"},
2330AssertEx.Equal({" ", " b "},
2365AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2369AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}")))
2438AssertEx.Equal({folder.Path + "\c.cpp", folder.Path + "\b\B_e.vb"}, resolvedSourceFiles)
2472AssertEx.Equal({"a", "b", "c"},
2479AssertEx.Equal({" ", " b "},
3240AssertEx.Equal(
3246AssertEx.Equal(
3252AssertEx.Equal(
3258AssertEx.Equal(
3264AssertEx.Equal(
3270AssertEx.Equal(
3276AssertEx.Equal(
3282AssertEx.Equal(
5754AssertEx.Equal(
5758AssertEx.Equal(expectedOptions, actualOrdered.Select(Function(entry) entry.Value))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (353)
Debugging\ProximityExpressionsGetterTests.Statements.vb (346)
23AssertEx.Equal({"System.ComponentModel.Composition", "System.ComponentModel", "System", "Me"}, terms)
36AssertEx.Equal({"Microsoft.VisualStudio.Text", "Microsoft.VisualStudio", "Microsoft", "Me"}, terms)
49AssertEx.Equal({"Microsoft.VisualStudio.Text.Editor", "Microsoft.VisualStudio.Text", "Microsoft.VisualStudio", "Microsoft", "Me"}, terms)
62AssertEx.Equal({"Microsoft.VisualStudio.Utilities", "Microsoft.VisualStudio", "Microsoft", "Me"}, terms)
75AssertEx.Equal({"Roslyn.Compilers.Internal", "Roslyn.Compilers", "Roslyn", "Me"}, terms)
88AssertEx.Equal({"Roslyn.Compilers.VisualBasic", "Roslyn.Compilers", "Roslyn", "Me"}, terms)
101AssertEx.Equal({"Roslyn.Services.Commands", "Roslyn.Services", "Roslyn", "Me"}, terms)
114AssertEx.Equal({"Roslyn.Services.Internal.Extensions", "Roslyn.Services.Internal", "Roslyn.Services", "Roslyn", "Me"}, terms)
127AssertEx.Equal({"Roslyn.Services.Internal.Utilities", "Roslyn.Services.Internal", "Roslyn.Services", "Roslyn", "Me"}, terms)
140AssertEx.Equal({"Roslyn.Services.VisualBasic.Commands", "Roslyn.Services.VisualBasic", "Roslyn.Services", "Roslyn", "Me"}, terms)
153AssertEx.Equal({"Roslyn.Services.VisualBasic.Utilities", "Roslyn.Services.VisualBasic", "Roslyn.Services", "Roslyn", "Me"}, terms)
166AssertEx.Equal({"System.Text", "System", "Me"}, terms)
179AssertEx.Equal({"Roslyn.Services.Workspaces", "Roslyn.Services", "Roslyn", "Me"}, terms)
192AssertEx.Equal({"Roslyn.Services.VisualBasic.Extensions", "Roslyn.Services.VisualBasic", "Roslyn.Services", "Roslyn", "Me"}, terms)
205AssertEx.Equal({"Roslyn.Services.VisualBasic.DocumentationComments", "Roslyn.Services.VisualBasic", "Roslyn.Services", "Roslyn", "Me"}, terms)
218AssertEx.Equal({"Roslyn.Services.VisualBasic.DocumentationComments", "Roslyn.Services.VisualBasic", "Roslyn.Services", "Roslyn", "Me"}, terms)
231AssertEx.Equal({"Export", "ICommandHandler", "Name", "VisualBasicCommandHandlerNames.DocumentationComments", "VisualBasicCommandHandlerNames", "Order", "VisualBasicCommandHandlerNames.IntelliSense", "ContentType", "ContentTypeNames.VisualBasicContentType", "ContentTypeNames", "Me"}, terms)
244AssertEx.Equal({"Export", "ICommandHandler", "Name", "VisualBasicCommandHandlerNames.DocumentationComments", "VisualBasicCommandHandlerNames", "Order", "VisualBasicCommandHandlerNames.IntelliSense", "ContentType", "ContentTypeNames.VisualBasicContentType", "ContentTypeNames", "Me"}, terms)
257AssertEx.Equal({"Me"}, terms)
270AssertEx.Equal({"Me"}, terms)
283AssertEx.Equal({"Me"}, terms)
296AssertEx.Equal({"_workspace", "Me"}, terms)
309AssertEx.Equal({"ImportingConstructor", "workspace", "Me"}, terms)
322AssertEx.Equal({"ImportingConstructor", "workspace", "Me"}, terms)
335AssertEx.Equal({"Contract.ThrowIfNull", "Contract", "workspace", "Me"}, terms)
348AssertEx.Equal({"_workspace", "workspace", "Contract.ThrowIfNull", "Contract", "Me"}, terms)
361AssertEx.Equal({"_workspace", "workspace", "Me"}, terms)
374AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
387AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
400AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
413AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
426AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
439AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
452AssertEx.Equal({"InsertCommentOnContainingMember", "args.TextView", "args", "args.SubjectBuffer", "Me"}, terms)
465AssertEx.Equal({"InsertCommentOnContainingMember", "args.TextView", "args", "args.SubjectBuffer", "Me"}, terms)
478AssertEx.Equal({"nextHandler", "Me"}, terms)
491AssertEx.Equal({"nextHandler", "Me"}, terms)
504AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
517AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
530AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
543AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
556AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
569AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
582AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
595AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
608AssertEx.Equal({"args.TypedChar", "args", "nextHandler", "Me"}, terms)
621AssertEx.Equal({"args.TypedChar", "args", "nextHandler", "Me"}, terms)
634AssertEx.Equal({"InsertCommentAfterTripleApostrophes", "args.TextView", "args", "args.SubjectBuffer", "Me"}, terms)
647AssertEx.Equal({"InsertCommentAfterTripleApostrophes", "args.TextView", "args", "args.SubjectBuffer", "Me"}, terms)
660AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
673AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
686AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
699AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
712AssertEx.Equal({"nextHandler", "args", "Me"}, terms)
725AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
738AssertEx.Equal({"args", "nextHandler", "Me"}, terms)
751AssertEx.Equal({"SubjectBufferCaretPosition", "args.TextView", "args", "args.SubjectBuffer", "subjectBufferCaretPosition", "nextHandler", "Me"}, terms)
764AssertEx.Equal({"subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "SubjectBufferCaretPosition", "args.TextView", "args", "args.SubjectBuffer", "caretPosition", "Me"}, terms)
777AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
790AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
803AssertEx.Equal({"nextHandler", "Me"}, terms)
816AssertEx.Equal({"nextHandler", "Me"}, terms)
829AssertEx.Equal({"Me"}, terms)
842AssertEx.Equal({"args.SubjectBuffer.CurrentSnapshot", "args.SubjectBuffer", "args", "snapshot", "Me"}, terms)
855AssertEx.Equal({"snapshot", "args.SubjectBuffer.CurrentSnapshot", "args.SubjectBuffer", "args", "tree", "Me"}, terms)
868AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
881AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
894AssertEx.Equal({"nextHandler", "Me"}, terms)
907AssertEx.Equal({"nextHandler", "Me"}, terms)
920AssertEx.Equal({"Me"}, terms)
933AssertEx.Equal({"GetDocumentationComment", "tree", "caretPosition", "documentationComment", "Me"}, terms)
946AssertEx.Equal({"documentationComment", "ExteriorTriviaStartsLine", "tree", "caretPosition", "documentationComment.Span.Start", "documentationComment.Span", "GetDocumentationComment", "Me"}, terms)
959AssertEx.Equal({"documentationComment", "ExteriorTriviaStartsLine", "tree", "caretPosition", "documentationComment.Span.Start", "documentationComment.Span", "GetDocumentationComment", "Me"}, terms)
972AssertEx.Equal({"nextHandler", "Me"}, terms)
985AssertEx.Equal({"nextHandler", "Me"}, terms)
998AssertEx.Equal({"Me"}, terms)
1011AssertEx.Equal({"SpansSingleLine", "documentationComment", "snapshot", "Me"}, terms)
1024AssertEx.Equal({"SpansSingleLine", "documentationComment", "snapshot", "Me"}, terms)
1037AssertEx.Equal({"InsertLineBreakAndTripleApostrophesAtCaret", "subjectBufferCaretPosition", "Me"}, terms)
1050AssertEx.Equal({"InsertLineBreakAndTripleApostrophesAtCaret", "subjectBufferCaretPosition", "Me"}, terms)
1063AssertEx.Equal({"Me"}, terms)
1076AssertEx.Equal({"GetDocumentationCommentTargetMember", "documentationComment", "targetMember", "Me"}, terms)
1089AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "targetMember.Span.Start", "targetMember.Span", "documentationComment.Span.Start", "documentationComment.Span", "documentationComment", "GetDocumentationCommentTargetMember", "Me"}, terms)
1102AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "targetMember.Span.Start", "targetMember.Span", "documentationComment.Span.Start", "documentationComment.Span", "documentationComment", "GetDocumentationCommentTargetMember", "Me"}, terms)
1115AssertEx.Equal({"IsRestOfLineWhitespace", "snapshot", "caretPosition", "Me"}, terms)
1128AssertEx.Equal({"IsRestOfLineWhitespace", "snapshot", "caretPosition", "Me"}, terms)
1141AssertEx.Equal({"InsertLineBreakAndTripleApostrophesAtCaret", "subjectBufferCaretPosition", "Me"}, terms)
1154AssertEx.Equal({"InsertLineBreakAndTripleApostrophesAtCaret", "subjectBufferCaretPosition", "Me"}, terms)
1167AssertEx.Equal({"InsertCommentAfterTripleApostrophesCore", "targetMember", "tree", "caretPosition", "subjectBufferCaretPosition", "Me"}, terms)
1180AssertEx.Equal({"InsertCommentAfterTripleApostrophesCore", "targetMember", "tree", "caretPosition", "subjectBufferCaretPosition", "Me"}, terms)
1193AssertEx.Equal({"Me"}, terms)
1206AssertEx.Equal({"Me"}, terms)
1219AssertEx.Equal({"nextHandler", "Me"}, terms)
1232AssertEx.Equal({"args.SubjectBuffer.CurrentSnapshot", "args.SubjectBuffer", "args", "nextHandler", "postSnapshot", "Me"}, terms)
1245AssertEx.Equal({"postSnapshot", "args.SubjectBuffer.CurrentSnapshot", "args.SubjectBuffer", "args", "postTree", "Me"}, terms)
1258AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "postSnapshot", "postTree", "Me"}, terms)
1271AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "postSnapshot", "postTree", "Me"}, terms)
1284AssertEx.Equal({"Me"}, terms)
1297AssertEx.Equal({"Me"}, terms)
1310AssertEx.Equal({"GetDocumentationComment", "postTree", "caretPosition", "postDocumentationComment", "Me"}, terms)
1323AssertEx.Equal({"postDocumentationComment", "GetDocumentationComment", "postTree", "caretPosition", "Me"}, terms)
1336AssertEx.Equal({"postDocumentationComment", "GetDocumentationComment", "postTree", "caretPosition", "Me"}, terms)
1349AssertEx.Equal({"Me"}, terms)
1362AssertEx.Equal({"Me"}, terms)
1375AssertEx.Equal({"SpansSingleLine", "postDocumentationComment", "postSnapshot", "IsExteriorTriviaLeftOfPosition", "caretPosition", "Me"}, terms)
1388AssertEx.Equal({"SpansSingleLine", "postDocumentationComment", "postSnapshot", "IsExteriorTriviaLeftOfPosition", "caretPosition", "Me"}, terms)
1401AssertEx.Equal({"Me"}, terms)
1414AssertEx.Equal({"Me"}, terms)
1427AssertEx.Equal({"GetDocumentationCommentTargetMember", "postDocumentationComment", "postTargetMember", "Me"}, terms)
1440AssertEx.Equal({"postTargetMember.SupportsDocumentationComments", "postTargetMember", "caretPosition", "postTargetMember.Span.Start", "postTargetMember.Span", "GetDocumentationCommentTargetMember", "postDocumentationComment", "Me"}, terms)
1453AssertEx.Equal({"postTargetMember.SupportsDocumentationComments", "postTargetMember", "caretPosition", "postTargetMember.Span.Start", "postTargetMember.Span", "GetDocumentationCommentTargetMember", "postDocumentationComment", "Me"}, terms)
1466AssertEx.Equal({"Me"}, terms)
1479AssertEx.Equal({"Me"}, terms)
1492AssertEx.Equal({"postSnapshot.GetLeadingWhitespaceOfLineAtPosition", "postSnapshot", "caretPosition", "indent", "Me"}, terms)
1505AssertEx.Equal({"Span.FromBounds", "Span", "caretPosition", "postTargetMember.GetFirstToken().Span.Start", "postTargetMember.GetFirstToken().Span", "postTargetMember.GetFirstToken", "postTargetMember", "indent", "postSnapshot.GetLeadingWhitespaceOfLineAtPosition", "postSnapshot", "replaceSpan", "Me"}, terms)
1518AssertEx.Equal({"GenerateDocumentationCommentText", "postTargetMember", "postTree", "indent", "replaceSpan", "Span.FromBounds", "Span", "caretPosition", "postTargetMember.GetFirstToken().Span.Start", "postTargetMember.GetFirstToken().Span", "postTargetMember.GetFirstToken", "pair", "Me"}, terms)
1531AssertEx.Equal({"ReplaceWithCommentText", "replaceSpan", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "GenerateDocumentationCommentText", "postTargetMember", "postTree", "indent", "Me"}, terms)
1544AssertEx.Equal({"ReplaceWithCommentText", "replaceSpan", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "args", "nextHandler", "Me"}, terms)
1557AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
1570AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
1583AssertEx.Equal({"textView", "subjectBuffer", "subjectBufferCaretPosition", "Me"}, terms)
1596AssertEx.Equal({"subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "textView", "subjectBuffer", "caretPosition", "Me"}, terms)
1609AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
1622AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
1635AssertEx.Equal({"Me"}, terms)
1648AssertEx.Equal({"Me"}, terms)
1661AssertEx.Equal({"subjectBuffer.CurrentSnapshot", "subjectBuffer", "snapshot", "Me"}, terms)
1674AssertEx.Equal({"IsRestOfLineWhitespace", "snapshot", "caretPosition", "subjectBuffer.CurrentSnapshot", "subjectBuffer", "Me"}, terms)
1687AssertEx.Equal({"IsRestOfLineWhitespace", "snapshot", "caretPosition", "subjectBuffer.CurrentSnapshot", "subjectBuffer", "Me"}, terms)
1700AssertEx.Equal({"Me"}, terms)
1713AssertEx.Equal({"Me"}, terms)
1726AssertEx.Equal({"tree", "Me"}, terms)
1739AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
1752AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
1765AssertEx.Equal({"Me"}, terms)
1778AssertEx.Equal({"Me"}, terms)
1791AssertEx.Equal({"GetDocumentationComment", "tree", "caretPosition", "documentationComment", "Me"}, terms)
1804AssertEx.Equal({"documentationComment", "IsExteriorTriviaLeftOfPosition", "caretPosition", "SpansSingleLine", "snapshot", "GetDocumentationComment", "tree", "Me"}, terms)
1817AssertEx.Equal({"documentationComment", "IsExteriorTriviaLeftOfPosition", "caretPosition", "SpansSingleLine", "snapshot", "GetDocumentationComment", "tree", "Me"}, terms)
1830AssertEx.Equal({"Me"}, terms)
1843AssertEx.Equal({"Me"}, terms)
1856AssertEx.Equal({"GetDocumentationCommentTargetMember", "documentationComment", "targetMember", "Me"}, terms)
1869AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "GetDocumentationCommentTargetMember", "documentationComment", "Me"}, terms)
1882AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "GetDocumentationCommentTargetMember", "documentationComment", "Me"}, terms)
1895AssertEx.Equal({"Me"}, terms)
1908AssertEx.Equal({"Me"}, terms)
1921AssertEx.Equal({"caretPosition", "targetMember.Span.Start", "targetMember.Span", "targetMember", "Me"}, terms)
1934AssertEx.Equal({"caretPosition", "targetMember.Span.Start", "targetMember.Span", "targetMember", "Me"}, terms)
1947AssertEx.Equal({"Me"}, terms)
1960AssertEx.Equal({"Me"}, terms)
1973AssertEx.Equal({"InsertCommentAfterTripleApostrophesCore", "targetMember", "tree", "caretPosition", "subjectBufferCaretPosition", "Me"}, terms)
1986AssertEx.Equal({"InsertCommentAfterTripleApostrophesCore", "targetMember", "tree", "caretPosition", "subjectBufferCaretPosition", "Me"}, terms)
1999AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
2012AssertEx.Equal({"targetMember", "tree", "position", "subjectBufferCaretPosition", "Me"}, terms)
2025AssertEx.Equal({"targetMember", "tree", "position", "subjectBufferCaretPosition", "Me"}, terms)
2038AssertEx.Equal({"tree.Text.GetLeadingWhitespaceOfLineAtPosition", "tree.Text", "tree", "position", "indent", "targetMember", "subjectBufferCaretPosition", "Me"}, terms)
2051AssertEx.Equal({"GenerateDocumentationCommentText", "targetMember", "tree", "indent", "tree.Text.GetLeadingWhitespaceOfLineAtPosition", "tree.Text", "position", "pair", "Me"}, terms)
2064AssertEx.Equal({"InsertCommentText", "position", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "GenerateDocumentationCommentText", "targetMember", "tree", "indent", "Me"}, terms)
2077AssertEx.Equal({"InsertCommentText", "position", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "targetMember", "tree", "Me"}, terms)
2090AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
2103AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
2116AssertEx.Equal({"textView", "subjectBuffer", "subjectBufferCaretPosition", "Me"}, terms)
2129AssertEx.Equal({"subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "textView", "subjectBuffer", "caretPosition", "Me"}, terms)
2142AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
2155AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
2168AssertEx.Equal({"Me"}, terms)
2181AssertEx.Equal({"Me"}, terms)
2194AssertEx.Equal({"subjectBuffer.CurrentSnapshot", "subjectBuffer", "snapshot", "Me"}, terms)
2207AssertEx.Equal({"snapshot", "subjectBuffer.CurrentSnapshot", "subjectBuffer", "tree", "Me"}, terms)
2220AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
2233AssertEx.Equal({"_workspace.TryGetSyntaxTree", "_workspace", "snapshot", "tree", "Me"}, terms)
2246AssertEx.Equal({"Me"}, terms)
2259AssertEx.Equal({"Me"}, terms)
2272AssertEx.Equal({"tree.Root.FindToken", "tree.Root", "tree", "caretPosition", "token", "Me"}, terms)
2285AssertEx.Equal({"token.GetContainingMember", "token", "tree.Root.FindToken", "tree.Root", "tree", "caretPosition", "targetMember", "Me"}, terms)
2298AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "targetMember.Span.Start", "targetMember.Span", "caretPosition", "targetMember.Span.End", "token.GetContainingMember", "token", "Me"}, terms)
2311AssertEx.Equal({"targetMember.SupportsDocumentationComments", "targetMember", "targetMember.Span.Start", "targetMember.Span", "caretPosition", "targetMember.Span.End", "token.GetContainingMember", "token", "Me"}, terms)
2324AssertEx.Equal({"Me"}, terms)
2337AssertEx.Equal({"Me"}, terms)
2350AssertEx.Equal({"targetMember.HasDocumentationComment", "targetMember", "Me"}, terms)
2363AssertEx.Equal({"targetMember.HasDocumentationComment", "targetMember", "Me"}, terms)
2376AssertEx.Equal({"Me"}, terms)
2389AssertEx.Equal({"Me"}, terms)
2402AssertEx.Equal({"tree.Text.GetLeadingWhitespaceOfLineAtPosition", "tree.Text", "tree", "targetMember.GetFirstToken().Span.Start", "targetMember.GetFirstToken().Span", "targetMember.GetFirstToken", "targetMember", "indent", "Me"}, terms)
2415AssertEx.Equal({"GenerateDocumentationCommentText", "targetMember", "tree", "indent", "tree.Text.GetLeadingWhitespaceOfLineAtPosition", "tree.Text", "targetMember.GetFirstToken().Span.Start", "targetMember.GetFirstToken().Span", "targetMember.GetFirstToken", "pair", "Me"}, terms)
2428AssertEx.Equal({"InsertCommentText", "targetMember.Span.Start", "targetMember.Span", "targetMember", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "GenerateDocumentationCommentText", "tree", "indent", "Me"}, terms)
2441AssertEx.Equal({"InsertCommentText", "targetMember.Span.Start", "targetMember.Span", "targetMember", "pair.Item1", "pair", "pair.Item2", "subjectBufferCaretPosition", "Me"}, terms)
2454AssertEx.Equal({"textView", "subjectBuffer", "Me"}, terms)
2467AssertEx.Equal({"subjectBufferCaretPosition", "Me"}, terms)
2480AssertEx.Equal({"subjectBufferCaretPosition", "Me"}, terms)
2493AssertEx.Equal({"subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "caretPosition", "Me"}, terms)
2506AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
2519AssertEx.Equal({"caretPosition", "subjectBufferCaretPosition.Position", "subjectBufferCaretPosition", "Me"}, terms)
2532AssertEx.Equal({"Me"}, terms)
2545AssertEx.Equal({"Me"}, terms)
2558AssertEx.Equal({"subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "subjectBuffer", "Me"}, terms)
2571AssertEx.Equal({"subjectBuffer.CurrentSnapshot", "subjectBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "snapshot", "Me"}, terms)
2584AssertEx.Equal({"snapshot.GetLineNumberFromPosition", "snapshot", "caretPosition", "subjectBuffer.CurrentSnapshot", "subjectBuffer", "lineNumber", "Me"}, terms)
2597AssertEx.Equal({"String.Empty", "lineNumber", "snapshot.GetLineNumberFromPosition", "snapshot", "caretPosition", "indent", "Me"}, terms)
2610AssertEx.Equal({"lineNumber", "indent", "String.Empty", "Me"}, terms)
2623AssertEx.Equal({"lineNumber", "indent", "String.Empty", "Me"}, terms)
2636AssertEx.Equal({"snapshot.GetLineFromLineNumber", "snapshot", "lineNumber", "line", "Me"}, terms)
2649AssertEx.Equal({"line.GetText", "line", "snapshot.GetLineFromLineNumber", "snapshot", "lineNumber", "lineText", "Me"}, terms)
2662AssertEx.Equal({"lineText.IndexOf", "lineText", "line.GetText", "line", "slashesIndex", "Me"}, terms)
2675AssertEx.Equal({"slashesIndex", "lineText.IndexOf", "lineText", "Me"}, terms)
2688AssertEx.Equal({"slashesIndex", "lineText.IndexOf", "lineText", "Me"}, terms)
2701AssertEx.Equal({"indent", "slashesIndex", "Me"}, terms)
2714AssertEx.Equal({"indent", "slashesIndex", "Me"}, terms)
2727AssertEx.Equal({"Me"}, terms)
2740AssertEx.Equal({"vbCrLf", "indent", "text", "Me"}, terms)
2753AssertEx.Equal({"subjectBuffer.Insert", "subjectBuffer", "caretPosition", "text", "vbCrLf", "indent", "newSnapshot", "Me"}, terms)
2766AssertEx.Equal({"SnapshotPoint", "newSnapshot", "caretPosition", "text.Length", "text", "subjectBuffer.Insert", "subjectBuffer", "caretPoint", "Me"}, terms)
2779AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "SnapshotPoint", "newSnapshot", "caretPosition", "text.Length", "text", "Me"}, terms)
2792AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "Me"}, terms)
2805AssertEx.Equal({"position", "commentText", "caretOffset", "subjectBufferCaretPosition", "Me"}, terms)
2818AssertEx.Equal({"position", "commentText", "caretOffset", "subjectBufferCaretPosition", "Me"}, terms)
2831AssertEx.Equal({"String.IsNullOrWhiteSpace", "commentText", "Me"}, terms)
2844AssertEx.Equal({"String.IsNullOrWhiteSpace", "commentText", "Me"}, terms)
2857AssertEx.Equal({"Me"}, terms)
2870AssertEx.Equal({"Me"}, terms)
2883AssertEx.Equal({"subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "subjectBuffer", "Me"}, terms)
2896AssertEx.Equal({"subjectBuffer.Insert", "subjectBuffer", "position", "commentText", "subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "newSnapshot", "Me"}, terms)
2909AssertEx.Equal({"SnapshotPoint", "newSnapshot", "position", "caretOffset", "subjectBuffer.Insert", "subjectBuffer", "commentText", "caretPoint", "Me"}, terms)
2922AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "SnapshotPoint", "newSnapshot", "position", "caretOffset", "Me"}, terms)
2935AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "position", "commentText", "caretOffset", "Me"}, terms)
2948AssertEx.Equal({"replaceSpan", "commentText", "caretOffset", "subjectBufferCaretPosition", "Me"}, terms)
2961AssertEx.Equal({"replaceSpan", "commentText", "caretOffset", "subjectBufferCaretPosition", "Me"}, terms)
2974AssertEx.Equal({"String.IsNullOrWhiteSpace", "commentText", "Me"}, terms)
2987AssertEx.Equal({"String.IsNullOrWhiteSpace", "commentText", "Me"}, terms)
3000AssertEx.Equal({"Me"}, terms)
3013AssertEx.Equal({"Me"}, terms)
3026AssertEx.Equal({"subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "subjectBuffer", "Me"}, terms)
3039AssertEx.Equal({"subjectBuffer.Replace", "subjectBuffer", "replaceSpan", "commentText", "subjectBufferCaretPosition.SubjectBufferSnapshot.TextBuffer", "subjectBufferCaretPosition.SubjectBufferSnapshot", "subjectBufferCaretPosition", "newSnapshot", "Me"}, terms)
3052AssertEx.Equal({"SnapshotPoint", "newSnapshot", "replaceSpan.Start", "replaceSpan", "caretOffset", "subjectBuffer.Replace", "subjectBuffer", "commentText", "caretPoint", "Me"}, terms)
3065AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "SnapshotPoint", "newSnapshot", "replaceSpan.Start", "replaceSpan", "caretOffset", "Me"}, terms)
3078AssertEx.Equal({"subjectBufferCaretPosition.TryMoveTo", "subjectBufferCaretPosition", "caretPoint", "replaceSpan", "commentText", "caretOffset", "Me"}, terms)
3091AssertEx.Equal({"snapshot", "position", "Me"}, terms)
3104AssertEx.Equal({"snapshot", "position", "Me"}, terms)
3117AssertEx.Equal({"snapshot.GetLineFromPosition", "snapshot", "position", "line", "Me"}, terms)
3130AssertEx.Equal({"line.GetText().Substring", "line.GetText", "line", "position", "line.Start.Position", "line.Start", "snapshot.GetLineFromPosition", "snapshot", "lineTextToEnd", "Me"}, terms)
3143AssertEx.Equal({"String.IsNullOrWhiteSpace", "lineTextToEnd", "line.GetText().Substring", "line.GetText", "line", "position", "line.Start.Position", "line.Start", "Me"}, terms)
3156AssertEx.Equal({"String.IsNullOrWhiteSpace", "lineTextToEnd", "snapshot", "position", "Me"}, terms)
3169AssertEx.Equal({"tree", "position", "Me"}, terms)
3182AssertEx.Equal({"tree", "position", "Me"}, terms)
3195AssertEx.Equal({"tree.Root.FindTrivia", "tree.Root", "tree", "position", "trivia", "Me"}, terms)
3208AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationComment", "SyntaxKind", "tree.Root.FindTrivia", "tree.Root", "tree", "position", "Me"}, terms)
3221AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationComment", "SyntaxKind", "tree.Root.FindTrivia", "tree.Root", "tree", "position", "Me"}, terms)
3234AssertEx.Equal({"trivia.GetStructure", "trivia", "DocumentationCommentSyntax", "Me"}, terms)
3247AssertEx.Equal({"trivia.GetStructure", "trivia", "DocumentationCommentSyntax", "Me"}, terms)
3260AssertEx.Equal({"Me"}, terms)
3273AssertEx.Equal({"Me"}, terms)
3286AssertEx.Equal({"tree", "position", "Me"}, terms)
3299AssertEx.Equal({"tree", "documentationComment", "position", "Me"}, terms)
3312AssertEx.Equal({"tree", "documentationComment", "position", "Me"}, terms)
3325AssertEx.Equal({"tree.Text.GetLineFromPosition", "tree.Text", "tree", "position", "line", "documentationComment", "Me"}, terms)
3338AssertEx.Equal({"line.GetFirstNonWhitespacePosition", "line", "tree.Text.GetLineFromPosition", "tree.Text", "tree", "position", "firstNonWhitespacePosition", "Me"}, terms)
3351AssertEx.Equal({"firstNonWhitespacePosition.HasValue", "firstNonWhitespacePosition", "line.GetFirstNonWhitespacePosition", "line", "Me"}, terms)
3364AssertEx.Equal({"firstNonWhitespacePosition.HasValue", "firstNonWhitespacePosition", "line.GetFirstNonWhitespacePosition", "line", "Me"}, terms)
3377AssertEx.Equal({"Me"}, terms)
3390AssertEx.Equal({"Me"}, terms)
3403AssertEx.Equal({"documentationComment.FindToken", "documentationComment", "firstNonWhitespacePosition.Value", "firstNonWhitespacePosition", "token", "Me"}, terms)
3416AssertEx.Equal({"token.LeadingTrivia.FirstOrDefault", "token.LeadingTrivia", "token", "documentationComment.FindToken", "documentationComment", "firstNonWhitespacePosition.Value", "firstNonWhitespacePosition", "trivia", "Me"}, terms)
3429AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationCommentExteriorTrivia", "SyntaxKind", "token.LeadingTrivia.FirstOrDefault", "token.LeadingTrivia", "token", "Me"}, terms)
3442AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationCommentExteriorTrivia", "SyntaxKind", "tree", "documentationComment", "position", "Me"}, terms)
3455AssertEx.Equal({"documentationComment", "position", "Me"}, terms)
3468AssertEx.Equal({"documentationComment", "position", "Me"}, terms)
3481AssertEx.Equal({"documentationComment.FindToken", "documentationComment", "position", "token", "Me"}, terms)
3494AssertEx.Equal({"token.LeadingTrivia.FirstOrDefault", "token.LeadingTrivia", "token", "documentationComment.FindToken", "documentationComment", "position", "trivia", "Me"}, terms)
3507AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationCommentExteriorTrivia", "SyntaxKind", "trivia.Span.End", "trivia.Span", "position", "token.LeadingTrivia.FirstOrDefault", "token.LeadingTrivia", "token", "Me"}, terms)
3520AssertEx.Equal({"trivia.Kind", "trivia", "SyntaxKind.DocumentationCommentExteriorTrivia", "SyntaxKind", "trivia.Span.End", "trivia.Span", "position", "documentationComment", "Me"}, terms)
3533AssertEx.Equal({"documentationComment", "Me"}, terms)
3546AssertEx.Equal({"documentationComment", "Me"}, terms)
3559AssertEx.Equal({"documentationComment.ParentTrivia", "documentationComment", "parentTrivia", "Me"}, terms)
3572AssertEx.Equal({"parentTrivia.Token.GetAncestor(Of StatementSyntax)", "parentTrivia.Token", "parentTrivia", "documentationComment.ParentTrivia", "documentationComment", "Me"}, terms)
3585AssertEx.Equal({"parentTrivia.Token.GetAncestor(Of StatementSyntax)", "parentTrivia.Token", "parentTrivia", "documentationComment", "Me"}, terms)
3598AssertEx.Equal({"documentationComment", "snapshot", "Me"}, terms)
3611AssertEx.Equal({"documentationComment", "snapshot", "Me"}, terms)
3624AssertEx.Equal({"snapshot.GetLineNumberFromPosition", "snapshot", "documentationComment.FullSpan.Start", "documentationComment.FullSpan", "documentationComment", "startLine", "Me"}, terms)
3637AssertEx.Equal({"documentationComment.GetLastToken", "documentationComment", "startLine", "snapshot.GetLineNumberFromPosition", "snapshot", "documentationComment.FullSpan.Start", "documentationComment.FullSpan", "lastToken", "Me"}, terms)
3650AssertEx.Equal({"snapshot.GetLineNumberFromPosition", "snapshot", "lastToken.Span.Start", "lastToken.Span", "lastToken", "documentationComment.GetLastToken", "documentationComment", "endLine", "Me"}, terms)
3663AssertEx.Equal({"startLine", "endLine", "snapshot.GetLineNumberFromPosition", "snapshot", "lastToken.Span.Start", "lastToken.Span", "lastToken", "Me"}, terms)
3676AssertEx.Equal({"startLine", "endLine", "documentationComment", "snapshot", "Me"}, terms)
3689AssertEx.Equal({"targetMember", "tree", "indent", "prependExteriorTrivia", "appendLineBreakAndIndent", "Me"}, terms)
3702AssertEx.Equal({"targetMember", "tree", "indent", "prependExteriorTrivia", "appendLineBreakAndIndent", "Me"}, terms)
3715AssertEx.Equal({"builder", "targetMember", "tree", "indent", "prependExteriorTrivia", "appendLineBreakAndIndent", "Me"}, terms)
3728AssertEx.Equal({"prependExteriorTrivia", "builder", "Me"}, terms)
3741AssertEx.Equal({"prependExteriorTrivia", "builder", "Me"}, terms)
3754AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
3767AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
3780AssertEx.Equal({"builder.AppendLine", "builder", "Me"}, terms)
3793AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
3806AssertEx.Equal({"builder.Length", "builder", "builder.Append", "indent", "offset", "Me"}, terms)
3819AssertEx.Equal({"builder.AppendLine", "builder", "offset", "builder.Length", "Me"}, terms)
3832AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
3845AssertEx.Equal({"targetMember.GetTypeParameterList", "targetMember", "builder.Append", "builder", "indent", "typeParameterList", "Me"}, terms)
3858AssertEx.Equal({"typeParameterList", "targetMember.GetTypeParameterList", "targetMember", "Me"}, terms)
3871AssertEx.Equal({"typeParameterList", "targetMember.GetTypeParameterList", "targetMember", "Me"}, terms)
3884AssertEx.Equal({"typeParameter", "typeParameterList.Parameters", "typeParameterList", "Me"}, terms)
3897AssertEx.Equal({"typeParameter", "typeParameterList.Parameters", "typeParameterList", "Me"}, terms)
3910AssertEx.Equal({"builder.AppendLine", "builder", "Me"}, terms)
3923AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
3936AssertEx.Equal({"typeParameter.Name.GetText", "typeParameter.Name", "typeParameter", "builder.Append", "builder", "indent", "typeParameterName", "Me"}, terms)
3949AssertEx.Equal({"String.IsNullOrWhiteSpace", "typeParameterName", "typeParameter.Name.GetText", "typeParameter.Name", "typeParameter", "Me"}, terms)
3962AssertEx.Equal({"String.IsNullOrWhiteSpace", "typeParameterName", "typeParameter.Name.GetText", "typeParameter.Name", "typeParameter", "Me"}, terms)
3975AssertEx.Equal({"builder.Append", "builder", "typeParameterName", "Me"}, terms)
3988AssertEx.Equal({"builder.Append", "builder", "typeParameterName", "Me"}, terms)
4001AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
4014AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
4027AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
4040AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
4053AssertEx.Equal({"Me"}, terms)
4066AssertEx.Equal({"targetMember.GetParameterList", "targetMember", "parameterList", "Me"}, terms)
4079AssertEx.Equal({"parameterList", "targetMember.GetParameterList", "targetMember", "Me"}, terms)
4092AssertEx.Equal({"parameterList", "targetMember.GetParameterList", "targetMember", "Me"}, terms)
4105AssertEx.Equal({"parameter", "parameterList.Parameters", "parameterList", "Me"}, terms)
4118AssertEx.Equal({"parameter", "parameterList.Parameters", "parameterList", "Me"}, terms)
4131AssertEx.Equal({"builder.AppendLine", "builder", "Me"}, terms)
4144AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
4157AssertEx.Equal({"builder.Append", "builder", "parameter.Name.GetText", "parameter.Name", "parameter", "indent", "Me"}, terms)
4170AssertEx.Equal({"builder.Append", "builder", "parameter.Name.GetText", "parameter.Name", "parameter", "Me"}, terms)
4183AssertEx.Equal({"builder.Append", "builder", "Me"}, terms)
4196AssertEx.Equal({"Me"}, terms)
4209AssertEx.Equal({"targetMember.GetReturnType", "targetMember", "returnType", "Me"}, terms)
4222AssertEx.Equal({"returnType", "targetMember.GetReturnType", "targetMember", "Me"}, terms)
4235AssertEx.Equal({"returnType", "targetMember.GetReturnType", "targetMember", "Me"}, terms)
4248AssertEx.Equal({"builder.AppendLine", "builder", "Me"}, terms)
4261AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
4274AssertEx.Equal({"builder.Append", "builder", "indent", "Me"}, terms)
4287AssertEx.Equal({"appendLineBreakAndIndent", "Me"}, terms)
4300AssertEx.Equal({"appendLineBreakAndIndent", "Me"}, terms)
4313AssertEx.Equal({"builder.AppendLine", "builder", "Me"}, terms)
4326AssertEx.Equal({"builder.Append", "builder", "indent", "builder.AppendLine", "Me"}, terms)
4339AssertEx.Equal({"builder.Append", "builder", "indent", "Me"}, terms)
4352AssertEx.Equal({"Tuple.Create", "Tuple", "builder.ToString", "builder", "offset", "Me"}, terms)
4365AssertEx.Equal({"Tuple.Create", "Tuple", "builder.ToString", "builder", "offset", "targetMember", "tree", "indent", "prependExteriorTrivia", "appendLineBreakAndIndent", "Me"}, terms)
4378AssertEx.Equal({"Me"}, terms)
4391AssertEx.Equal({"Me"}, terms)
4410AssertEx.Equal({"c.E", "c", "M", "x", "Me"}, terms)
4429AssertEx.Equal({"c.E", "c", "M", "x", "Me"}, terms)
4447AssertEx.Equal({"E", "x", "Me"}, terms)
4464AssertEx.Equal({"x", "y", "Me"}, terms)
4481AssertEx.Equal({"intArray", "x", "Me"}, terms)
4498AssertEx.Equal({"intArray", "x", "Me"}, terms)
4518AssertEx.Equal({"x", "y", "Me"}, terms)
4537AssertEx.Equal({"s", "x", "y", "Me"}, terms)
4555AssertEx.Equal({"b", "c"}, terms)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (41)
PDB\PortablePdbTests.vb (6)
86AssertEx.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
100AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
139AssertEx.Equal({DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb}, entries.Select(Function(e) e.Type))
154AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
211AssertEx.Equal(sourceLinkBlob, actualBlob)
248AssertEx.Equal(sourceLinkBlob, actualBlob)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (30)
Semantics\FieldInitializerBindingTests.vb (22)
908AssertEx.Equal(_ZERO4, actual)
979AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
981AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
987AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
989AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
995AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
997AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_OBJECT},
1003AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1005AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1011AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1013AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_I4},
1019AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1021AssertEx.Equal(New Byte() {s_FIELD_SIGNATURE_CALLING_CONVENTION, s_ELEMENT_TYPE_U1},
1027AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1034AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1041AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1048AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
1055AssertEx.Equal(_ZERO1, reader.GetBlobBytes(constant.Value))
1062AssertEx.Equal(_ONE1, reader.GetBlobBytes(constant.Value))
1320AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1325AssertEx.Equal(_ZERO4, reader.GetBlobBytes(constant.Value))
1330AssertEx.Equal(_ONE4, reader.GetBlobBytes(constant.Value))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (18)
SolutionTests\SolutionTests.cs (15)
1416AssertEx.Equal(new[] { projectRef2 }, solution3.GetProject(projectId)!.ProjectReferences);
1417AssertEx.Equal(new[] { projectRef2, externalProjectRef }, solution3.GetProject(projectId)!.AllProjectReferences);
1449AssertEx.Equal(new[] { projectRef2 }, solution2.GetProject(projectId)!.AllProjectReferences);
1453AssertEx.Equal(new[] { externalProjectRef }, solution3.GetProject(projectId)!.AllProjectReferences);
1536AssertEx.Equal(new[] { metadataRef1, metadataRef2 }, solution3.GetProject(projectId)!.MetadataReferences);
1559AssertEx.Equal(new[] { metadataRef2 }, solution2.GetProject(projectId)!.MetadataReferences);
1606AssertEx.Equal(new[] { analyzerRef1, analyzerRef2 }, solution3.GetProject(projectId)!.AnalyzerReferences);
1632AssertEx.Equal(new[] { analyzerRef2 }, solution2.GetProject(projectId)!.AnalyzerReferences);
1674AssertEx.Equal(new[] { analyzerRef1, analyzerRef2 }, solution3.AnalyzerReferences);
1698AssertEx.Equal(new[] { analyzerRef2 }, solution2.AnalyzerReferences);
1724AssertEx.Equal(folders, document.Folders);
1754AssertEx.Equal(folders, document.Folders);
1782AssertEx.Equal(folders, document.Folders);
1811AssertEx.Equal(folders, document2.Folders);
1847AssertEx.Equal(folders, document2.Folders);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
Microsoft.VisualStudio.LanguageServices.UnitTests (11)
MoveToNamespace\VisualStudioMoveToNamespaceServiceTests.vb (5)
21AssertEx.Equal({namespaces(0)}, service.History)
24AssertEx.Equal({namespaces(1), namespaces(0)}, service.History)
27AssertEx.Equal({namespaces(2), namespaces(1), namespaces(0)}, service.History)
30AssertEx.Equal({namespaces(3), namespaces(2), namespaces(1)}, service.History)
33AssertEx.Equal({namespaces(2), namespaces(3), namespaces(1)}, service.History)
Roslyn.VisualStudio.Next.UnitTests (1)