110 references to CreateTestWithMethodCall
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (110)
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (110)
126var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x, y)"); 128var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 136var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y)"); 138var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 146var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x,$$ y)"); 148var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 156var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, $$y)"); 158var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 166var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y$$)"); 168var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 176var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y)$$"); 184var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y""$$)"); 185var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y"");$$"); 193var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y"");$$"); 201var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y) //Comments"); 203var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$ //Comments"); 211var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y);"); 213var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$"); 244var code = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument})"); 246var expected = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument.Replace("$$", "")});$$"); 263var code = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument})"); 271var code = CreateTestWithMethodCall(@" 276var expected = CreateTestWithMethodCall(@" 287var code = CreateTestWithMethodCall(@" 293var expected = CreateTestWithMethodCall(@" 309var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x, y.ToString())"); 311var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 319var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y.ToString())"); 321var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 329var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, $$y.ToString())"); 331var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 339var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToS$$tring())"); 341var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 349var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString$$())"); 351var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 359var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString($$))"); 361var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 369var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString()$$)"); 371var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 380var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString())$$"); 389var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ClassC.MethodM(4,ClassC.MethodM(5,ClassC.MethodM(6,7$$))))"); 391var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ClassC.MethodM(4,ClassC.MethodM(5,ClassC.MethodM(6,7))));$$"); 399var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString($$));"); 401var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$"); 409var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y)"); 411var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 419var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x.ToString(), y)"); 421var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 429var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y)"); 431var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 439var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString()$$, y)"); 441var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 449var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y$$)"); 451var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 459var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y);"); 461var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$"); 469var code = CreateTestWithMethodCall(@" 474var expected = CreateTestWithMethodCall(@" 485var code = CreateTestWithMethodCall(@" 491var expected = CreateTestWithMethodCall(@" 503var code = CreateTestWithMethodCall(@" 509var expected = CreateTestWithMethodCall(@" 521var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$, y"); 529var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$, y)"); 537var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y"); 549var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x[0], x[1])"); 551var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 559var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$[0], x[1])"); 561var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 569var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[$$0], x[1])"); 571var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 579var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0$$], x[1])"); 581var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 589var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0]$$, x[1])"); 591var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 599var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0],$$ x[1])"); 601var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 609var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], $$x[1])"); 611var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 619var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[$$1])"); 621var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 629var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1$$])"); 631var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 639var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]$$)"); 641var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 649var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1])$$"); 651var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$"); 659var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1$$"); 668var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]$$"); 677var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1)$$"); 3846var code = CreateTestWithMethodCall(@"var test = $$ClassC.MethodM(x,y)"); 3854var code = CreateTestWithMethodCall(@"var test = C$$lassC.MethodM(x,y)"); 3862var code = CreateTestWithMethodCall(@"var test = Class$$C.MethodM(x,y)"); 3870var code = CreateTestWithMethodCall(@"var test = ClassC$$.MethodM(x,y)"); 3878var code = CreateTestWithMethodCall(@"var test = ClassC.Meth$$odM(x,y)"); 3886var code = CreateTestWithMethodCall(@"var test = ClassC.$$MethodM(x,y)"); 3894var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM$$(x,y)"); 3902var code = CreateTestWithMethodCall(@"var test $$= ClassC.MethodM(x,y)"); 3910var code = CreateTestWithMethodCall(@"var test =$$ ClassC.MethodM(x,y)"); 3921var code = CreateTestWithMethodCall($@"var s={literal}"); 3936var code = CreateTestWithMethodCall( 3953var code = CreateTestWithMethodCall($@"var test={literal}"); 3965var code = CreateTestWithMethodCall($"var s={literal}"); 3977var code = CreateTestWithMethodCall( 4011var code = CreateTestWithMethodCall(@"var s=$""{obj.ToString($$)}"""); 4689var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM([|x[0]|], x[1])"); 4826var code = CreateTestWithMethodCall(""" 4852var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(" + argument + ")"); 4866var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(" + argument + ")"); 4868var expected = CreateTestWithMethodCall(