Example #1
0
        public void TestConvertToInt64()
        {
            var a = new PyInt(5);

            Assert.IsInstanceOf(typeof(long), a.ToInt64());
            Assert.AreEqual(5, a.ToInt64());
        }
Example #2
0
        public void TestConvertToInt64()
        {
            long val = 5 + (long)int.MaxValue;
            var  a   = new PyInt(val);

            Assert.IsInstanceOf(typeof(long), a.ToInt64());
            Assert.AreEqual(val, a.ToInt64());
        }