996 references to VerifyItemExistsAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (996)
Completion\CompletionProviders\AttributeNamedParameterCompletionProviderTests.cs (6)
72
=>
VerifyItemExistsAsync
("""
90
=>
VerifyItemExistsAsync
("""
127
await
VerifyItemExistsAsync
(markup, "Text", displayTextSuffix: " =");
133
=>
VerifyItemExistsAsync
("""
148
=>
VerifyItemExistsAsync
("""
163
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (4)
49
await
VerifyItemExistsAsync
(GetMarkup(code, languageVersion), CompletionDisplayTextAwait, glyph: Glyph.Keyword, expectedDescriptionOrNull: expectedDescription, inlineDescription: inlineDescription);
54
await
VerifyItemExistsAsync
(GetMarkup(code, languageVersion), CompletionDisplayTextAwaitAndConfigureAwait, glyph: Glyph.Keyword, expectedDescriptionOrNull: expectedDescription, inlineDescription: inlineDescription);
324
await
VerifyItemExistsAsync
(markup, "await");
325
await
VerifyItemExistsAsync
(markup, "awaitf");
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (14)
90
=>
VerifyItemExistsAsync
("""
108
=>
VerifyItemExistsAsync
("""
142
? (markup, expectedItem) =>
VerifyItemExistsAsync
(markup, expectedItem, displayTextPrefix: "(", displayTextSuffix: ")")
331
=>
VerifyItemExistsAsync
("""
366
await
VerifyItemExistsAsync
(Markup, "int", displayTextPrefix: "(", displayTextSuffix: ")",
397
await
VerifyItemExistsAsync
(Markup, "int?", displayTextPrefix: "(", displayTextSuffix: ")",
450
await
VerifyItemExistsAsync
(Markup, "byte", displayTextPrefix: "(", displayTextSuffix: ")",
473
await
VerifyItemExistsAsync
(Markup, "byte?", displayTextPrefix: "(", displayTextSuffix: ")",
517
await
VerifyItemExistsAsync
(Markup, "int", displayTextPrefix: "(", displayTextSuffix: ")",
541
await
VerifyItemExistsAsync
(Markup, "int?", displayTextPrefix: "(", displayTextSuffix: ")",
571
await
VerifyItemExistsAsync
(Markup, "int", displayTextPrefix: "(", displayTextSuffix: ")",
590
? markup =>
VerifyItemExistsAsync
(markup, "int", displayTextPrefix: "(", displayTextSuffix: ")")
607
=>
VerifyItemExistsAsync
("""
628
=>
VerifyItemExistsAsync
($$"""
Completion\CompletionProviders\CrefCompletionProviderTests.cs (37)
63
=>
VerifyItemExistsAsync
("""
76
=>
VerifyItemExistsAsync
("""
105
await
VerifyItemExistsAsync
(text, "int");
110
=>
VerifyItemExistsAsync
("""
125
=>
VerifyItemExistsAsync
("""
144
=>
VerifyItemExistsAsync
("""
157
=>
VerifyItemExistsAsync
("""
176
await
VerifyItemExistsAsync
(text, "M(int)");
177
await
VerifyItemExistsAsync
(text, "M(ref long)");
178
await
VerifyItemExistsAsync
(text, "M{T}(T)");
183
=>
VerifyItemExistsAsync
("""
209
await
VerifyItemExistsAsync
(text, "C()");
210
await
VerifyItemExistsAsync
(text, "C(T)");
211
await
VerifyItemExistsAsync
(text, "C(int)");
216
=>
VerifyItemExistsAsync
("""
229
=>
VerifyItemExistsAsync
("""
272
await
VerifyItemExistsAsync
(text, "operator !(Test)");
273
await
VerifyItemExistsAsync
(text, "operator +(Test, Test)");
274
await
VerifyItemExistsAsync
(text, "operator true(Test)");
275
await
VerifyItemExistsAsync
(text, "operator false(Test)");
280
=>
VerifyItemExistsAsync
("""
318
await
VerifyItemExistsAsync
(text, "M(ref int)");
319
await
VerifyItemExistsAsync
(text, "M(out long)");
349
await
VerifyItemExistsAsync
(text, "N");
350
await
VerifyItemExistsAsync
(text, "C");
427
await
VerifyItemExistsAsync
(text, "uint");
428
await
VerifyItemExistsAsync
(text, "UInt32");
444
=>
VerifyItemExistsAsync
("""
455
=>
VerifyItemExistsAsync
($$"""
466
=>
VerifyItemExistsAsync
("""
478
=>
VerifyItemExistsAsync
("""
490
=>
VerifyItemExistsAsync
("""
504
=>
VerifyItemExistsAsync
("""
532
await
VerifyItemExistsAsync
(text, "Dispose()");
533
await
VerifyItemExistsAsync
(text, "Dispose(bool)");
552
await
VerifyItemExistsAsync
(text, "Dispose()");
553
await
VerifyItemExistsAsync
(text, "Dispose(bool)");
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (174)
339
=>
VerifyItemExistsAsync
($$"""
368
await
VerifyItemExistsAsync
(markup, "myClass", glyph: Glyph.FieldPublic);
369
await
VerifyItemExistsAsync
(markup, "MyClass", glyph: Glyph.PropertyPublic);
370
await
VerifyItemExistsAsync
(markup, "GetMyClass", glyph: Glyph.MethodPublic);
375
=>
VerifyItemExistsAsync
("""
385
=>
VerifyItemExistsAsync
("""
401
await
VerifyItemExistsAsync
(markup, "GetC");
416
await
VerifyItemExistsAsync
(markup, "cancellationToken");
417
await
VerifyItemExistsAsync
(markup, "cancellation");
418
await
VerifyItemExistsAsync
(markup, "token");
423
=>
VerifyItemExistsAsync
("""
433
=>
VerifyItemExistsAsync
("""
443
=>
VerifyItemExistsAsync
("""
461
await
VerifyItemExistsAsync
(markup, "Some");
462
await
VerifyItemExistsAsync
(markup, "SomeWonderfully");
463
await
VerifyItemExistsAsync
(markup, "SomeWonderfullyLong");
464
await
VerifyItemExistsAsync
(markup, "SomeWonderfullyLongClass");
465
await
VerifyItemExistsAsync
(markup, "Name");
466
await
VerifyItemExistsAsync
(markup, "ClassName");
467
await
VerifyItemExistsAsync
(markup, "LongClassName");
468
await
VerifyItemExistsAsync
(markup, "WonderfullyLongClassName");
469
await
VerifyItemExistsAsync
(markup, "SomeWonderfullyLongClassName");
474
=>
VerifyItemExistsAsync
("""
484
=>
VerifyItemExistsAsync
("""
494
=>
VerifyItemExistsAsync
("""
504
=>
VerifyItemExistsAsync
("""
515
=>
VerifyItemExistsAsync
("""
525
=>
VerifyItemExistsAsync
("""
534
=>
VerifyItemExistsAsync
("""
542
=>
VerifyItemExistsAsync
("""
553
=>
VerifyItemExistsAsync
("""
579
await
VerifyItemExistsAsync
(markup, "dbContext", glyph: Glyph.Parameter);
580
await
VerifyItemExistsAsync
(markup, "db", glyph: Glyph.Parameter);
584
await
VerifyItemExistsAsync
(markup, "context", glyph: Glyph.Parameter);
588
await
VerifyItemExistsAsync
(markup, "context1", glyph: Glyph.Parameter);
610
await
VerifyItemExistsAsync
(markup, "dbContext", glyph: Glyph.Parameter);
611
await
VerifyItemExistsAsync
(markup, "db", glyph: Glyph.Parameter);
615
await
VerifyItemExistsAsync
(markup, "context", glyph: Glyph.Parameter);
619
await
VerifyItemExistsAsync
(markup, "context1", glyph: Glyph.Parameter);
641
await
VerifyItemExistsAsync
(markup, "dbContext", glyph: Glyph.Parameter);
642
await
VerifyItemExistsAsync
(markup, "db", glyph: Glyph.Parameter);
646
await
VerifyItemExistsAsync
(markup, "context", glyph: Glyph.Parameter);
650
await
VerifyItemExistsAsync
(markup, "context1", glyph: Glyph.Parameter);
672
await
VerifyItemExistsAsync
(markup, "cancellationToken", glyph: Glyph.Parameter);
688
await
VerifyItemExistsAsync
(markup, "myTok", glyph: Glyph.Parameter);
689
await
VerifyItemExistsAsync
(markup, "cancellationToken", glyph: Glyph.Parameter);
704
await
VerifyItemExistsAsync
(markup, "middleName", glyph: Glyph.Parameter);
705
await
VerifyItemExistsAsync
(markup, "lastName", glyph: Glyph.Parameter);
731
await
VerifyItemExistsAsync
(markup, "cancellationToken", glyph: Glyph.Parameter);
769
await
VerifyItemExistsAsync
(markup, "stringBuilder", glyph: Glyph.Parameter);
770
await
VerifyItemExistsAsync
(markup, "@string", glyph: Glyph.Parameter);
771
await
VerifyItemExistsAsync
(markup, "builder", glyph: Glyph.Parameter);
776
=>
VerifyItemExistsAsync
("""
786
=>
VerifyItemExistsAsync
("""
810
await
VerifyItemExistsAsync
(markup, "stringBuilder");
811
await
VerifyItemExistsAsync
(markup, "@string");
812
await
VerifyItemExistsAsync
(markup, "builder");
829
await
VerifyItemExistsAsync
(markup, "item");
830
await
VerifyItemExistsAsync
(markup, "Item");
831
await
VerifyItemExistsAsync
(markup, "GetItem");
848
await
VerifyItemExistsAsync
(markup, "items");
849
await
VerifyItemExistsAsync
(markup, "Items");
850
await
VerifyItemExistsAsync
(markup, "GetItems");
1005
await
VerifyItemExistsAsync
(markup, "MyClasses");
1029
=>
VerifyItemExistsAsync
("""
1072
await
VerifyItemExistsAsync
(markup, "myClass", glyph: Glyph.FieldPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name);
1073
await
VerifyItemExistsAsync
(markup, "MyClass", glyph: Glyph.PropertyPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name);
1074
await
VerifyItemExistsAsync
(markup, "GetMyClass", glyph: Glyph.MethodPublic, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name);
1089
await
VerifyItemExistsAsync
(markup, "myClass", glyph: Glyph.Local, expectedDescriptionOrNull: CSharpFeaturesResources.Suggested_name);
1104
await
VerifyItemExistsAsync
(markup, "my");
1105
await
VerifyItemExistsAsync
(markup, "type");
1106
await
VerifyItemExistsAsync
(markup, "myType");
1118
await
VerifyItemExistsAsync
(markup, "my");
1119
await
VerifyItemExistsAsync
(markup, "type");
1120
await
VerifyItemExistsAsync
(markup, "myType");
1145
=>
VerifyItemExistsAsync
("""
1157
=>
VerifyItemExistsAsync
("""
1169
=>
VerifyItemExistsAsync
("""
1181
=>
VerifyItemExistsAsync
("""
1205
=>
VerifyItemExistsAsync
("""
1217
=>
VerifyItemExistsAsync
("""
1229
=>
VerifyItemExistsAsync
("""
1241
=>
VerifyItemExistsAsync
("""
1250
=>
VerifyItemExistsAsync
("""
1259
=>
VerifyItemExistsAsync
("""
1268
=>
VerifyItemExistsAsync
("""
1277
=>
VerifyItemExistsAsync
("""
1286
=>
VerifyItemExistsAsync
("""
1308
=>
VerifyItemExistsAsync
("""
1333
=>
VerifyItemExistsAsync
("""
1343
=>
VerifyItemExistsAsync
("""
1362
await
VerifyItemExistsAsync
(markup, "cancellationTokens");
1363
await
VerifyItemExistsAsync
(markup, "cancellations");
1364
await
VerifyItemExistsAsync
(markup, "tokens");
1378
await
VerifyItemExistsAsync
(markup, "cancellationTokens");
1379
await
VerifyItemExistsAsync
(markup, "cancellations");
1380
await
VerifyItemExistsAsync
(markup, "tokens");
1394
await
VerifyItemExistsAsync
(markup, "cancellationTokens");
1395
await
VerifyItemExistsAsync
(markup, "cancellations");
1396
await
VerifyItemExistsAsync
(markup, "tokens");
1410
await
VerifyItemExistsAsync
(markup, "tests");
1415
=>
VerifyItemExistsAsync
("""
1440
=>
VerifyItemExistsAsync
("""
1467
=>
VerifyItemExistsAsync
("""
1497
await
VerifyItemExistsAsync
(markup, "myClasses");
1515
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1516
await
VerifyItemExistsAsync
(markup, "cancellation");
1517
await
VerifyItemExistsAsync
(markup, "token");
1535
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1536
await
VerifyItemExistsAsync
(markup, "cancellation");
1537
await
VerifyItemExistsAsync
(markup, "token");
1558
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1559
await
VerifyItemExistsAsync
(markup, "cancellation");
1560
await
VerifyItemExistsAsync
(markup, "token");
1578
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1579
await
VerifyItemExistsAsync
(markup, "cancellation");
1597
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1598
await
VerifyItemExistsAsync
(markup, "token");
1619
await
VerifyItemExistsAsync
(markup, "cancellationToken");
1620
await
VerifyItemExistsAsync
(markup, "token");
1625
=>
VerifyItemExistsAsync
("""
1639
=>
VerifyItemExistsAsync
("""
1653
=>
VerifyItemExistsAsync
("""
1667
=>
VerifyItemExistsAsync
("""
1695
=>
VerifyItemExistsAsync
("""
1709
=>
VerifyItemExistsAsync
("""
1723
=>
VerifyItemExistsAsync
("""
1749
=>
VerifyItemExistsAsync
("""
1766
=>
VerifyItemExistsAsync
("""
1783
=>
VerifyItemExistsAsync
("""
1799
=>
VerifyItemExistsAsync
("""
1818
=>
VerifyItemExistsAsync
("""
1835
=>
VerifyItemExistsAsync
("""
1852
=>
VerifyItemExistsAsync
("""
1871
=>
VerifyItemExistsAsync
("""
1887
=>
VerifyItemExistsAsync
("""
1904
=>
VerifyItemExistsAsync
("""
1921
=>
VerifyItemExistsAsync
("""
1938
=>
VerifyItemExistsAsync
("""
1954
=>
VerifyItemExistsAsync
("""
1968
=>
VerifyItemExistsAsync
("""
1983
=>
VerifyItemExistsAsync
("""
1996
=>
VerifyItemExistsAsync
("""
2009
=>
VerifyItemExistsAsync
("""
2022
=>
VerifyItemExistsAsync
("""
2035
=>
VerifyItemExistsAsync
("""
2048
=>
VerifyItemExistsAsync
("""
2061
=>
VerifyItemExistsAsync
("""
2090
await
VerifyItemExistsAsync
(markup, "ConfigurationField", glyph: Glyph.FieldPublic,
2092
await
VerifyItemExistsAsync
(markup, "ConfigurationProperty", glyph: Glyph.PropertyPublic,
2094
await
VerifyItemExistsAsync
(markup, "ConfigurationMethod", glyph: Glyph.MethodPublic,
2121
await
VerifyItemExistsAsync
(markup, "ConfigurationLocal", glyph: Glyph.Local,
2123
await
VerifyItemExistsAsync
(markup, "ConfigurationLocalFunction", glyph: Glyph.MethodPublic,
2150
await
VerifyItemExistsAsync
(markup, "classB1", glyph: Glyph.Local,
2169
await
VerifyItemExistsAsync
(markup, "classB1", glyph: Glyph.Local,
2175
=>
VerifyItemExistsAsync
("""
2192
=>
VerifyItemExistsAsync
("""
2223
await
VerifyItemExistsAsync
(markup, "classB1", glyph: Glyph.Local,
2245
await
VerifyItemExistsAsync
(markup, "classB2", glyph: Glyph.Local,
2268
await
VerifyItemExistsAsync
(markup, "classB1", glyph: Glyph.Local,
2274
=>
VerifyItemExistsAsync
("""
2287
=>
VerifyItemExistsAsync
("""
2327
await
VerifyItemExistsAsync
(markup, "classB", glyph: Glyph.Parameter,
2402
=>
VerifyItemExistsAsync
("""
2417
=>
VerifyItemExistsAsync
("""
2435
=>
VerifyItemExistsAsync
("""
2453
=>
VerifyItemExistsAsync
("""
2497
await
VerifyItemExistsAsync
("""
2538
await
VerifyItemExistsAsync
(markup, "interestingName");
2539
await
VerifyItemExistsAsync
(markup, "cancellationToken");
2544
=>
VerifyItemExistsAsync
("""
2569
=>
VerifyItemExistsAsync
("""
2582
=>
VerifyItemExistsAsync
("""
2595
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProviderTests.cs (63)
50
await
VerifyItemExistsAsync
(markup + colors, "Colors");
206
await
VerifyItemExistsAsync
(markup, typeName);
234
await
VerifyItemExistsAsync
(markup, typeName);
260
await
VerifyItemExistsAsync
(markup, typeName);
284
await
VerifyItemExistsAsync
(markup, typeName);
308
await
VerifyItemExistsAsync
(markup, typeName);
445
await
VerifyItemExistsAsync
(markup, typeName);
470
await
VerifyItemExistsAsync
(markup, typeName);
497
=>
VerifyItemExistsAsync
("""
518
=>
VerifyItemExistsAsync
("""
627
await
VerifyItemExistsAsync
(markup, "TypeContainer");
628
await
VerifyItemExistsAsync
(markup, "TypeContainer.Foo1");
629
await
VerifyItemExistsAsync
(markup, "TypeContainer.Foo2");
649
await
VerifyItemExistsAsync
(markup, "D");
675
await
VerifyItemExistsAsync
(markup, "D");
705
await
VerifyItemExistsAsync
(markup, "D");
767
await
VerifyItemExistsAsync
(markup + colors, "Colors");
798
await
VerifyItemExistsAsync
(markup + colors, "Colors");
897
=>
VerifyItemExistsAsync
("""
914
=>
VerifyItemExistsAsync
("""
931
=>
VerifyItemExistsAsync
("""
948
=>
VerifyItemExistsAsync
("""
965
=>
VerifyItemExistsAsync
("""
982
=>
VerifyItemExistsAsync
("""
1011
=>
VerifyItemExistsAsync
("""
1067
=>
VerifyItemExistsAsync
("""
1306
await
VerifyItemExistsAsync
(markup + goo, "Goo.AMember", usePreviousCharAsTrigger: true);
1307
await
VerifyItemExistsAsync
(markup + goo, "Goo.AMember", usePreviousCharAsTrigger: false);
1309
await
VerifyItemExistsAsync
(markup + gooLike, "Goo.AMember", usePreviousCharAsTrigger: false);
1342
await
VerifyItemExistsAsync
(markup + goo, "Goo.AMember", usePreviousCharAsTrigger: true);
1343
await
VerifyItemExistsAsync
(markup + goo, "Goo.AMember", usePreviousCharAsTrigger: false);
1345
await
VerifyItemExistsAsync
(markup + gooLike, "Goo.AMember", usePreviousCharAsTrigger: false);
1382
await
VerifyItemExistsAsync
(e + markup, "E.A", usePreviousCharAsTrigger: true);
1383
await
VerifyItemExistsAsync
(e + markup, "E.A", usePreviousCharAsTrigger: false);
1385
await
VerifyItemExistsAsync
(eLike + markup, "E.A", usePreviousCharAsTrigger: false);
1392
=>
VerifyItemExistsAsync
($$"""
1409
=>
VerifyItemExistsAsync
($$"""
1427
=>
VerifyItemExistsAsync
($$"""
1453
=>
VerifyItemExistsAsync
($$"""
1503
await
VerifyItemExistsAsync
(markup, $"{typeName}.A", usePreviousCharAsTrigger: true);
1507
await
VerifyItemExistsAsync
(markup, $"{typeName}.A", usePreviousCharAsTrigger: false);
1561
await
VerifyItemExistsAsync
(markup, "DayOfWeek.A");
1562
await
VerifyItemExistsAsync
(markup, "DayOfWeek.B");
1583
await
VerifyItemExistsAsync
(markup, "E.A");
1589
=>
VerifyItemExistsAsync
("""
1678
=>
VerifyItemExistsAsync
($$"""
1698
=>
VerifyItemExistsAsync
($$"""
1717
=>
VerifyItemExistsAsync
("""
1772
await
VerifyItemExistsAsync
(markup, "Color.Red");
1773
await
VerifyItemExistsAsync
(markup, "Palette.AccentColor1");
1775
await
VerifyItemExistsAsync
(markup, "ColorLike.Red");
1776
await
VerifyItemExistsAsync
(markup, "PaletteLike.AccentColor1");
1784
=>
VerifyItemExistsAsync
($$"""
1803
=>
VerifyItemExistsAsync
($$"""
1849
await
VerifyItemExistsAsync
(markup, "Color.Red");
1866
=>
VerifyItemExistsAsync
($$"""
1906
=>
VerifyItemExistsAsync
("""
1928
=>
VerifyItemExistsAsync
("""
1967
await
VerifyItemExistsAsync
(markup, "Color.Red");
1990
await
VerifyItemExistsAsync
(markup, "Color.Red");
2027
await
VerifyItemExistsAsync
(markup, "Color.Red");
2040
=>
VerifyItemExistsAsync
($$"""
2057
=>
VerifyItemExistsAsync
($$"""
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProviderTests.cs (32)
40
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
41
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "(int x)");
42
await
VerifyItemExistsAsync
(markup, "Prop");
43
await
VerifyItemExistsAsync
(markup, "Generic", displayTextSuffix: "<K, V>(K key, V value)");
44
await
VerifyItemExistsAsync
(markup, "this", displayTextSuffix: "[int i]");
45
await
VerifyItemExistsAsync
(markup, "With_Underscore", displayTextSuffix: "()");
65
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
66
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "(int x)");
67
await
VerifyItemExistsAsync
(markup, "Prop");
87
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
88
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "(int x)");
89
await
VerifyItemExistsAsync
(markup, "Prop");
109
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
110
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "(int x)");
111
await
VerifyItemExistsAsync
(markup, "Prop");
195
await
VerifyItemExistsAsync
(markup, "Goo2", displayTextSuffix: "()");
196
await
VerifyItemExistsAsync
(markup, "Prop");
220
await
VerifyItemExistsAsync
(markup, "Foo", displayTextSuffix: "()");
221
await
VerifyItemExistsAsync
(markup, "Prop");
222
await
VerifyItemExistsAsync
(markup, "TestEvent");
370
await
VerifyItemExistsAsync
(markup, "Goo2", displayTextSuffix: "()");
371
await
VerifyItemExistsAsync
(markup, "Prop2");
407
await
VerifyItemExistsAsync
(markup, "Goo2", displayTextSuffix: "()");
408
await
VerifyItemExistsAsync
(markup, "Prop2");
1091
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
1092
await
VerifyItemExistsAsync
(markup, "StaticGoo", displayTextSuffix: "()");
1131
await
VerifyItemExistsAsync
(markup, "Goo", displayTextSuffix: "()");
1132
await
VerifyItemExistsAsync
(markup, "StaticGoo", displayTextSuffix: "()");
1385
await
VerifyItemExistsAsync
(markup, "Method", displayTextSuffix: "()");
1452
await
VerifyItemExistsAsync
(markup, "Method1", displayTextSuffix: "()");
1453
await
VerifyItemExistsAsync
(markup, "Method2", displayTextSuffix: "()");
1575
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProviderTests.cs (40)
32
await
VerifyItemExistsAsync
(markup, "IEnumerable");
33
await
VerifyItemExistsAsync
(markup, "ICollection");
34
await
VerifyItemExistsAsync
(markup, "IList");
59
await
VerifyItemExistsAsync
(markup, "IEnumerable");
60
await
VerifyItemExistsAsync
(markup, "ICollection");
61
await
VerifyItemExistsAsync
(markup, "IList");
86
await
VerifyItemExistsAsync
(markup, "IEnumerable");
87
await
VerifyItemExistsAsync
(markup, "ICollection");
88
await
VerifyItemExistsAsync
(markup, "IList");
105
await
VerifyItemExistsAsync
(markup, "IEnumerable");
106
await
VerifyItemExistsAsync
(markup, "ICollection");
107
await
VerifyItemExistsAsync
(markup, "IList");
124
await
VerifyItemExistsAsync
(markup, "IEnumerable");
125
await
VerifyItemExistsAsync
(markup, "ICollection");
126
await
VerifyItemExistsAsync
(markup, "IList");
143
await
VerifyItemExistsAsync
(markup, "IEnumerable");
144
await
VerifyItemExistsAsync
(markup, "ICollection");
145
await
VerifyItemExistsAsync
(markup, "IList");
162
await
VerifyItemExistsAsync
(markup, "IEnumerable");
163
await
VerifyItemExistsAsync
(markup, "ICollection");
164
await
VerifyItemExistsAsync
(markup, "IList");
184
await
VerifyItemExistsAsync
(markup, "IEnumerable");
185
await
VerifyItemExistsAsync
(markup, "ICollection");
186
await
VerifyItemExistsAsync
(markup, "IList");
205
await
VerifyItemExistsAsync
(markup, "IEnumerable");
206
await
VerifyItemExistsAsync
(markup, "ICollection");
207
await
VerifyItemExistsAsync
(markup, "IList");
226
await
VerifyItemExistsAsync
(markup, "IEnumerable");
227
await
VerifyItemExistsAsync
(markup, "ICollection");
228
await
VerifyItemExistsAsync
(markup, "IList");
247
await
VerifyItemExistsAsync
(markup, "IEnumerable");
248
await
VerifyItemExistsAsync
(markup, "ICollection");
249
await
VerifyItemExistsAsync
(markup, "IList");
290
await
VerifyItemExistsAsync
(markup, "IEnumerable");
291
await
VerifyItemExistsAsync
(markup, "ICollection");
292
await
VerifyItemExistsAsync
(markup, "IList");
311
await
VerifyItemExistsAsync
(markup, "IGoo");
316
=>
VerifyItemExistsAsync
("""
330
=>
VerifyItemExistsAsync
("""
344
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\ExtensionMethodImportCompletionProviderTests.cs (8)
2072
=>
VerifyItemExistsAsync
(
2100
=>
VerifyItemExistsAsync
(
2128
=>
VerifyItemExistsAsync
(
2160
=>
VerifyItemExistsAsync
(
2188
=>
VerifyItemExistsAsync
(
2216
=>
VerifyItemExistsAsync
(
2248
=>
VerifyItemExistsAsync
(
2283
=>
VerifyItemExistsAsync
(markup, expectedItem, displayTextSuffix: displayTextSuffix, glyph: glyph, inlineDescription: inlineDescription, expectedDescriptionOrNull: expectedDescriptionOrNull, isComplexTextEdit: true, matchingFilters: expectedFilters);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProviderTests.cs (3)
22
=>
VerifyItemExistsAsync
("""
36
=>
VerifyItemExistsAsync
("""
54
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\IndexerCompletionProviderTests.cs (5)
23
=>
VerifyItemExistsAsync
("""
41
=>
VerifyItemExistsAsync
("""
246
=>
VerifyItemExistsAsync
("""
279
=>
VerifyItemExistsAsync
("""
321
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\KeywordCompletionProviderTests.cs (42)
292
await
VerifyItemExistsAsync
(text, "int");
293
await
VerifyItemExistsAsync
(text, "string");
294
await
VerifyItemExistsAsync
(text, "byte");
295
await
VerifyItemExistsAsync
(text, "char");
308
await
VerifyItemExistsAsync
(text, "private");
309
await
VerifyItemExistsAsync
(text, "protected");
314
=>
VerifyItemExistsAsync
("""
323
=>
VerifyItemExistsAsync
("""
351
=>
VerifyItemExistsAsync
("""
378
await
VerifyItemExistsAsync
(markup, "readonly");
404
await
VerifyItemExistsAsync
(markup, "readonly");
430
await
VerifyItemExistsAsync
(markup, "readonly");
456
await
VerifyItemExistsAsync
(markup, "readonly");
476
await
VerifyItemExistsAsync
(markup, "get");
477
await
VerifyItemExistsAsync
(markup, "set");
484
=>
VerifyItemExistsAsync
("""
507
await
VerifyItemExistsAsync
(markup, "new");
508
await
VerifyItemExistsAsync
(markup, "this");
509
await
VerifyItemExistsAsync
(markup, "null");
510
await
VerifyItemExistsAsync
(markup, "base");
511
await
VerifyItemExistsAsync
(markup, "true");
512
await
VerifyItemExistsAsync
(markup, "false");
513
await
VerifyItemExistsAsync
(markup, "typeof");
514
await
VerifyItemExistsAsync
(markup, "sizeof");
515
await
VerifyItemExistsAsync
(markup, "nameof");
558
await
VerifyItemExistsAsync
(markup, "new");
559
await
VerifyItemExistsAsync
(markup, "this");
560
await
VerifyItemExistsAsync
(markup, "null");
561
await
VerifyItemExistsAsync
(markup, "base");
562
await
VerifyItemExistsAsync
(markup, "true");
563
await
VerifyItemExistsAsync
(markup, "false");
564
await
VerifyItemExistsAsync
(markup, "typeof");
565
await
VerifyItemExistsAsync
(markup, "sizeof");
566
await
VerifyItemExistsAsync
(markup, "nameof");
576
=>
VerifyItemExistsAsync
($$"""
622
=>
VerifyItemExistsAsync
($$"""
634
=>
VerifyItemExistsAsync
($$"""
640
=>
VerifyItemExistsAsync
($$"""
648
=>
VerifyItemExistsAsync
($$"""
692
=>
VerifyItemExistsAsync
($$"""
700
=>
VerifyItemExistsAsync
($$"""
709
=>
VerifyItemExistsAsync
($$"""
Completion\CompletionProviders\NamedParameterCompletionProviderTests.cs (22)
64
=>
VerifyItemExistsAsync
("""
79
=>
VerifyItemExistsAsync
("""
94
=>
VerifyItemExistsAsync
("""
106
=>
VerifyItemExistsAsync
("""
118
=>
VerifyItemExistsAsync
("""
162
await
VerifyItemExistsAsync
(markup, "declaring", displayTextSuffix: ":");
183
await
VerifyItemExistsAsync
(markup, "declaring", displayTextSuffix: ":");
231
await
VerifyItemExistsAsync
(markup, "str", displayTextSuffix: ":");
254
await
VerifyItemExistsAsync
(markup, "boolean", displayTextSuffix: ":");
255
await
VerifyItemExistsAsync
(markup, "character", displayTextSuffix: ":");
285
await
VerifyItemExistsAsync
(markup, "str", displayTextSuffix: ":");
286
await
VerifyItemExistsAsync
(markup, "num", displayTextSuffix: ":");
287
await
VerifyItemExistsAsync
(markup, "b", displayTextSuffix: ":");
314
await
VerifyItemExistsAsync
(markup, "str", displayTextSuffix: ":");
315
await
VerifyItemExistsAsync
(markup, "num", displayTextSuffix: ":");
316
await
VerifyItemExistsAsync
(markup, "b", displayTextSuffix: ":");
345
await
VerifyItemExistsAsync
(markup, "num", displayTextSuffix: ":");
346
await
VerifyItemExistsAsync
(markup, "b", displayTextSuffix: ":");
353
=>
VerifyItemExistsAsync
("""
365
=>
VerifyItemExistsAsync
("""
384
=>
VerifyItemExistsAsync
("""
404
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\ObjectCreationCompletionProviderTests.cs (24)
25
=>
VerifyItemExistsAsync
("""
60
=>
VerifyItemExistsAsync
("""
75
=>
VerifyItemExistsAsync
("""
91
=>
VerifyItemExistsAsync
(MakeMarkup("""
154
=>
VerifyItemExistsAsync
("""
167
=>
VerifyItemExistsAsync
("""
205
=>
VerifyItemExistsAsync
("""
226
=>
VerifyItemExistsAsync
("""
239
=>
VerifyItemExistsAsync
("""
253
=>
VerifyItemExistsAsync
("""
267
=>
VerifyItemExistsAsync
("""
369
=>
VerifyItemExistsAsync
("""
378
=>
VerifyItemExistsAsync
("""
387
=>
VerifyItemExistsAsync
("""
399
=>
VerifyItemExistsAsync
("""
419
=>
VerifyItemExistsAsync
("""
439
=>
VerifyItemExistsAsync
("""
460
=>
VerifyItemExistsAsync
("""
476
=>
VerifyItemExistsAsync
("""
492
=>
VerifyItemExistsAsync
("""
513
=>
VerifyItemExistsAsync
("""
533
=>
VerifyItemExistsAsync
("""
550
=>
VerifyItemExistsAsync
("""
567
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (44)
78
await
VerifyItemExistsAsync
(markup, "value");
98
await
VerifyItemExistsAsync
(markup, "value");
118
await
VerifyItemExistsAsync
(markup, "value");
138
await
VerifyItemExistsAsync
(markup, "value");
158
await
VerifyItemExistsAsync
(markup, "value");
182
await
VerifyItemExistsAsync
(markup, "value");
183
await
VerifyItemExistsAsync
(markup, "otherValue");
219
await
VerifyItemExistsAsync
(markup, "Start");
220
await
VerifyItemExistsAsync
(markup, "End");
245
await
VerifyItemExistsAsync
(markup, "otherValue");
313
await
VerifyItemExistsAsync
(markup, "value");
314
await
VerifyItemExistsAsync
(markup, "otherValue");
414
await
VerifyItemExistsAsync
(markup, "GooBase");
415
await
VerifyItemExistsAsync
(markup, "GooDerived");
416
await
VerifyItemExistsAsync
(markup, "BasePublic");
435
=>
VerifyItemExistsAsync
("""
467
await
VerifyItemExistsAsync
(markup, "Capacity");
485
await
VerifyItemExistsAsync
(markup, "Capacity");
507
await
VerifyItemExistsAsync
(markup, "bar");
745
await
VerifyItemExistsAsync
(markup, "S");
746
await
VerifyItemExistsAsync
(markup, "D");
789
await
VerifyItemExistsAsync
(markup, "S");
790
await
VerifyItemExistsAsync
(markup, "D");
814
await
VerifyItemExistsAsync
(markup, "Items");
815
await
VerifyItemExistsAsync
(markup, "Bar");
841
await
VerifyItemExistsAsync
(markup, "Items");
842
await
VerifyItemExistsAsync
(markup, "Bar");
881
await
VerifyItemExistsAsync
(markup, "S");
882
await
VerifyItemExistsAsync
(markup, "D");
887
=>
VerifyItemExistsAsync
("""
930
await
VerifyItemExistsAsync
(markup, "A");
931
await
VerifyItemExistsAsync
(markup, "B");
968
await
VerifyItemExistsAsync
(markup, "Method");
1069
await
VerifyItemExistsAsync
(markup, "@new");
1070
await
VerifyItemExistsAsync
(markup, "@this");
1071
await
VerifyItemExistsAsync
(markup, "now");
1096
await
VerifyItemExistsAsync
(markup, "RequiredField", inlineDescription: FeaturesResources.Required, matchPriority: MatchPriority.Preselect);
1097
await
VerifyItemExistsAsync
(markup, "RequiredProperty", inlineDescription: FeaturesResources.Required);
1102
=>
VerifyItemExistsAsync
("""
1125
=>
VerifyItemExistsAsync
("""
1153
=>
VerifyItemExistsAsync
("""
1195
=>
VerifyItemExistsAsync
("""
1223
=>
VerifyItemExistsAsync
("""
1250
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (9)
90
=>
VerifyItemExistsAsync
("""
120
? new Func<string, Task>(markup =>
VerifyItemExistsAsync
(markup, "+", inlineDescription: "x + y"))
631
await
VerifyItemExistsAsync
(string.Format(template, $"public static S operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription);
632
await
VerifyItemExistsAsync
(string.Format(template, $"public static bool operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription);
657
await
VerifyItemExistsAsync
(string.Format(template, $"public static S operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription);
658
await
VerifyItemExistsAsync
(string.Format(template, $"public static int operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription);
683
await
VerifyItemExistsAsync
(string.Format(template, $"public static bool operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: $"x {operatorSign} y");
723
=>
VerifyItemExistsAsync
("""
743
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (7)
57
=>
VerifyItemExistsAsync
("""
71
=>
VerifyItemExistsAsync
("""
616
=>
VerifyItemExistsAsync
("""
848
=>
VerifyItemExistsAsync
("""
862
=>
VerifyItemExistsAsync
("""
876
=>
VerifyItemExistsAsync
("""
3785
return
VerifyItemExistsAsync
(markup, expectedItem, isComplexTextEdit: true);
Completion\CompletionProviders\PartialMethodCompletionProviderTests.cs (1)
762
return
VerifyItemExistsAsync
(markup, expectedItem, isComplexTextEdit: true);
Completion\CompletionProviders\PartialTypeCompletionProviderTests.cs (6)
31
=>
VerifyItemExistsAsync
("""
39
=>
VerifyItemExistsAsync
("""
93
=>
VerifyItemExistsAsync
("""
101
=>
VerifyItemExistsAsync
("""
109
=>
VerifyItemExistsAsync
("""
133
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\PropertySubPatternCompletionProviderTests.cs (34)
39
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
40
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
60
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
61
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
81
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
82
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
101
await
VerifyItemExistsAsync
(markup, "@new", displayTextSuffix: "");
102
await
VerifyItemExistsAsync
(markup, "@struct", displayTextSuffix: "");
137
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
138
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
159
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
160
await
VerifyItemExistsAsync
(markup, "F2", displayTextSuffix: "");
182
=>
VerifyItemExistsAsync
("""
214
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
215
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
238
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
239
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
262
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
263
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
282
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
283
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
309
await
VerifyItemExistsAsync
(markup, "P3", displayTextSuffix: "");
310
await
VerifyItemExistsAsync
(markup, "P4", displayTextSuffix: "");
336
await
VerifyItemExistsAsync
(markup, "P3", displayTextSuffix: "");
337
await
VerifyItemExistsAsync
(markup, "P4", displayTextSuffix: "");
363
await
VerifyItemExistsAsync
(markup, "F3", displayTextSuffix: "");
364
await
VerifyItemExistsAsync
(markup, "F4", displayTextSuffix: "");
434
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
494
=>
VerifyItemExistsAsync
("""
510
=>
VerifyItemExistsAsync
("""
544
=>
VerifyItemExistsAsync
("""
560
=>
VerifyItemExistsAsync
("""
608
await
VerifyItemExistsAsync
(markup, "P1", displayTextSuffix: "");
609
await
VerifyItemExistsAsync
(markup, "P2", displayTextSuffix: "");
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (3)
74
=> await
VerifyItemExistsAsync
("#r \"$$", "System.Windows.Forms", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
78
=>
VerifyItemExistsAsync
(
96
await
VerifyItemExistsAsync
(code, windowsFolderName, expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (8)
37
=> await
VerifyItemExistsAsync
(@"$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
41
=> await
VerifyItemExistsAsync
(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular);
45
=> await
VerifyItemExistsAsync
(@"namespace NS { $$ }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
49
=> await
VerifyItemExistsAsync
(@"namespace NS { class C { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
53
=> await
VerifyItemExistsAsync
(@"namespace NS { class C { void M() { $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
65
=> await
VerifyItemExistsAsync
(@"namespace NS { class C { void M() { bool b = true && $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular);
69
=> await
VerifyItemExistsAsync
(@"#$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
81
=> await
VerifyItemExistsAsync
(@"#r$$", MockSnippetInfoService.PreProcessorSnippetShortcut[1..], sourceCodeKind: SourceCodeKind.Regular);
Completion\CompletionProviders\SpeculativeTCompletionProviderTests.cs (51)
56
=>
VerifyItemExistsAsync
("""
65
=>
VerifyItemExistsAsync
("""
74
=>
VerifyItemExistsAsync
("""
101
=>
VerifyItemExistsAsync
("""
128
=>
VerifyItemExistsAsync
("""
139
=>
VerifyItemExistsAsync
("""
150
=>
VerifyItemExistsAsync
("""
161
=>
VerifyItemExistsAsync
("""
172
=>
VerifyItemExistsAsync
("""
183
=>
VerifyItemExistsAsync
("""
194
=>
VerifyItemExistsAsync
("""
205
=>
VerifyItemExistsAsync
("""
216
=>
VerifyItemExistsAsync
("""
227
=>
VerifyItemExistsAsync
("""
239
=>
VerifyItemExistsAsync
("""
251
=>
VerifyItemExistsAsync
("""
263
=>
VerifyItemExistsAsync
("""
275
=>
VerifyItemExistsAsync
("""
287
=>
VerifyItemExistsAsync
("""
299
=>
VerifyItemExistsAsync
("""
310
=>
VerifyItemExistsAsync
("""
321
=>
VerifyItemExistsAsync
("""
335
=>
VerifyItemExistsAsync
("""
350
=>
VerifyItemExistsAsync
("""
364
=>
VerifyItemExistsAsync
("""
393
=>
VerifyItemExistsAsync
("""
415
=>
VerifyItemExistsAsync
("""
426
=>
VerifyItemExistsAsync
("""
437
=>
VerifyItemExistsAsync
("""
448
=>
VerifyItemExistsAsync
("""
459
=>
VerifyItemExistsAsync
("""
481
=>
VerifyItemExistsAsync
("""
503
=>
VerifyItemExistsAsync
("""
525
=>
VerifyItemExistsAsync
("""
536
=>
VerifyItemExistsAsync
("""
547
=>
VerifyItemExistsAsync
("""
558
=>
VerifyItemExistsAsync
("""
569
=>
VerifyItemExistsAsync
("""
580
=>
VerifyItemExistsAsync
("""
591
=>
VerifyItemExistsAsync
("""
601
=>
VerifyItemExistsAsync
("""
611
=>
VerifyItemExistsAsync
("""
621
=>
VerifyItemExistsAsync
(@"$$", "T", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
633
=>
VerifyItemExistsAsync
("""
640
=>
VerifyItemExistsAsync
("""
647
=>
VerifyItemExistsAsync
("""
675
=>
VerifyItemExistsAsync
("""
724
=>
VerifyItemExistsAsync
("""
735
=>
VerifyItemExistsAsync
("""
748
=>
VerifyItemExistsAsync
("""
761
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (309)
34
await
VerifyItemExistsAsync
(@"$$", @"System", expectedDescriptionOrNull: null, sourceCodeKind: sourceCodeKind);
42
await
VerifyItemExistsAsync
("""
46
await
VerifyItemExistsAsync
("""
65
await
VerifyItemExistsAsync
(@"using $$", @"System");
66
await
VerifyItemExistsAsync
(@"using T = $$", @"System");
95
await
VerifyItemExistsAsync
("""
127
await
VerifyItemExistsAsync
("""
135
await
VerifyItemExistsAsync
("""
212
await
VerifyItemExistsAsync
("""
218
await
VerifyItemExistsAsync
("""
224
await
VerifyItemExistsAsync
("""
287
await
VerifyItemExistsAsync
("""
293
await
VerifyItemExistsAsync
("""
299
await
VerifyItemExistsAsync
("""
390
await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", content), @"AttributeUsage");
391
await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", content), @"System");
452
=>
VerifyItemExistsAsync
(@"namespace $$ { }", "System", sourceCodeKind: SourceCodeKind.Regular);
456
=>
VerifyItemExistsAsync
("""
492
=>
VerifyItemExistsAsync
("""
613
=>
VerifyItemExistsAsync
("""
621
=>
VerifyItemExistsAsync
("""
685
=>
VerifyItemExistsAsync
(@"name$$space System { }", "System", sourceCodeKind: SourceCodeKind.Regular);
1711
=>
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"class CL<T> where T : $$"), @"System");
1719
=>
VerifyItemExistsAsync
(
1735
=>
VerifyItemExistsAsync
(
1758
=>
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"class CL<T> where T : A, $$"), @"System");
1766
=>
VerifyItemExistsAsync
(
1782
=>
VerifyItemExistsAsync
(
1817
await
VerifyItemExistsAsync
(@"class CL<T> where $$", @"T");
1818
await
VerifyItemExistsAsync
(@"class CL{ delegate void F<T>() where $$} ", @"T");
1819
await
VerifyItemExistsAsync
(@"class CL{ void F<T>() where $$", @"T");
1833
await
VerifyItemExistsAsync
(@"class CL<T1> { void M<T2>() where $$", @"T2");
1882
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using S = System;", AddInsideMethod(@"S.$$")), @"String");
1886
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty");
1946
=> await
VerifyItemExistsAsync
(AddInsideMethod(@"var x = 0; checked($$"), @"x");
1950
=> await
VerifyItemExistsAsync
(AddInsideMethod(@"var x = 0; unchecked($$"), @"x");
1954
=> await
VerifyItemExistsAsync
(@"class c { void M() { string goo; $$", "goo");
1958
=> await
VerifyItemExistsAsync
(@"class c { void M(string args) { $$", "args");
1966
=>
VerifyItemExistsAsync
(prefix + "$$", "args", sourceCodeKind: SourceCodeKind.Regular);
1982
=>
VerifyItemExistsAsync
(prefix + """
1993
=>
VerifyItemExistsAsync
("""
2003
=>
VerifyItemExistsAsync
("""
2016
=>
VerifyItemExistsAsync
("call(" + prefix + "$$)", "args", sourceCodeKind: SourceCodeKind.Regular);
2024
=> await
VerifyItemExistsAsync
(
2041
=> await
VerifyItemExistsAsync
(@"string first = $$", "args", sourceCodeKind: SourceCodeKind.Regular);
2053
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"class c { void M() { new $$"), "Exception");
2081
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { true.$$"), "Equals");
2085
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { false.$$"), "Equals");
2089
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { 'c'.$$"), "Equals");
2093
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { """".$$"), "Equals");
2097
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { @"""".$$"), "Equals");
2101
=>
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { 2.$$"), "Equals");
2109
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { (true).$$"), "Equals");
2113
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { (false).$$"), "Equals");
2117
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { ('c').$$"), "Equals");
2121
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { ("""").$$"), "Equals");
2125
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { (@"""").$$"), "Equals");
2129
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { (2).$$"), "Equals");
2133
=> await
VerifyItemExistsAsync
(AddUsingDirectives("using System;", @"public class C { void M() { (1 + 1).$$"), "Equals");
2137
=> await
VerifyItemExistsAsync
(@"using S = System.$$", "String");
2287
=>
VerifyItemExistsAsync
("""
2297
=>
VerifyItemExistsAsync
("""
2349
=>
VerifyItemExistsAsync
("""
2369
=>
VerifyItemExistsAsync
("""
2391
=>
VerifyItemExistsAsync
("""
2905
await
VerifyItemExistsAsync
(markup, "Q", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Regular);
2921
await
VerifyItemExistsAsync
(markup, "Q", expectedDescriptionOrNull: null, sourceCodeKind: SourceCodeKind.Script);
2954
=>
VerifyItemExistsAsync
("""
2971
=>
VerifyItemExistsAsync
("""
3009
=>
VerifyItemExistsAsync
("""
3017
=>
VerifyItemExistsAsync
("""
3025
=>
VerifyItemExistsAsync
("""
3070
=>
VerifyItemExistsAsync
("""
3118
=>
VerifyItemExistsAsync
("""
3132
=>
VerifyItemExistsAsync
("""
3229
=>
VerifyItemExistsAsync
("""
3249
=>
VerifyItemExistsAsync
("""
3431
=>
VerifyItemExistsAsync
("""
3458
=>
VerifyItemExistsAsync
("""
3470
=>
VerifyItemExistsAsync
("""
3516
=>
VerifyItemExistsAsync
("""
3529
=>
VerifyItemExistsAsync
("""
3541
=>
VerifyItemExistsAsync
("""
3553
=>
VerifyItemExistsAsync
("""
3567
=>
VerifyItemExistsAsync
("""
3581
=>
VerifyItemExistsAsync
("""
3598
=>
VerifyItemExistsAsync
("""
3609
=>
VerifyItemExistsAsync
("""
3618
=>
VerifyItemExistsAsync
("""
3627
=>
VerifyItemExistsAsync
("""
3636
=>
VerifyItemExistsAsync
("""
3645
=>
VerifyItemExistsAsync
("""
3654
=>
VerifyItemExistsAsync
("""
3663
=>
VerifyItemExistsAsync
("""
3674
=>
VerifyItemExistsAsync
("""
3685
=>
VerifyItemExistsAsync
("""
3697
=>
VerifyItemExistsAsync
("""
3708
=>
VerifyItemExistsAsync
("""
3720
=>
VerifyItemExistsAsync
("""
3730
=>
VerifyItemExistsAsync
("""
3740
=>
VerifyItemExistsAsync
("""
3750
=>
VerifyItemExistsAsync
("""
3766
=>
VerifyItemExistsAsync
("""
3800
=>
VerifyItemExistsAsync
("""
3813
=>
VerifyItemExistsAsync
("""
3839
=>
VerifyItemExistsAsync
("""
3892
=>
VerifyItemExistsAsync
("""
3928
await
VerifyItemExistsAsync
(markup, "M", expectedDescriptionOrNull: $"void C.M() (+ 1 {FeaturesResources.overload})");
3929
await
VerifyItemExistsAsync
(markup, "P", expectedDescriptionOrNull: "int C.P { get; }");
3983
=>
VerifyItemExistsAsync
(
3994
=>
VerifyItemExistsAsync
(
4005
=>
VerifyItemExistsAsync
(
4095
=>
VerifyItemExistsAsync
(
4107
=>
VerifyItemExistsAsync
(
4153
=>
VerifyItemExistsAsync
(
4165
=>
VerifyItemExistsAsync
(
4177
=>
VerifyItemExistsAsync
(
4223
=>
VerifyItemExistsAsync
("""
4258
await
VerifyItemExistsAsync
(code, "X");
4259
await Assert.ThrowsAsync<Xunit.Sdk.TrueException>(() =>
VerifyItemExistsAsync
(code, "XAttribute"));
4265
=>
VerifyItemExistsAsync
("""
4280
=>
VerifyItemExistsAsync
("""
4295
=>
VerifyItemExistsAsync
("""
4310
=>
VerifyItemExistsAsync
("""
4324
=>
VerifyItemExistsAsync
("""
4336
=>
VerifyItemExistsAsync
("""
4373
=>
VerifyItemExistsAsync
("""
4385
=>
VerifyItemExistsAsync
("""
7353
=>
VerifyItemExistsAsync
("""
7367
=>
VerifyItemExistsAsync
("""
7435
=>
VerifyItemExistsAsync
("""
7450
=>
VerifyItemExistsAsync
("""
7459
=>
VerifyItemExistsAsync
("""
7471
=>
VerifyItemExistsAsync
("""
7481
=>
VerifyItemExistsAsync
("""
7491
=>
VerifyItemExistsAsync
("""
7598
=>
VerifyItemExistsAsync
("""
7676
=>
VerifyItemExistsAsync
("""
7705
=>
VerifyItemExistsAsync
("""
7723
=>
VerifyItemExistsAsync
("""
7751
=>
VerifyItemExistsAsync
("""
7838
=>
VerifyItemExistsAsync
("""
7851
=>
VerifyItemExistsAsync
("""
7886
await
VerifyItemExistsAsync
(markup, "N");
7903
await
VerifyItemExistsAsync
(markup, "C");
7920
=>
VerifyItemExistsAsync
($$"""
8521
=>
VerifyItemExistsAsync
("""
8541
=>
VerifyItemExistsAsync
("""
8559
=>
VerifyItemExistsAsync
("""
8577
=>
VerifyItemExistsAsync
("""
8595
=>
VerifyItemExistsAsync
("""
8610
=>
VerifyItemExistsAsync
("""
8632
=>
VerifyItemExistsAsync
("""
8650
=>
VerifyItemExistsAsync
("""
8698
=>
VerifyItemExistsAsync
("""
8770
=>
VerifyItemExistsAsync
("""
8792
=>
VerifyItemExistsAsync
("""
8814
=>
VerifyItemExistsAsync
("""
8841
=>
VerifyItemExistsAsync
("""
8851
=>
VerifyItemExistsAsync
("""
8861
=>
VerifyItemExistsAsync
("""
8897
=>
VerifyItemExistsAsync
("""
8919
=>
VerifyItemExistsAsync
("""
8941
=>
VerifyItemExistsAsync
("""
8961
=>
VerifyItemExistsAsync
("""
8974
=>
VerifyItemExistsAsync
("""
8986
=>
VerifyItemExistsAsync
("""
9000
=>
VerifyItemExistsAsync
("""
9012
=>
VerifyItemExistsAsync
("""
9026
=>
VerifyItemExistsAsync
("""
9038
=>
VerifyItemExistsAsync
("""
9077
=>
VerifyItemExistsAsync
(AddInsideMethod(
9570
=>
VerifyItemExistsAsync
("""
9583
=>
VerifyItemExistsAsync
("""
9600
=>
VerifyItemExistsAsync
("""
9630
=>
VerifyItemExistsAsync
("""
9660
=>
VerifyItemExistsAsync
("""
9672
=>
VerifyItemExistsAsync
("""
9684
=>
VerifyItemExistsAsync
("""
9709
=>
VerifyItemExistsAsync
("""
9727
=>
VerifyItemExistsAsync
("""
9736
=>
VerifyItemExistsAsync
("""
9743
=>
VerifyItemExistsAsync
("""
9778
=>
VerifyItemExistsAsync
("""
9800
=>
VerifyItemExistsAsync
("""
9813
=>
VerifyItemExistsAsync
("""
9829
=>
VerifyItemExistsAsync
("""
9845
=>
VerifyItemExistsAsync
("""
9861
=>
VerifyItemExistsAsync
("""
9955
=>
VerifyItemExistsAsync
("""
9964
=>
VerifyItemExistsAsync
("""
9973
=>
VerifyItemExistsAsync
("""
9982
=>
VerifyItemExistsAsync
("""
9991
=>
VerifyItemExistsAsync
("""
10003
=>
VerifyItemExistsAsync
("""
10014
=>
VerifyItemExistsAsync
("""
10027
=>
VerifyItemExistsAsync
("""
10042
=>
VerifyItemExistsAsync
("""
10084
await
VerifyItemExistsAsync
(markup, "A");
10085
await
VerifyItemExistsAsync
(markup, "B");
10125
=>
VerifyItemExistsAsync
("""
10131
=>
VerifyItemExistsAsync
("""
10137
=>
VerifyItemExistsAsync
("""
10143
=>
VerifyItemExistsAsync
("""
10223
await
VerifyItemExistsAsync
(markup, "Task");
10224
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10247
await
VerifyItemExistsAsync
(markup, "Task");
10248
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10273
await
VerifyItemExistsAsync
(markup, "Task");
10274
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10299
await
VerifyItemExistsAsync
(markup, "Task");
10300
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10324
await
VerifyItemExistsAsync
(markup, "Task");
10351
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10374
await
VerifyItemExistsAsync
(markup, "Task");
10375
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10398
await
VerifyItemExistsAsync
(markup, "Task");
10399
await
VerifyItemExistsAsync
(markup, "FirstOrDefault", displayTextSuffix: "<>");
10466
await
VerifyItemExistsAsync
(markup, "GetTypeCode");
10488
await
VerifyItemExistsAsync
(markup, "GetTypeCode");
10509
await
VerifyItemExistsAsync
(markup, "Substring");
10510
await
VerifyItemExistsAsync
(markup, "GetTypeCode");
10515
=>
VerifyItemExistsAsync
("""
10602
await
VerifyItemExistsAsync
(markup, "GetHashCode");
10625
await
VerifyItemExistsAsync
(markup, "GetHashCode");
10626
await
VerifyItemExistsAsync
(markup, "MyProperty");
10648
await
VerifyItemExistsAsync
(markup, "GetHashCode");
10649
await
VerifyItemExistsAsync
(markup, "MyProperty");
10654
=>
VerifyItemExistsAsync
("""
10670
=>
VerifyItemExistsAsync
("""
10686
=>
VerifyItemExistsAsync
("""
10705
=>
VerifyItemExistsAsync
("""
10886
await
VerifyItemExistsAsync
(
10904
await
VerifyItemExistsAsync
(
10922
await
VerifyItemExistsAsync
(
10950
await
VerifyItemExistsAsync
(
10954
await
VerifyItemExistsAsync
(
10992
=>
VerifyItemExistsAsync
("""
11322
await
VerifyItemExistsAsync
(markup, "E");
11380
=>
VerifyItemExistsAsync
("""
11397
=>
VerifyItemExistsAsync
("""
11415
=>
VerifyItemExistsAsync
("""
11441
await
VerifyItemExistsAsync
(
11507
await
VerifyItemExistsAsync
(markup, item.Name, matchingFilters: [FilterSet.ClassFilter, FilterSet.TargetTypedFilter], displayTextSuffix: item.DisplaySuffix);
11510
await
VerifyItemExistsAsync
(markup, item.Name, matchingFilters: [FilterSet.ClassFilter], displayTextSuffix: item.DisplaySuffix);
11513
await
VerifyItemExistsAsync
(markup, item.Name, matchingFilters: [FilterSet.InterfaceFilter, FilterSet.TargetTypedFilter], displayTextSuffix: item.DisplaySuffix);
11516
await
VerifyItemExistsAsync
(markup, item.Name, matchingFilters: [FilterSet.InterfaceFilter], displayTextSuffix: item.DisplaySuffix);
11533
=>
VerifyItemExistsAsync
("""
11545
=>
VerifyItemExistsAsync
("""
11827
=>
VerifyItemExistsAsync
($$"""
11860
await
VerifyItemExistsAsync
(source, "goo");
11861
await
VerifyItemExistsAsync
(source, "Bar");
11882
await
VerifyItemExistsAsync
(source, "goo");
11883
await
VerifyItemExistsAsync
(source, "Bar");
11918
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
11920
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
11925
=>
VerifyItemExistsAsync
(MakeMarkup("""
11950
=>
VerifyItemExistsAsync
(MakeMarkup("""
11965
=>
VerifyItemExistsAsync
(MakeMarkup("""
11985
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
11987
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12002
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
12004
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12019
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
12021
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12036
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
12038
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12048
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
12050
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12059
await
VerifyItemExistsAsync
(MakeMarkup(source), "parameter");
12061
await
VerifyItemExistsAsync
(MakeMarkup(source, languageVersion: LanguageVersion.CSharp10), "parameter");
12077
await
VerifyItemExistsAsync
(MakeMarkup($$"""
12094
await
VerifyItemExistsAsync
(MakeMarkup($$"""
12105
await
VerifyItemExistsAsync
(MakeMarkup($$"""
12118
await
VerifyItemExistsAsync
(MakeMarkup($$"""
12131
await
VerifyItemExistsAsync
(MakeMarkup($"""
12140
=>
VerifyItemExistsAsync
(MakeMarkup("""
12282
=>
VerifyItemExistsAsync
("""
12324
=>
VerifyItemExistsAsync
($"""
12523
await
VerifyItemExistsAsync
(source, "System");
12763
await
VerifyItemExistsAsync
(markup, "FirstOrDefaultOnList", displayTextSuffix: "<>");
12797
await
VerifyItemExistsAsync
(markup, "FirstOrDefaultOnList", displayTextSuffix: "<>");
12834
await
VerifyItemExistsAsync
(markup, "FirstOrDefaultOnList", displayTextSuffix: "<>");
12868
await
VerifyItemExistsAsync
(markup, "FirstOrDefaultOnList", displayTextSuffix: "<>");
12899
await
VerifyItemExistsAsync
(markup, "AtLeastAdditiveIdentity", displayTextSuffix: "<>");
12900
await
VerifyItemExistsAsync
(markup, "Method", displayTextSuffix: "<>");
13238
await
VerifyItemExistsAsync
(source, "val");
13256
await
VerifyItemExistsAsync
(source, "String");
13257
await
VerifyItemExistsAsync
(source, "System");
13258
await
VerifyItemExistsAsync
(source, "field");
13270
await
VerifyItemExistsAsync
(source, "val");
13288
await
VerifyItemExistsAsync
(source, "String");
13289
await
VerifyItemExistsAsync
(source, "System");
13290
await
VerifyItemExistsAsync
(source, "field");
13306
await
VerifyItemExistsAsync
(source, "System");
13307
await
VerifyItemExistsAsync
(source, "strings");
13323
await
VerifyItemExistsAsync
(source, "System");
13324
await
VerifyItemExistsAsync
(source, "strings");
13342
await
VerifyItemExistsAsync
(source, "String");
13343
await
VerifyItemExistsAsync
(source, "System");
13344
await
VerifyItemExistsAsync
(source, "field");
13362
await
VerifyItemExistsAsync
(source, "String");
13363
await
VerifyItemExistsAsync
(source, "System");
13364
await
VerifyItemExistsAsync
(source, "field");
13380
await
VerifyItemExistsAsync
(source, "System");
13381
await
VerifyItemExistsAsync
(source, "strings");
13397
await
VerifyItemExistsAsync
(source, "System");
13398
await
VerifyItemExistsAsync
(source, "strings");
13598
=>
VerifyItemExistsAsync
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (13)
70
=> await
VerifyItemExistsAsync
(@"System.Console.$$", @"Beep");
74
=>
VerifyItemExistsAsync
("""
226
=>
VerifyItemExistsAsync
("""
237
=> await
VerifyItemExistsAsync
(@"using global::$$;", @"System");
241
=>
VerifyItemExistsAsync
("""
254
=>
VerifyItemExistsAsync
("""
263
=>
VerifyItemExistsAsync
("""
270
=>
VerifyItemExistsAsync
("""
281
=>
VerifyItemExistsAsync
("""
289
=>
VerifyItemExistsAsync
("""
300
=> await
VerifyItemExistsAsync
(@"static class E { public static void Method() { E.$$", @"Method");
310
await
VerifyItemExistsAsync
(code, "X");
311
await
VerifyItemExistsAsync
(code, "Y");
Completion\CompletionProviders\TupleNameCompletionProviderTests.cs (12)
23
=>
VerifyItemExistsAsync
("""
35
=>
VerifyItemExistsAsync
("""
47
=>
VerifyItemExistsAsync
("""
59
=>
VerifyItemExistsAsync
("""
71
=>
VerifyItemExistsAsync
("""
83
=>
VerifyItemExistsAsync
("""
95
=>
VerifyItemExistsAsync
("""
117
await
VerifyItemExistsAsync
(markup, "word", displayTextSuffix: ":");
118
await
VerifyItemExistsAsync
(markup, "number", displayTextSuffix: ":");
133
await
VerifyItemExistsAsync
(markup, "zword", displayTextSuffix: ":");
134
await
VerifyItemExistsAsync
(markup, "znumber", displayTextSuffix: ":");
151
=>
VerifyItemExistsAsync
("""
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1897
=>
VerifyItemExistsAsync
(markup, expectedItem, displayTextSuffix: displayTextSuffix, glyph: (Glyph)glyph, inlineDescription: inlineDescription, expectedDescriptionOrNull: expectedDescriptionOrNull, isComplexTextEdit: true, flags: flags);
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (24)
30
await
VerifyItemExistsAsync
(markup, item);
243
=>
VerifyItemExistsAsync
("""
265
=>
VerifyItemExistsAsync
("""
287
=>
VerifyItemExistsAsync
("""
309
=>
VerifyItemExistsAsync
("""
431
=>
VerifyItemExistsAsync
("""
453
=>
VerifyItemExistsAsync
("""
473
=>
VerifyItemExistsAsync
("""
482
=>
VerifyItemExistsAsync
("""
785
await
VerifyItemExistsAsync
(source, keywordText, glyph: Glyph.Keyword);
818
=>
VerifyItemExistsAsync
("""
830
=>
VerifyItemExistsAsync
("""
840
=>
VerifyItemExistsAsync
("""
850
=>
VerifyItemExistsAsync
("""
860
=>
VerifyItemExistsAsync
("""
872
=>
VerifyItemExistsAsync
("""
884
=>
VerifyItemExistsAsync
("""
896
=>
VerifyItemExistsAsync
("""
908
=>
VerifyItemExistsAsync
("""
920
=>
VerifyItemExistsAsync
("""
950
await
VerifyItemExistsAsync
(text, "term");
951
await
VerifyItemExistsAsync
(text, "description");
1044
await
VerifyItemExistsAsync
("""
1056
await
VerifyItemExistsAsync
("""