force-net / Crc32.NET

Fast version of Crc32 algorithm for .NET
MIT License
199 stars 52 forks source link

Feature/improve tests #1

Closed alxersov closed 8 years ago

alxersov commented 8 years ago

ResultConsistencyLong test was failing because of little endian - big endian mismatch. I removed it because ResultConsistencyAsHashAlgorithm test is almost identical.

I Added a class for every CRC32 implementations used in performance tests with CrcCalculator as a base abstract class. This simplifies performance tests and removes code duplication.

BytePatternsTest tests some generated byte sequences. The calculated checksum is compared to another algorithm implementation.

force-net commented 8 years ago

Thanks

alxersov commented 8 years ago

Thank you!