Equals() public méthode

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

            var actual = sut.Equals(other);

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

            var actual = sut.Equals(anonymous);

            Assert.False(actual);
        }