public void UsingScopeAccessingPropretySetter() { IScriptContext ctx = new ScriptContext(); UsingTest1 us = new UsingTest1(); ctx.SetItem("a", us); object rez = Script.RunCode(@"a.Width = 25;", ctx); Assert.AreEqual(25, us.Width); }
public void UsingScopeAccessingPropretySetter() { IScriptContext ctx = new ScriptContext(); UsingTest1 us = new UsingTest1(); ctx.SetItem("a", us); object rez = Script.RunCode(@"a.Width = 25;", ctx); Assert.Equal(25, us.Width); }