Esempio n. 1
0
        public void SupportsByte()
        {
            var lib = new TestLib.PrimitiveOperations();

            foreach (var i in new Byte[] { 0, 1, 10, Byte.MaxValue, Byte.MinValue })
            {
                Assert.AreEqual((Byte) ~(i + 1), lib.U8(i));
            }
        }
Esempio n. 2
0
        public void SupportsInt64()
        {
            var lib = new TestLib.PrimitiveOperations();

            foreach (var i in new Int64[] { 0, 1, 10, Int64.MaxValue, Int64.MinValue })
            {
                Assert.AreEqual((Int64) ~(i + 1), lib.I64(i));
            }
        }
Esempio n. 3
0
        public void SupportsUInt16()
        {
            var lib = new TestLib.PrimitiveOperations();

            foreach (var i in new UInt16[] { 0, 1, 10, UInt16.MaxValue, UInt16.MinValue })
            {
                Assert.AreEqual((UInt16) ~(i + 1), lib.U16(i));
            }
        }