public void TestYield() { LuaState L = null; using (L = new LuaState()) { var ex = Assert.Throws<LuaAtPanicException>(() => L.Yield(0)); Assert.Equal("attempt to yield from outside a coroutine", ex.Message); } }