31 references to AddInsideMethod
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (31)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (3)
29await VerifyBuilderAsync(AddInsideMethod(@"Func<int, int, int> f = (int x, i $$")); 36await 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)
309var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$")); 331var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$\";")); 355var code = AddUsingDirectives("using System;", AddInsideMethod("char c = '$$")); 946var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 976var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 986var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 996var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 1006var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 1016var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 1026var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 1036var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 1046var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 1056var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 1066var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 1076var source = AddUsingDirectives("using System;", AddInsideMethod(@"try {} catch($$")); 2011=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;", AddInsideMethod(@"S.$$")), @"String"); 2015=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty"); 2041=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; typeof($$"), @"x"); 2056=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; sizeof($$"), @"x"); 2071=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; default($$"), @"x"); 2075=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; checked($$"), @"x"); 2079=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; unchecked($$"), @"x"); 4565await VerifyItemIsAbsentAsync(AddInsideMethod( 10027await VerifyNoItemsExistAsync(AddInsideMethod( 10037await VerifyNoItemsExistAsync(AddInsideMethod( 10047await VerifyNoItemsExistAsync(AddInsideMethod( 10057await VerifyItemExistsAsync(AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");