internal void EqualsTest(SequenceId sequenceId1, object obj, bool expected) { if (obj is SequenceId sequenceId2) { sequenceId1.Equals(sequenceId2).Should().Be(expected); (sequenceId1 == sequenceId2).Should().Be(expected); (sequenceId1 != sequenceId2).Should().Be(!expected); sequenceId1.GetHashCode().Equals(sequenceId2.GetHashCode()).Should().Be(expected); } sequenceId1.Equals(obj).Should().Be(expected); }
public bool Equals(Asp330SequenceTest that) { if (that is null) { return(false); } if (ReferenceEquals(this, that)) { return(true); } if (!SequenceId.Equals(that.SequenceId)) { return(false); } if (!TestId.Equals(that.TestId)) { return(false); } if (!SequenceName.Equals(that.SequenceName)) { return(false); } if (!TestName.Equals(that.TestName)) { return(false); } if (!TestTableName.Equals(that.TestTableName)) { return(false); } return(true); }