Esempio n. 1
0
        public void SwapBitsTest()
        {
            string btn = "10101110";
            uint   num = Convert.ToUInt32(btn, 2);

            uint result = _part2.SwapBits(num, new List <byte> {
                5, 3, 7, 1, 4, 0, 6, 2
            });


            string btnResult = "11110001";

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