Example #1
0
        public void SwapBitsTest()
        {
            string btn       = "11011101";
            uint   num       = Convert.ToUInt32(btn, 2);
            uint   result    = _part1.SwapBits(num, 1, 4);
            string btnResult = "11001111";

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