예제 #1
0
 public void CRC_Error()
 {
     Assert.Throws <ArgumentNullException>(() => LgbCRC16.ComputerHash(null));
     Assert.Throws <ArgumentNullException>(() => LgbCRC32.ComputerHash(null));
 }
예제 #2
0
 public void CRC32_Ok(byte[] data, int result)
 {
     Assert.Equal(result, LgbCRC32.ComputerHash(data));
 }