public void TestBitsNeeded(int value, int bitsNeeded) { Assert.That(BitWriter.BitsNeeded(value), Is.EqualTo(bitsNeeded)); }