예제 #1
0
 public void CrcValuePotentialOverflow()
 {
     var crc = new Crc32();
     crc.ComputeHash(Encoding.UTF8.GetBytes("kera"));
     var hash = crc.CrcValue;
     Assert.AreEqual(2764303471, hash);
 }
예제 #2
0
 public void CrcValue()
 {
     var crc = new Crc32();
     crc.ComputeHash(Encoding.UTF8.GetBytes("meebey"));
     var hash = crc.CrcValue;
     Assert.AreEqual(578947871, hash);
 }