31 references to ContinueWithAsync
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
InteractiveSessionReferencesTests.cs (5)
50
var s1 = s0.
ContinueWithAsync
($"#r \"{typeof(Process).Assembly.Location}\"");
63
var s1 = s0.
ContinueWithAsync
(@"Process.GetCurrentProcess()", newOptions);
73
var s1 = s0.
ContinueWithAsync
($@"
206
var s2 = await s1.
ContinueWithAsync
(@"
514
var s1 = await s0.
ContinueWithAsync
($@"
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (23)
InteractiveSessionTests.cs (15)
623
Assert.Throws<CompilationErrorException>(() => s0.
ContinueWithAsync
("invalid$syntax").Result);
625
var s1 = await s0.
ContinueWithAsync
("x = 2; x = 10");
627
Assert.Throws<CompilationErrorException>(() => s1.
ContinueWithAsync
("invalid$syntax").Result);
628
Assert.Throws<CompilationErrorException>(() => s1.
ContinueWithAsync
("x = undefined_symbol").Result);
630
var s2 = await s1.
ContinueWithAsync
("int y = 2;");
634
var s3 = await s2.
ContinueWithAsync
("x + y");
1104
var s1 = await s0.
ContinueWithAsync
("F(async () => await Task.FromResult(4))");
1107
var s2 = await s1.
ContinueWithAsync
("G(5, async x => await Task.FromResult(x))");
1152
state = await state.
ContinueWithAsync
("x is (false, var y)");
1161
state = await state.
ContinueWithAsync
("x is long or int", options: options);
1163
state = await state.
ContinueWithAsync
("x is int and < 10", options: options);
1165
state = await state.
ContinueWithAsync
("x is (long or < 10L)", options: options);
1167
state = await state.
ContinueWithAsync
("x is not > 100", options: options);
2000
var state1 = await state0.
ContinueWithAsync
(@"
2016
var state4 = await state2.
ContinueWithAsync
(@"
ScriptTests.cs (8)
365
state = await state.
ContinueWithAsync
(submission);
426
var s3 = await s1.
ContinueWithAsync
("x");
459
var state2 = await state1.
ContinueWithAsync
("int M(int x) { return x * x; } M(5)");
464
var state3 = await state1.
ContinueWithAsync
("M(5)");
472
var state1 = await state0.
ContinueWithAsync
("System.Func<int, int, int> adder = Add;");
473
var state2 = await state1.
ContinueWithAsync
("adder(1, 1)");
481
var state1 = await state0.
ContinueWithAsync
("Id<int>.Get(1)");
489
var state1 = await state0.
ContinueWithAsync
("Id.Get<int>()(1)");
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
ScriptingTestHelpers.cs (3)
67
AssertCompilationError(() => state.Result.
ContinueWithAsync
(code).Wait(), expectedDiagnostics);
72
AssertCompilationError(() => state.Result.
ContinueWithAsync
(code).Wait(), expectedDiagnostics);
77
AssertCompilationError(() => state.
ContinueWithAsync
(code).Wait(), expectedDiagnostics);