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