public void EqualsSimpleTest() { sequence = new BitSequence(); Assert.IsFalse(sequence.Equals(null)); Assert.IsTrue(sequence.Equals(sequence)); Assert.IsTrue(sequence.Equals(new BitSequence())); }
public void EqualsTest() { sequence[0] = Bit.One; sequence[1] = Bit.Zero; sequence[2] = Bit.Zero; sequence[3] = Bit.One; sequence[4] = Bit.One; BitSequence otherSequence = new BitSequence(); otherSequence[0] = Bit.One; otherSequence[1] = Bit.One; Assert.IsFalse(sequence.Equals(otherSequence)); otherSequence[0] = Bit.One; otherSequence[1] = Bit.Zero; otherSequence[2] = Bit.Zero; otherSequence[3] = Bit.One; otherSequence[4] = Bit.One; Assert.IsTrue(sequence.Equals(otherSequence)); }