예제 #1
0
 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());
 }
예제 #2
0
 public void GetBitsZeroTest()
 {
     var bits = new UnsignedBitsCount(0);
     Assert.AreEqual(0, bits.GetBits());
 }
예제 #3
0
 public void GetBitsTwoTest()
 {
     var bits = new UnsignedBitsCount(2);
     Assert.AreEqual(2, bits.GetBits());
 }
예제 #4
0
 public void GetBitsOneTest()
 {
     var bits = new UnsignedBitsCount(1);
     Assert.AreEqual(1, bits.GetBits());
 }