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