17 references to EvaluateAsync
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (4)
InteractiveSessionReferencesTests.cs (4)
123var result = CSharpScript.EvaluateAsync($@" 147ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync(source, options), 346var result = CSharpScript.EvaluateAsync($@" 382var result = CSharpScript.EvaluateAsync($@"
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (12)
733CSharpScript.EvaluateAsync(@" 1057var result = CSharpScript.EvaluateAsync("System.Threading.Tasks.Task.FromResult(1)", ScriptOptions).Result; 1067Assert.Equal(2, CSharpScript.EvaluateAsync("await System.Threading.Tasks.Task.FromResult(2)", ScriptOptions).Result); 1223object result = CSharpScript.EvaluateAsync($@" 1354object result = CSharpScript.EvaluateAsync(@" 1370object result = CSharpScript.EvaluateAsync("new int[] { 1, 2, 3 }.First()", options).Result; 1394ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), 1402ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), 1408ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), 1414ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), 1573ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", options: ScriptOptions, globals: c), 1583ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", options: ScriptOptions, globals: c),
ScriptTests.cs (1)
157var value = await CSharpScript.EvaluateAsync("1 + 2", ScriptOptions);