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)
310
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$"));
329
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$\";"));
350
var code = AddUsingDirectives("using System;",
AddInsideMethod
("char c = '$$"));
1504
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
1534
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
1544
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
1554
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
1564
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
1574
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
1584
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
1594
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
1604
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
1614
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
1624
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
1634
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
2549
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
2553
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
2579
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
2594
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
2609
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
2613
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
2617
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
4644
=> VerifyItemIsAbsentAsync(
AddInsideMethod
(
9720
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9728
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9736
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9744
=> VerifyItemExistsAsync(
AddInsideMethod
(
13889
var source =
AddInsideMethod
(
13921
var source =
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");