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)
310var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$")); 332var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$\";")); 356var code = AddUsingDirectives("using System;", AddInsideMethod("char c = '$$")); 947var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 977var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 987var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 997var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 1007var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 1017var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 1027var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 1037var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 1047var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 1057var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 1067var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 1077var source = AddUsingDirectives("using System;", AddInsideMethod(@"try {} catch($$")); 2012=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;", AddInsideMethod(@"S.$$")), @"String"); 2016=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty"); 2042=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; typeof($$"), @"x"); 2057=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; sizeof($$"), @"x"); 2072=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; default($$"), @"x"); 2076=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; checked($$"), @"x"); 2080=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; unchecked($$"), @"x"); 4566await VerifyItemIsAbsentAsync(AddInsideMethod( 10028await VerifyNoItemsExistAsync(AddInsideMethod( 10038await VerifyNoItemsExistAsync(AddInsideMethod( 10048await VerifyNoItemsExistAsync(AddInsideMethod( 10058await VerifyItemExistsAsync(AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");