Ejemplo n.º 1
0
 public void TestGetHookCount()
 {
     LuaState L = null;
     using (L = new LuaState())
     {
         Assert.Equal(0, L.GetHookCount());
         LuaHook hook = (ILuaState l, LuaDebug ar) => {
         };
         Assert.Throws<NotImplementedException>(() => L.SetHook(hook, LuaHookMask.MaskCall | LuaHookMask.MaskLine | LuaHookMask.MaskCount, 1));
         Assert.Equal(0, L.GetHookCount());
     }
 }