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); }
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); }