Exemplo n.º 1
0
        public void TestGetHook()
        {
            LuaState L = null;
            using (L = new LuaState())
            {
                Assert.Throws<NotImplementedException>(() => Assert.Null(L.GetHook()));
                LuaHook hook = (ILuaState l, LuaDebug ar) => {

                };
                Assert.Throws<NotImplementedException>(() => L.SetHook(hook, LuaHookMask.MaskCall | LuaHookMask.MaskLine | LuaHookMask.MaskCount, 1));
                Assert.Throws<NotImplementedException>(() => Assert.Null(L.GetHook()));
            }
        }