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