31 references to AddInsideMethod
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (31)
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (3)
28await VerifyBuilderAsync(AddInsideMethod(@"Func<int, int, int> f = (int x, i $$")); 35await VerifyBuilderAsync(AddInsideMethod(@"Func<int, int, int> f = (x, i $$")); 95=> await VerifyBuilderAsync(AddUsingDirectives("using System;", AddInsideMethod(@"Func<int, int, int> f = $$")));
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (27)
311var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$")); 333var code = AddUsingDirectives("using System;", AddInsideMethod("string s = \"$$\";")); 357var code = AddUsingDirectives("using System;", AddInsideMethod("char c = '$$")); 948var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = $$)c")); 978var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = ($$)c")); 988var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$")); 998var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = new $$ [")); 1008var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = stackalloc $$")); 1018var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from $$ c")); 1028var source = AddUsingDirectives("using System;", AddInsideMethod(@"var t = from c in C join $$ j")); 1038var source = AddUsingDirectives("using System;", AddInsideMethod(@"$$ i =")); 1048var source = AddUsingDirectives("using System;", AddInsideMethod(@"fixed($$")); 1058var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach($$")); 1068var source = AddUsingDirectives("using System;", AddInsideMethod(@"foreach $$")); 1078var source = AddUsingDirectives("using System;", AddInsideMethod(@"try {} catch($$")); 2013=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System;", AddInsideMethod(@"S.$$")), @"String"); 2017=> await VerifyItemExistsAsync(AddUsingDirectives("using S = System.String;", AddInsideMethod(@"S.$$")), @"Empty"); 2043=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; typeof($$"), @"x"); 2058=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; sizeof($$"), @"x"); 2073=> await VerifyItemIsAbsentAsync(AddInsideMethod(@"var x = 0; default($$"), @"x"); 2077=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; checked($$"), @"x"); 2081=> await VerifyItemExistsAsync(AddInsideMethod(@"var x = 0; unchecked($$"), @"x"); 4567await VerifyItemIsAbsentAsync(AddInsideMethod( 10029await VerifyNoItemsExistAsync(AddInsideMethod( 10039await VerifyNoItemsExistAsync(AddInsideMethod( 10049await VerifyNoItemsExistAsync(AddInsideMethod( 10059await VerifyItemExistsAsync(AddInsideMethod(
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
170=> await VerifyItemIsAbsentAsync(AddUsingDirectives("using System;", AddInsideMethod("string s = \"Console.$$")), @"Beep");