110 references to CreateTestWithMethodCall
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (110)
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (110)
132var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x, y)");
134var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
142var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y)");
144var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
152var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x,$$ y)");
154var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
162var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, $$y)");
164var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
172var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y$$)");
174var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
182var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y)$$");
190var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y""$$)");
191var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y"");$$");
199var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ""y"");$$");
207var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y) //Comments");
209var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$ //Comments");
217var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$, y);");
219var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y);$$");
274var code = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument})");
276var expected = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument.Replace("$$", "")});$$");
309var code = CreateTestWithMethodCall($@"var test = Console.WriteLine({argument})");
317var code = CreateTestWithMethodCall("""
323var expected = CreateTestWithMethodCall("""
335var code = CreateTestWithMethodCall("""
342var expected = CreateTestWithMethodCall("""
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());$$");
379var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, $$y.ToString())");
381var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$");
389var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToS$$tring())");
391var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$");
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, y.ToString($$))");
411var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$");
419var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString()$$)");
421var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$");
430var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString())$$");
439var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ClassC.MethodM(4,ClassC.MethodM(5,ClassC.MethodM(6,7$$))))");
441var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, ClassC.MethodM(4,ClassC.MethodM(5,ClassC.MethodM(6,7))));$$");
449var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString($$));");
451var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x, y.ToString());$$");
459var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y)");
461var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
469var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x.ToString(), y)");
471var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
479var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y)");
481var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
489var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString()$$, y)");
491var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
499var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y$$)");
501var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
509var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y);");
511var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString(), y);$$");
519var code = CreateTestWithMethodCall("""
525var expected = CreateTestWithMethodCall("""
537var code = CreateTestWithMethodCall("""
544var expected = CreateTestWithMethodCall("""
557var code = CreateTestWithMethodCall("""
564var expected = CreateTestWithMethodCall("""
577var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$, y");
585var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$, y)");
593var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x.ToString($$), y");
605var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM($$x[0], x[1])");
607var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
615var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x$$[0], x[1])");
617var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
625var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[$$0], x[1])");
627var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
635var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0$$], x[1])");
637var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
645var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0]$$, x[1])");
647var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
655var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0],$$ x[1])");
657var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
665var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], $$x[1])");
667var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
675var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[$$1])");
677var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
685var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1$$])");
687var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
695var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]$$)");
697var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
705var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1])$$");
707var expected = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]);$$");
715var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1$$");
724var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1]$$");
733var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(x[0], x[1)$$");
3969var code = CreateTestWithMethodCall(@"var test = $$ClassC.MethodM(x,y)");
3977var code = CreateTestWithMethodCall(@"var test = C$$lassC.MethodM(x,y)");
3985var code = CreateTestWithMethodCall(@"var test = Class$$C.MethodM(x,y)");
3993var code = CreateTestWithMethodCall(@"var test = ClassC$$.MethodM(x,y)");
4001var code = CreateTestWithMethodCall(@"var test = ClassC.Meth$$odM(x,y)");
4009var code = CreateTestWithMethodCall(@"var test = ClassC.$$MethodM(x,y)");
4017var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM$$(x,y)");
4025var code = CreateTestWithMethodCall(@"var test $$= ClassC.MethodM(x,y)");
4033var code = CreateTestWithMethodCall(@"var test =$$ ClassC.MethodM(x,y)");
4050var code = CreateTestWithMethodCall($@"var s={literal}");
4077var code = CreateTestWithMethodCall(
4102var code = CreateTestWithMethodCall($@"var test={literal}");
4114var code = CreateTestWithMethodCall($"var s={literal}");
4126var code = CreateTestWithMethodCall(
4160var code = CreateTestWithMethodCall("""
4872var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM([|x[0]|], x[1])");
5021var code = CreateTestWithMethodCall("""
5047var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(" + argument + ")");
5064var code = CreateTestWithMethodCall(@"var test = ClassC.MethodM(" + argument + ")");
5066var expected = CreateTestWithMethodCall(