public void TestValidClearBitValues(int index) { Assert.AreEqual((byte)((uint)Math.Pow(2, index) ^ uint.MaxValue), Boolean.ClearBit(byte.MaxValue, index)); }
public void TestValidSetBitValues(int index) { Assert.AreEqual(Math.Pow(2, index), Boolean.SetBit(0, index)); }