[TestMethod] public void DisposeLua() { GcUtil.ExecuteAndKill(() => { var lua = new Lua(); var gc = new GcUtil.GCTest(lua); lua.Dispose(); lua.Dispose(); return(gc); }); }
[TestMethod] public void DisposeLuaTableAfterLua() { GcUtil.ExecuteAndKill(() => { var lua = new Lua(); var table = lua.NewTable(); var gc = new GcUtil.GCTest(table); lua.Dispose(); lua.Dispose(); table.Dispose(); table.Dispose(); return(gc); }); }