8 instantiations of Globals
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (8)
ScriptTests.cs (8)
126Assert.Equal(4, fn(new Globals { X = 1, Y = 3 }).Result);
290var state = await CSharpScript.RunAsync("X + Y", options: ScriptOptions, globals: new Globals { X = 1, Y = 2 });
298var state = await script.RunAsync(new Globals { X = 1, Y = 2 });
309await Assert.ThrowsAsync<ArgumentException>("globals", () => script.RunAsync(new Globals { X = 1, Y = 2 }));
333var state = await CSharpScript.RunAsync("X + Y", options: ScriptOptions, globals: new Globals());
341var state1 = await CSharpScript.RunAsync("X + Y + 1", options: ScriptOptions, globals: new Globals());
342var state2 = await CSharpScript.RunAsync("X + Y + 2", options: ScriptOptions, globals: new Globals());
389var globals = new Globals { X = 10, Y = 20 };
5 references to Globals
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)