Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool
        public void SutDoesNotEqualAnonymousObject()
        {
            var sut = new DateAndLocationMortgageApplicationProcessor();
            var anonymous = new object();

            var actual = sut.Equals(anonymous);

            Assert.False(actual);
        }
        public void SutDoesNotEqualOtherWithDifferentLocationProvider()
        {
            var moqRepo = new MockRepository(MockBehavior.Default);
            var sut = new DateAndLocationMortgageApplicationProcessor
            {
                LocationProvider = moqRepo.Create<ILocationProvider>().Object,
                TimeProvider = moqRepo.Create<ITimeProvider>().Object
            };
            var other = new DateAndLocationMortgageApplicationProcessor
            {
                LocationProvider = moqRepo.Create<ILocationProvider>().Object,
                TimeProvider = sut.TimeProvider
            };

            var actual = sut.Equals(other);

            Assert.False(actual);
        }