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