public void Test_crc32_Ieee() { // Arrange & act var crc = SecurityUtils.Crc32(Encoding.ASCII.GetBytes("1234567"), SecurityUtils.Crc32Ieee); // Assert Assert.Equal(0x5003699fu, crc); }
public void Test_crc32_Castagnoli() { // Arrange & act var crc = SecurityUtils.Crc32(Encoding.ASCII.GetBytes("1234567"), SecurityUtils.Crc32Castagnoli); // Assert Assert.Equal(0x124297eau, crc); }
public void Test_crc32_Koopman() { // Arrange & act var crc = SecurityUtils.Crc32(Encoding.ASCII.GetBytes("1234567"), SecurityUtils.Crc32Koopman); // Assert Assert.Equal(0xf058755u, crc); }