Ejemplo n.º 1
0
        public void RemoveKBitTest()
        {
            string btn       = "11011111";
            uint   num       = Convert.ToUInt32(btn, 2);
            uint   result    = _part1.RemoveKBit(num, 1);
            string btnResult = "11011101";

            Assert.AreEqual(btnResult, Convert.ToString(result, 2));
        }