241 references to AddUsingDirectives
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (241)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
93
=> await VerifyBuilderAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"Func<int, int, int> f = $$")));
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (235)
257
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("string s = \"$$")), @"String");
258
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("string s = \"$$")), @"System");
271
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("string s = \"$$\";")), @"System");
272
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("string s = \"$$\";")), @"String");
285
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("char c = '$$")), @"System");
286
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("char c = '$$")), @"String");
299
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"[assembly: $$]"), @"System");
300
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"[assembly: $$]"), @"AttributeUsage");
309
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"Attribute");
318
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"AttributeUsage");
319
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
325
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<[A$$]T> {}"), @"AttributeUsage");
326
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<[A$$]T> {}"), @"System");
336
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"AttributeUsage");
337
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
346
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"AttributeUsage");
347
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
356
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"AttributeUsage");
357
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
693
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"String");
694
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"System");
715
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"[assembly: A.$$"), @"String");
716
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"[assembly: A.$$"), @"System");
722
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"using MyType = $$"), @"String");
723
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"using MyType = $$"), @"System");
732
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
733
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
742
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
743
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
749
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = $$)c")), @"String");
750
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = $$)c")), @"System");
756
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<$$"), @"String");
757
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<$$"), @"System");
763
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T, $$"), @"String");
764
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T, $$"), @"System");
770
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = ($$)c")), @"String");
771
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = ($$)c")), @"System");
777
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new $$")), @"String");
778
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new $$")), @"System");
784
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new $$ [")), @"String");
785
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new $$ [")), @"System");
791
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = stackalloc $$")), @"String");
792
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = stackalloc $$")), @"System");
798
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from $$ c")), @"String");
799
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from $$ c")), @"System");
805
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join $$ j")), @"String");
806
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join $$ j")), @"System");
812
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ i =")), @"String");
813
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ i =")), @"System");
819
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"fixed($$")), @"String");
820
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"fixed($$")), @"System");
826
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach($$")), @"String");
827
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach($$")), @"System");
833
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach $$")), @"String");
834
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach $$")), @"System");
840
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"try {} catch($$")), @"String");
841
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"try {} catch($$")), @"System");
849
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
850
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
858
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
859
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
867
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
868
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
876
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"String");
877
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"System");
885
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
886
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
894
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
895
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
903
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
904
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
912
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
913
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
921
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
922
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
930
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
931
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
939
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
940
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
948
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
949
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
957
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
958
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
966
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"String");
967
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", content), @"System");
973
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"($$")), @"String");
974
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"($$")), @"System");
980
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$(")), @"String");
981
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$(")), @"System");
987
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$[")), @"String");
988
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$[")), @"System");
994
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"i[$$")), @"String");
995
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"i[$$")), @"System");
1001
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"(c)$$")), @"String");
1002
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"(c)$$")), @"System");
1008
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in $$")), @"String");
1009
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in $$")), @"System");
1015
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C let n = $$")), @"String");
1016
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C let n = $$")), @"System");
1022
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C orderby $$")), @"String");
1023
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C orderby $$")), @"System");
1029
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C select $$")), @"String");
1030
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C select $$")), @"System");
1036
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$")), @"String");
1037
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$")), @"System");
1043
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"return $$")), @"String");
1044
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"return $$")), @"System");
1050
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"throw $$")), @"String");
1051
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"throw $$")), @"System");
1057
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"yield return $$")), @"String");
1058
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"yield return $$")), @"System");
1064
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach(T t in $$")), @"String");
1065
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"foreach(T t in $$")), @"System");
1071
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"using($$")), @"String");
1072
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"using($$")), @"System");
1078
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"lock($$")), @"String");
1079
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"lock($$")), @"System");
1085
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var i = $$")), @"String");
1086
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var i = $$")), @"System");
1092
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for($$")), @"String");
1093
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for($$")), @"System");
1099
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for(i=0;$$")), @"String");
1100
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for(i=0;$$")), @"System");
1106
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for(i=0;i>10;$$")), @"String");
1107
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"for(i=0;i>10;$$")), @"System");
1113
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"do {} while($$")), @"String");
1114
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"do {} while($$")), @"System");
1120
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"while($$")), @"String");
1121
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"while($$")), @"System");
1127
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"int [$$")), @"String");
1128
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"int [$$")), @"System");
1134
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"+$$")), @"String");
1135
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"+$$")), @"System");
1141
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$++")), @"String");
1142
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$++")), @"System");
1148
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ + 1")), @"String");
1149
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ + 1")), @"System");
1155
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"1 + $$")), @"String");
1156
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"1 + $$")), @"System");
1162
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ = 1")), @"String");
1163
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$ = 1")), @"System");
1169
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"1 = $$")), @"String");
1170
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"1 = $$")), @"System");
1176
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$? 1:")), @"String");
1177
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"$$? 1:")), @"System");
1183
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"true? $$:")), @"String");
1184
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"true? $$:")), @"System");
1190
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"true? 1:$$")), @"String");
1191
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"true? 1:$$")), @"System");
1197
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in $$")), @"String");
1198
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in $$")), @"System");
1204
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in P on $$")), @"String");
1205
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in P on $$")), @"System");
1211
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in P on id equals $$")), @"String");
1212
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C join p in P on id equals $$")), @"System");
1218
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C where $$")), @"String");
1219
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C where $$")), @"System");
1225
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C group $$")), @"String");
1226
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C group $$")), @"System");
1232
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C group g by $$")), @"String");
1233
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = from c in C group g by $$")), @"System");
1239
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"if ($$")), @"String");
1240
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"if ($$")), @"System");
1246
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"switch($$")), @"String");
1247
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"switch($$")), @"System");
1254
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1255
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1262
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1263
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1270
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1271
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1278
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1279
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1286
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1287
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1294
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1295
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1302
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1303
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1310
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"String");
1311
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(content)), @"System");
1317
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new [] { $$")), @"String");
1318
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"var t = new [] { $$")), @"System");
1324
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : $$"), @"System");
1330
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : $$"), @"Console");
1348
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : $$"), @"String");
1366
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : IList<$$"), @"System");
1367
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : IList<$$"), @"String");
1373
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A, $$"), @"System");
1379
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A, $$"), @"Console");
1397
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A, $$"), @"String");
1415
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A, IList<$$"), @"System");
1416
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A, IList<$$"), @"String");
1422
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A where$$"), @"System");
1423
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where T : A where$$"), @"String");
1438
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> where $$"), @"String");
1451
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL : $$"), @"String");
1452
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL : $$"), @"System");
1458
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL : B, $$"), @"String");
1459
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class CL : B, $$"), @"System");
1465
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> : B where$$"), @"String");
1466
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<T> : B where$$"), @"System");
1472
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"global::$$")), @"String");
1473
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"global::$$")), @"System");
1478
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using S = System;", AddInsideMethod(@"S.$$")), @"String");
1482
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty");
1487
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class C { C() : $$"), @"String");
1488
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class C { C() : $$"), @"System");
1494
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"typeof($$")), @"String");
1495
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"typeof($$")), @"System");
1505
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"sizeof($$")), @"String");
1506
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"sizeof($$")), @"System");
1516
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"default($$")), @"String");
1517
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", AddInsideMethod(@"default($$")), @"System");
1642
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"class c { void M() { new $$"), "Exception");
1646
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class c { void M() { goo.$$"), "Equals");
1650
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class c { void M(int x) { typeof($$"), "x");
1654
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class c { void M(int x) { default($$"), "x");
1658
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"public class C { void M(int x) { unsafe { sizeof($$"), "x");
1662
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"public class Generic<T> { void M(int x) { Generic<$$"), "x");
1666
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { null.$$"), "Equals");
1670
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { true.$$"), "Equals");
1674
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { false.$$"), "Equals");
1678
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { 'c'.$$"), "Equals");
1682
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { """".$$"), "Equals");
1686
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { @"""".$$"), "Equals");
1693
await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { 2.$$"), "Equals");
1698
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (null).$$"), "Equals");
1702
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (true).$$"), "Equals");
1706
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (false).$$"), "Equals");
1710
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { ('c').$$"), "Equals");
1714
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { ("""").$$"), "Equals");
1718
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (@"""").$$"), "Equals");
1722
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (2).$$"), "Equals");
1726
=> await VerifyItemExistsAsync(
AddUsingDirectives
("using System;", @"public class C { void M() { (1 + 1).$$"), "Equals");
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (5)
155
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");
167
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"Beep");
172
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<[Console.$$]T> {}"), @"Beep");
181
await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", content), @"Beep");
186
=> await VerifyItemIsAbsentAsync(
AddUsingDirectives
("using System;", @"class CL<Console.$$"), @"Beep");