public void TestCreateAndDispose() { LuaState L = null; using (L = new LuaState()) { Assert.Equal(503.0, L.Version()); } Assert.Throws<ObjectDisposedException>(() => L.Version()); }