示例#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());
 }