public void AffineHash_Hash_Matches_Identical_String_Segments()
        {
            Random     random   = AffineHashTests.Random();
            AffineHash target   = new AffineHash(random);
            string     value    = "TestTest";
            int        expected = target.GetHashCode(value, 0, 4);
            int        actual   = target.GetHashCode(value, 4, 4);

            Assert.AreEqual(expected, actual);
        }
        public void AffineHash_Hash_Matches_Identical_Char_Array_Segments()
        {
            Random     random = AffineHashTests.Random();
            AffineHash target = new AffineHash(random);

            char[] value    = { 'T', 'e', 's', 't', 'T', 'e', 's', 't' };
            int    expected = target.GetHashCode(value, 0, 4);
            int    actual   = target.GetHashCode(value, 4, 4);

            Assert.AreEqual(expected, actual);
        }
        public void AffineHash_Hash_Matches_Identical_Byte_Array_Segments()
        {
            Random     random = AffineHashTests.Random();
            AffineHash target = new AffineHash(random);

            byte[] value    = { 0, 1, 2, 3, 0, 1, 2, 3 };
            int    expected = target.GetHashCode(value, 0, 4);
            int    actual   = target.GetHashCode(value, 4, 4);

            Assert.AreEqual(expected, actual);
        }