5 writes to X
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
ScriptTests.cs (5)
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 })); 389var globals = new Globals { X = 10, Y = 20 };