53 references to ContinueWith
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (9)
InteractiveSessionReferencesTests.cs (9)
52var s2 = s1.ContinueWith("Process.GetCurrentProcess()"); 92ContinueWith("using static System.Environment;"). 93ContinueWith("int x; x = 1;"). 94ContinueWith("using static System.Math;"). 95ContinueWith("int goo(int a) { return a + 1; } "); 105s = s.ContinueWith("new System.Collections.Generic.List<Version>()"); 108s = s.ContinueWith("Environment.Version"); 111s = s.ContinueWith("goo(x)"); 114s = s.ContinueWith("Sin(0)");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (40)
InteractiveSessionTests.cs (39)
426ContinueWith("class X { public int goo() { return 1; } }"). 427ContinueWith("class X { public int goo() { return 1; } }"). 428ContinueWith("using InteractiveFixtures.A;"). 429ContinueWith("new X().goo()"); 435ContinueWith("class X { public int goo() { return 1; } }"). 436ContinueWith(@" 468state = state.ContinueWith("Environment.ProcessorCount"); 485var state2 = state1.ContinueWith("internal class C2 : C1 { } 2"); 496var state3 = state2.ContinueWith("private class C3 : C2 { } 3"); 522state = state.ContinueWith(@"public int i = 1;"); 583ContinueWith("Environment"). 594ContinueWith("System"). 773state = state.ContinueWith(@" 780state = state.ContinueWith(@" 806state = state.ContinueWith(@" 814state = state.ContinueWith(@" 863s = s.ContinueWith(@" 907ContinueWith("int Sqr(int x) {return x*x;}"). 920", ScriptOptions).ContinueWith(@" 924Assert.Equal(3, s.ContinueWith(@"arr_1[2]").Result.ReturnValue); 925Assert.Equal(5, s.ContinueWith(@"arr_2[0]").Result.ReturnValue); 926Assert.Equal(0, s.ContinueWith(@"arr_3[0]").Result.ReturnValue); 986ContinueWith("int x = 1;"). 987ContinueWith("System.Func<int> f = () => x++;"). 988ContinueWith("result.Add(f());"). 989ContinueWith("result.Add(x);"). 1121ContinueWith("await Task.Delay(1); i++;"). 1122ContinueWith("await Task.Delay(1); i++;"). 1123ContinueWith("await Task.Delay(1); i++;"). 1124ContinueWith("i"). 1142ContinueWith("await Task.Delay(1); i++;"). 1143ContinueWith("i"). 1384var s2 = s1.ContinueWith("new List<int>()", options.AddImports("System.Collections.Generic")); 1600var s1 = s0.ContinueWith("static int bar { get { return goo; } }"); 1601var s2 = s1.ContinueWith("class C { public static int baz() { return bar; } }"); 1602var s3 = s2.ContinueWith("C.baz()"); 1619var s1 = s0.ContinueWith("goo(1)"); 1622var s2 = s1.ContinueWith("goo(1.0)"); 2134ContinueWith(
ScriptTests.cs (1)
351var state = await CSharpScript.RunAsync("int X = 100;", ScriptOptions).ContinueWith("X + X");
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (4)
InteractiveSessionTests.vb (4)
23ContinueWith("Dim y As Integer = 2"). 24ContinueWith("?x + y") 127Dim state2 = state1.ContinueWith( 141Dim state3 = state2.ContinueWith(