Reset() public method

Resets the CRC data checksum as if no update was ever called.
public Reset ( ) : void
return void
Beispiel #1
0
        public void CRC_32()
        {
            var underTestCrc32 = new Crc32();
            Assert.AreEqual(0x0, underTestCrc32.Value);

            underTestCrc32.Update(check);
            Assert.AreEqual(0xCBF43926, underTestCrc32.Value);

            underTestCrc32.Reset();
            Assert.AreEqual(0x0, underTestCrc32.Value);

            exceptionTesting(underTestCrc32);
        }