Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool
        public void SutEqualsOther()
        {
            var sut = new PrimaryApplicantMortgageApplicationProcessor();
            var other = new PrimaryApplicantMortgageApplicationProcessor();

            var actual = sut.Equals(other);

            Assert.True(actual);
        }
        public void SutDoesNotEqualAnonymousObject()
        {
            var sut = new PrimaryApplicantMortgageApplicationProcessor();
            var anonymous = new object();

            var actual = sut.Equals(anonymous);

            Assert.False(actual);
        }