27 references to ScriptingTestHelpers
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (3)
InteractiveSessionReferencesTests.cs (3)
47
ScriptingTestHelpers
.AssertCompilationError(s0, @"Process.GetCurrentProcess()",
101
ScriptingTestHelpers
.AssertCompilationError(s, "Version",
147
ScriptingTestHelpers
.AssertCompilationError(() => CSharpScript.EvaluateAsync(source, options),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (24)
InteractiveSessionTests.cs (17)
60
ScriptingTestHelpers
.RunScriptWithOutput(script, "test");
81
ScriptingTestHelpers
.RunScriptWithOutput(script, "test");
120
ScriptingTestHelpers
.AssertCompilationError(script,
356
ScriptingTestHelpers
.AssertCompilationError(script.ContinueWith<int>(@"C.E.goo()"),
525
ScriptingTestHelpers
.ContinueRunScriptWithOutput(state, @"System.Console.WriteLine(i);", "1");
690
ScriptingTestHelpers
.AssertCompilationError(state0, src1,
704
ScriptingTestHelpers
.AssertCompilationError(state0, src2,
867
ScriptingTestHelpers
.ContinueRunScriptWithOutput(s, @"testDelB(""hello"");", "hello");
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),
1559
ScriptingTestHelpers
.AssertCompilationError(s0, @"x + Y",
1573
ScriptingTestHelpers
.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", options: ScriptOptions, globals: c),
1583
ScriptingTestHelpers
.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", options: ScriptOptions, globals: c),
1865
ScriptingTestHelpers
.AssertCompilationError(() => script.RunAsync(new F()).Wait(),
1887
ScriptingTestHelpers
.AssertCompilationError(() => script.RunAsync(new F()).Wait(),
ScriptTests.cs (7)
171
var state =
ScriptingTestHelpers
.RunScriptWithOutput(
509
Assert.Null(
ScriptingTestHelpers
.EvaluateScriptWithOutput(
555
Assert.Equal(1,
ScriptingTestHelpers
.EvaluateScriptWithOutput(script, ""));
579
Assert.Equal(0,
ScriptingTestHelpers
.EvaluateScriptWithOutput(script, ""));
700
var result =
ScriptingTestHelpers
.EvaluateScriptWithOutput(script, "42");
706
result =
ScriptingTestHelpers
.EvaluateScriptWithOutput(script, "42");
949
ScriptingTestHelpers
.EvaluateScriptWithOutput(script, "Hello World!");