10 instantiations of ScriptTests
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (10)
ScriptTests.cs (10)
65var state = await CSharpScript.RunAsync("1 + 2", options: ScriptOptions, globals: new ScriptTests()); 73var state = await CSharpScript.RunAsync("1 + 2", options: ScriptOptions, globals: new ScriptTests()); 224System.Console.WriteLine(true)", options: ScriptOptions, globals: new ScriptTests()); 242System.Console.WriteLine(true);", options: ScriptOptions, globals: new ScriptTests()); 249var state = CSharpScript.RunAsync(@"System.Console.WriteLine(true) ", options: ScriptOptions, globals: new ScriptTests()); 259", options: ScriptOptions, globals: new ScriptTests()); 271throw e;", options: ScriptOptions, globals: new ScriptTests()); 1007await CSharpScript.RunAsync(@"var data = notExistentVariable switch { _ => null };", options: ScriptOptions, globals: new ScriptTests()); 1029await CSharpScript.RunAsync(@"var data = ""data"" switch { < 5 => null };", options: ScriptOptions, globals: new ScriptTests()); 1054await CSharpScript.RunAsync(@"var data = ""test"" switch { _ => armError };", options: ScriptOptions, globals: new ScriptTests());