public void HashesAreEqualWhenEquivalentHashesAreCompared()
        {
            BinarySequenceHashBuilder hash1 = new BinarySequenceHashBuilder();

            for (int i = 0; i < Byte.MaxValue; i++)
            {
                if (i % 3 == 0)
                {
                    hash1.AppendOneSequence();
                }
                else if (i % 2 == 0)
                {
                    hash1.AppendZeroToSequence();
                }
            }

            BinarySequenceHashBuilder hash2 = new BinarySequenceHashBuilder(hash1.GetBytes());

            Assert.IsTrue(hash1 == hash2, "==");
            Assert.IsTrue(hash1.Equals(hash2), ".Equals");
        }
        public void HashesNotEqualWhenOtherHashNull()
        {
            BinarySequenceHashBuilder hash1 = new BinarySequenceHashBuilder();

            Assert.IsFalse(hash1 == null, "==");
            Assert.IsFalse(null == hash1, "==");
            Assert.IsFalse(hash1.Equals(null));
        }