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 = '$$")); 837var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 867var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 877var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 887var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 897var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 907var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 917var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 927var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 937var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 947var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 957var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 967var 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( 13222var source = AddInsideMethod( 13254var source = AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
154=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");