public void TestGetMostSignificantBitSByte() { sbyte value = 1; Assert.AreEqual(0, value.GetMostSignificantBit()); value = 48; Assert.AreEqual(5, value.GetMostSignificantBit()); value = sbyte.MaxValue; Assert.AreEqual(6, value.GetMostSignificantBit()); value = -48; Assert.AreEqual(7, value.GetMostSignificantBit()); value = sbyte.MinValue; Assert.AreEqual(7, value.GetMostSignificantBit()); ((sbyte)0).GetMostSignificantBit(); }