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)
310var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$")); 329var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$\";")); 350var code = AddUsingDirectives("using System;", AddInsideMethod("char c = '$$")); 1504var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 1534var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 1544var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 1554var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 1564var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 1574var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 1584var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 1594var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 1604var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 1614var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 1624var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 1634var 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( 13889var source = AddInsideMethod( 13921var source = AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");