public void ExactBitLengthShouldTakeAllBitsAfterMostSignificantBit(string hex, int expectedResult) { var value = new BitString(hex).ToPositiveBigInteger(); Assert.AreEqual(expectedResult, value.ExactBitLength()); }