195 references to TestInMethodAsync
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (149)
Classification\SemanticClassifierTests.cs (51)
58await TestInMethodAsync( 1343await TestInMethodAsync( 1390await TestInMethodAsync(@"global::System.String.Clone("");", 1400await TestInMethodAsync( 1437await TestInMethodAsync( 2237await TestInMethodAsync( 2256await TestInMethodAsync( 2269await TestInMethodAsync( 2282await TestInMethodAsync( 2534await TestInMethodAsync( 2662await TestInMethodAsync(@" 4330await TestInMethodAsync(@"var goo = ""goo\r\nbar"";", 4340await TestInMethodAsync(@"var goo = ""goo\r\nbar""u8;", 4350await TestInMethodAsync(@"var goo = @""goo\r\nbar"";", 4358await TestInMethodAsync(@"var goo = @""goo\r\nbar""u8;", 4366await TestInMethodAsync(@"var goo = $""goo{{1}}bar"";", 4376await TestInMethodAsync(@"var goo = $""goo{{1}}bar""u8;", 4386await TestInMethodAsync(@"var goo = $@""goo{{1}}bar"";", 4396await TestInMethodAsync(@"var goo = $@""goo{{1}}bar""u8;", 4406await TestInMethodAsync(@"var goo = $""goo\r{{1}}\nbar"";", 4418await TestInMethodAsync(@"var goo = $""goo\r{{1}}\nbar""u8;", 4430await TestInMethodAsync(@"var goo = $@""goo\r{{1}}\nbar"";", 4440await TestInMethodAsync(@"var goo = $@""goo\r{{1}}\nbar""u8;", 4450await TestInMethodAsync(@"var goo = $""goo\r{1}\nbar"";", 4460await TestInMethodAsync(@"var goo = $""goo\r{1}\nbar""u8;", 4470await TestInMethodAsync(@"var goo = $@""{{goo{1}bar}}"";", 4480await TestInMethodAsync(@"var goo = $@""{{goo{1}bar}}""u8;", 4490await TestInMethodAsync(@"var goo = $@""{{{12:X}}}"";", 4500await TestInMethodAsync(@"var goo = $@""{{{12:X}}}""u8;", 4510await TestInMethodAsync(@"var goo = """"""goo\r\nbar"""""";", 4518await TestInMethodAsync(@"var goo = """"""goo\r\nbar""""""u8;", 4526await TestInMethodAsync(@"var goo = """""" 4536await TestInMethodAsync(@"var goo = """""" 4546await TestInMethodAsync(@"var goo = $"""""" 4556await TestInMethodAsync(@"var goo = $"""""" 4566await TestInMethodAsync(@"var goo = """"""\"""""";", 4574await TestInMethodAsync(@"var goo = """"""\""""""u8;", 4582await TestInMethodAsync(@"var goo = """""" 4592await TestInMethodAsync(@"var goo = """""" 4602await TestInMethodAsync(@"var goo = $"""""" 4612await TestInMethodAsync(@"var goo = $"""""" 4623await TestInMethodAsync(@"var goo = '\n';", 4633await TestInMethodAsync(@"var goo = '\\';", 4643await TestInMethodAsync(@"var goo = '\'';", 4653await TestInMethodAsync(@"var goo = '""';", 4662await TestInMethodAsync(@"var goo = '\u000a';", 4671=> await TestInMethodAsync(@"#line 1 ""a\b""", testHost); 4677await TestInMethodAsync(@"var goo = $""goo{{1:0000}}bar"";", 4811await TestInMethodAsync(@" 4827await TestInMethodAsync(@" 5248await TestInMethodAsync(
Classification\SyntacticClassifierTests.cs (41)
74await TestInMethodAsync("var goo = 42", 85await TestInMethodAsync("var", 101await TestInMethodAsync( 193await TestInMethodAsync("yield return 42", 203await TestInMethodAsync( 267await TestInMethodAsync( 330await TestInMethodAsync(@"@""goo""", 338await TestInMethodAsync(@"@""goo""u8", 347await TestInMethodAsync(@"@""goo""U8", 403await TestInMethodAsync(code, 421await TestInMethodAsync(code, 440await TestInMethodAsync(code, 566await TestInMethodAsync(code, 604await TestInMethodAsync(code, 1413await TestInMethodAsync( 2171await TestInMethodAsync("goo:", 2217await TestInMethodAsync( 2229await TestInMethodAsync( 2252await TestInMethodAsync( 4087await TestInMethodAsync(code, 4114await TestInMethodAsync(code, 4149await TestInMethodAsync(code, 4187await TestInMethodAsync(code, 4212await TestInMethodAsync(code, 4236await TestInMethodAsync(code, 4458await TestInMethodAsync(@" 4858await TestInMethodAsync(@" 4882await TestInMethodAsync(@" 4911await TestInMethodAsync(@" 4933await TestInMethodAsync(@" 4978await TestInMethodAsync(@" 5006await TestInMethodAsync(@" 5044await TestInMethodAsync(@" 5161await TestInMethodAsync(@" 5191await TestInMethodAsync(@" 5210await TestInMethodAsync(@" 6409await TestInMethodAsync(@"interface I { void F(scoped R r); }", 6428await TestInMethodAsync(@"scoped var v;", 6439await TestInMethodAsync(@"F(x, out scoped R y);", 6556await TestInMethodAsync("var lam = (params int[] xs) => xs.Length;", 6578await TestInMethodAsync("var lam = (int a, int b = 1, params int[] xs, params int[] ys.Length) => { };",
Classification\SyntacticClassifierTests_Preprocessor.cs (26)
24await TestInMethodAsync(code, 39await TestInMethodAsync(code, 55await TestInMethodAsync(code, 70await TestInMethodAsync(code, 85await TestInMethodAsync(code, 101await TestInMethodAsync(code, 117await TestInMethodAsync(code, 133await TestInMethodAsync(code, 150await TestInMethodAsync(code, 167await TestInMethodAsync(code, 185await TestInMethodAsync(code, 203await TestInMethodAsync(code, 221await TestInMethodAsync(code, 241await TestInMethodAsync(code, 261await TestInMethodAsync(code, 281await TestInMethodAsync(code, 1201await TestInMethodAsync( 1211await TestInMethodAsync( 1221await TestInMethodAsync( 1232await TestInMethodAsync( 1243await TestInMethodAsync( 1255await TestInMethodAsync( 1265await TestInMethodAsync( 1274await TestInMethodAsync( 1284await TestInMethodAsync( 1294await TestInMethodAsync(code: @"int _; _ = 1;",
Classification\TotalClassifierTests.cs (6)
289await TestInMethodAsync(@"foreach (var v in args) { }", 455await TestInMethodAsync( 1007await TestInMethodAsync( 1028await TestInMethodAsync(@" 1505await TestInMethodAsync(@" 2149await TestInMethodAsync(@"var goo = $@""{{{12:X}}}"";",
Classification\TotalClassifierTests_Dynamic.cs (25)
35await TestInMethodAsync( 51await TestInMethodAsync(@"dynamic.Equals(1, 1);", 67await TestInMethodAsync(@"dynamic? a", 204await TestInMethodAsync( 360await TestInMethodAsync(@"var v = from dynamic in names", 374await TestInMethodAsync( 398await TestInMethodAsync( 420await TestInMethodAsync( 651await TestInMethodAsync(@"typeof(dynamic)", 689await TestInMethodAsync(@"foreach (dynamic dynamic in dynamic", 702await TestInMethodAsync(@"using(dynamic d", 713await TestInMethodAsync( 774await TestInMethodAsync( 787await TestInMethodAsync( 806await TestInMethodAsync( 898await TestInMethodAsync(@"dynamic d", 907await TestInMethodAsync(@"dynamic[] d", 918await TestInMethodAsync( 943await TestInMethodAsync( 960await TestInMethodAsync( 976await TestInMethodAsync(@"if (a is dynamic)", 989await TestInMethodAsync(@"a = a as dynamic", 1001await TestInMethodAsync( 1023await TestInMethodAsync( 1082await TestInMethodAsync(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (46)
Classification\SemanticClassifierTests.vb (17)
258Await TestInMethodAsync(code, 277Await TestInMethodAsync(code, 289Await TestInMethodAsync(code, 302Await TestInMethodAsync(code, 311Await TestInMethodAsync("GetType(System.Exception()", 315Await TestInMethodAsync("GetType(System.Exception(,)", 323Await TestInMethodAsync("Dim a = New System.IDisposable()", 552Await TestInMethodAsync(code, 974Await TestInMethodAsync(code, 985Await TestInMethodAsync(code, 1081Await TestInMethodAsync("dim goo = ""goo""""bar""", 1088Await TestInMethodAsync("dim goo = $""goo{{1}}bar""", 1096Await TestInMethodAsync("dim goo = $""goo""""{{1}}""""bar""", 1106Await TestInMethodAsync("dim goo = $""goo""""{1}""""bar""", 1114Await TestInMethodAsync("dim goo = $""{{goo{1}bar}}""", 1131Await TestInMethodAsync("dim goo = $""goo{{1:0000}}bar""", 1208Await TestInMethodAsync(code,
Classification\SyntacticClassifierTests.vb (29)
677Await TestInMethodAsync(code, 716Await TestInMethodAsync(code, 865Await TestInMethodAsync(code, 959Await TestInMethodAsync(code, 1085Await TestInMethodAsync(code, 1112Await TestInMethodAsync(code, 1138Await TestInMethodAsync(code, 1166Await TestInMethodAsync(code, 1203Await TestInMethodAsync(code, 1248Await TestInMethodAsync(code, 1309Await TestInMethodAsync(code, 1548Await TestInMethodAsync("Dim from = 42", 1584Await TestInMethodAsync(code, 1693Await TestInMethodAsync(code, 1802Await TestInMethodAsync(code, 1843Await TestInMethodAsync(code, 1962Await TestInMethodAsync(code, 2087Await TestInMethodAsync(code, 2453Await TestInMethodAsync(code, 2473Await TestInMethodAsync(code, 2523Await TestInMethodAsync(code, 3796Await TestInMethodAsync(code, 4759Await TestInMethodAsync(" : Console.WriteLine()", 4772Await TestInMethodAsync("Dim y = New Goo() From", 4787Await TestInMethodAsync("Dim y As New Goo() From", 5239Await TestInMethodAsync(code, 5253Await TestInMethodAsync(code, 5491Await TestInMethodAsync(code, 5505Await TestInMethodAsync(code,