Exemple #1
0
 public void SharedBits1()
 {
     //0 in common
     Assert.AreEqual(false, SharedBitCounter.SharedBits(1, 2));
 }
Exemple #2
0
 public void SharedBits8()
 {
     //3 in common
     Assert.AreEqual(true, SharedBitCounter.SharedBits(23, 7));
 }
Exemple #3
0
 public void SharedBits7()
 {
     //3 in common
     Assert.AreEqual(true, SharedBitCounter.SharedBits(7, 15));
 }
Exemple #4
0
 public void SharedBits6()
 {
     //2 in common
     Assert.AreEqual(true, SharedBitCounter.SharedBits(43, 77));
 }
Exemple #5
0
 public void SharedBits5()
 {
     //1 in common
     Assert.AreEqual(false, SharedBitCounter.SharedBits(7, 10));
 }
Exemple #6
0
 public void SharedBits4()
 {
     //1 in common
     Assert.AreEqual(false, SharedBitCounter.SharedBits(2, 3));
 }