public void GetBitsInMiddleTest() { string btn = "11110111"; uint num = Convert.ToUInt32(btn, 2); uint result = _part1.GetBitsInMiddle(num, 8, 2); string btnResult = "1101"; Assert.AreEqual(btnResult, Convert.ToString(result, 2)); }