示例#1
0
        public void XorAllBitsTest()
        {
            string btn1 = "101110001";
            string btn2 = "11100111";

            List <uint> result = new List <uint>();

            List <uint> expected = new List <uint>()
            {
                1, 0
            };


            result.Add(_part2.XorAllBits(Convert.ToUInt32(btn1, 2)));
            result.Add(_part2.XorAllBits(Convert.ToUInt32(btn2, 2)));


            Assert.IsTrue(expected.SequenceEqual(result));
        }