31 references to AddInsideMethod
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (31)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (3)
28
await VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (int x, i $$"));
35
await VerifyBuilderAsync(
AddInsideMethod
(@"Func<int, int, int> f = (x, i $$"));
95
=> await VerifyBuilderAsync(AddUsingDirectives("using System;",
AddInsideMethod
(@"Func<int, int, int> f = $$")));
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (27)
311
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$"));
333
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$\";"));
357
var code = AddUsingDirectives("using System;",
AddInsideMethod
("char c = '$$"));
948
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
978
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
988
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
998
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
1008
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
1018
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
1028
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
1038
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
1048
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
1058
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
1068
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
1078
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
2013
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
2017
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
2043
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
2058
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
2073
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
2077
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
2081
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
4567
await VerifyItemIsAbsentAsync(
AddInsideMethod
(
10029
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10039
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10049
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10059
await VerifyItemExistsAsync(
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");