예제 #1
0
        public void ShiftLeft_01()
        {
            CNumber_Integer a        = new CNumber_Integer(0xAB);
            uint            overflow = a.ShiftLeft(4);

            Assert.AreEqual(0xAB0, a.AsInteger);
            Assert.AreEqual(2, a.size);
            Assert.AreEqual(0xAU, overflow);
        }
예제 #2
0
        public void ShiftLeft_03()
        {
            CNumber_Integer a        = new CNumber_Integer(0xABCD);
            uint            overflow = a.ShiftLeft(12);

            Assert.AreEqual(0xABCD000, a.AsInteger);
            Assert.AreEqual(4, a.size);
            Assert.AreEqual(0xAU, overflow);
        }