Beispiel #1
0
        public void GlueTheBitsTest()
        {
            string btn       = "11011111";
            uint   num       = Convert.ToUInt32(btn, 2);
            uint   result    = _part1.GlueTheBits(num, 8, 2);
            string btnResult = "1111";

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