public void TestIsLightUserData() { LuaState L = null; using (L = new LuaState()) { L.PushNil() .PushNumber(123.45) .PushInteger(987) .PushString("Test") .PushString("5.6") .PushString("5D") .PushString("5") .PushBoolean(true) .PushCClosure(l => 0, 0) //.PushLightUserData(DateTime.Now) .PushGlobalTable() ; Assert.False(L.IsLightUserData(1)); Assert.False(L.IsLightUserData(2)); Assert.False(L.IsLightUserData(3)); Assert.False(L.IsLightUserData(4)); Assert.False(L.IsLightUserData(5)); Assert.False(L.IsLightUserData(6)); Assert.False(L.IsLightUserData(7)); Assert.False(L.IsLightUserData(8)); Assert.False(L.IsLightUserData(9)); Assert.False(L.IsLightUserData(10)); Assert.False(L.IsLightUserData(11)); Assert.False(L.IsLightUserData(12)); } }