public void PropertyBag_IScriptableObject_OnModify() { var bag = new PropertyBag(); engine.AddHostObject("bag", bag); var host = new HostFunctions(); bag.Add("host", host); Assert.AreSame(engine, host.GetEngine()); }
public void PropertyBag_IScriptableObject_OnExpose() { var host = new HostFunctions(); var bag = new PropertyBag { { "host", host } }; engine.AddHostObject("bag", bag); Assert.AreSame(engine, host.GetEngine()); }
public void PropertyBag_IScriptableObject_OnModify() { var bag = new PropertyBag(); engine.AddHostObject("bag", bag); var host = new HostFunctions(); bag.Add("host", host); Assert.AreSame(engine, host.GetEngine()); }
public void PropertyBag_IScriptableObject_OnExpose() { var host = new HostFunctions(); var bag = new PropertyBag { { "host", host } }; engine.AddHostObject("bag", bag); Assert.AreSame(engine, host.GetEngine()); }