public virtual void TestCRC32() { byte[] b = new byte[256]; for (int i = 0; i < b.Length; i++) b[i] = (byte)i; SupportClass.Checksum digest = new SupportClass.CRC32(); digest.Update(b, 0, b.Length); Int64 expected = 688229491; Assert.AreEqual(expected, digest.GetValue()); }
public virtual void TestCRC32() { byte[] b = new byte[256]; for (int i = 0; i < b.Length; i++) { b[i] = (byte)i; } SupportClass.Checksum digest = new SupportClass.CRC32(); digest.Update(b, 0, b.Length); Int64 expected = 688229491; Assert.AreEqual(expected, digest.GetValue()); }