31 references to AddInsideMethod
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (31)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (3)
29
await VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (int x, i $$"));
36
await VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (x, i $$"));
96
=> await VerifyBuilderAsync(AddUsingDirectives("using System;",
AddInsideMethod
(@"Func<int, int, int> f = $$")));
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (27)
309
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$"));
331
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$\";"));
355
var code = AddUsingDirectives("using System;",
AddInsideMethod
("char c = '$$"));
946
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
976
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
986
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
996
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
1006
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
1016
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
1026
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
1036
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
1046
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
1056
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
1066
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
1076
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
2011
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
2015
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
2041
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
2056
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
2071
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
2075
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
2079
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
4565
await VerifyItemIsAbsentAsync(
AddInsideMethod
(
10027
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10037
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10047
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10057
await VerifyItemExistsAsync(
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");