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