Exemple #1
0
        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());
        }
Exemple #2
0
        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());
 }