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