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)
311var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$")); 330var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$\";")); 351var code = AddUsingDirectives("using System;", AddInsideMethod("char c = '$$")); 1505var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 1535var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 1545var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 1555var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 1565var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 1575var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 1585var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 1595var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 1605var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 1615var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 1625var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 1635var source = AddUsingDirectives("using System;", AddInsideMethod(@"try {} catch($$")); 2550=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;", AddInsideMethod(@"S.$$")), @"String"); 2554=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty"); 2580=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; typeof($$"), @"x"); 2595=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; sizeof($$"), @"x"); 2610=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; default($$"), @"x"); 2614=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; checked($$"), @"x"); 2618=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; unchecked($$"), @"x"); 4645=> VerifyItemIsAbsentAsync(AddInsideMethod( 9721=> VerifyNoItemsExistAsync(AddInsideMethod( 9729=> VerifyNoItemsExistAsync(AddInsideMethod( 9737=> VerifyNoItemsExistAsync(AddInsideMethod( 9745=> VerifyItemExistsAsync(AddInsideMethod( 13890var source = AddInsideMethod( 13922var source = AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");