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 = '$$"));
837
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = $$)c"));
867
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = ($$)c"));
877
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$"));
887
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = new $$ ["));
897
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = stackalloc $$"));
907
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from $$ c"));
917
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"var t = from c in C join $$ j"));
927
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"$$ i ="));
937
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"fixed($$"));
947
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach($$"));
957
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"foreach $$"));
967
var source = AddUsingDirectives("using System;",
AddInsideMethod
(@"try {} catch($$"));
1882
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;",
AddInsideMethod
(@"S.$$")), @"String");
1886
=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;",
AddInsideMethod
(@"S.$$")), @"Empty");
1912
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; typeof($$"), @"x");
1927
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; sizeof($$"), @"x");
1942
=> await VerifyItemIsAbsentAsync(
AddInsideMethod
(@"var x = 0; default($$"), @"x");
1946
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; checked($$"), @"x");
1950
=> await VerifyItemExistsAsync(
AddInsideMethod
(@"var x = 0; unchecked($$"), @"x");
3977
=> VerifyItemIsAbsentAsync(
AddInsideMethod
(
9053
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9061
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9069
=> VerifyNoItemsExistAsync(
AddInsideMethod
(
9077
=> VerifyItemExistsAsync(
AddInsideMethod
(
13222
var source =
AddInsideMethod
(
13254
var source =
AddInsideMethod
(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154
=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;",
AddInsideMethod
("string s = \"Console.$$")), @"Beep");