33 references to AddInsideMethod
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (33)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (3)
26
=> VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (int x, i $$"));
30
=> VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (x, i $$"));
78
=> await VerifyBuilderAsync(AddUsingDirectives("using System;",
AddInsideMethod
(@"Func<int, int, int> f = $$")));
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (29)
311
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$"));
330
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$\";"));
351
var code = AddUsingDirectives("using System;",
AddInsideMethod
("char c = '$$"));
1505
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
1535
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
1545
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
1555
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
1565
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
1575
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
1585
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
1595
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
1605
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
1615
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
1625
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
1635
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
2550
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
2554
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
2580
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
2595
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
2610
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
2614
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
2618
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
4645
=> VerifyItemIsAbsentAsync(
AddInsideMethod
(
9721
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9729
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9737
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9745
=> VerifyItemExistsAsync(
AddInsideMethod
(
13890
var source =
AddInsideMethod
(
13922
var source =
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");