Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public void TestPushUnsigned()
 {
     LuaState L = null;
     using (L = new LuaState())
     {
         L.PushUnsigned(23);
         Assert.Equal(23, L.ToInteger(-1));
     }
 }