public void GetBitsTest() { var bits = new UnsignedBitsCount(0); bits.AddValue(127); bits.AddValue(260); bits.AddValue(15); bits.AddValue(514); Assert.AreEqual(10, bits.GetBits()); }
public void GetBitsZeroTest() { var bits = new UnsignedBitsCount(0); Assert.AreEqual(0, bits.GetBits()); }
public void GetBitsTwoTest() { var bits = new UnsignedBitsCount(2); Assert.AreEqual(2, bits.GetBits()); }
public void GetBitsOneTest() { var bits = new UnsignedBitsCount(1); Assert.AreEqual(1, bits.GetBits()); }