public void TestToUnsigned() { LuaState L = null; using (L = new LuaState()) { L.PushUnsigned(23); Assert.Equal(23u, L.ToUnsigned(-1)); bool isnum; Assert.Equal(23u, L.ToUnsigned(-1, out isnum)); Assert.True(isnum); } }
public void TestPushUnsigned() { LuaState L = null; using (L = new LuaState()) { L.PushUnsigned(23); Assert.Equal(23, L.ToInteger(-1)); } }