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)
310
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$"));
332
var code = AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"$$\";"));
356
var code = AddUsingDirectives("using System;",
AddInsideMethod
("char c = '$$"));
947
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
977
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
987
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
997
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
1007
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
1017
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
1027
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
1037
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
1047
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
1057
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
1067
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
1077
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
2012
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
2016
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
2042
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
2057
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
2072
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
2076
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
2080
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
4566
await VerifyItemIsAbsentAsync(
AddInsideMethod
(
10028
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10038
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10048
await VerifyNoItemsExistAsync(
AddInsideMethod
(
10058
await VerifyItemExistsAsync(
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");