public void SutDoesNotEqualAnonymousObject() { var sut = new ConditionalMortgageApplicationProcessor(); var anonymous = new object(); var actual = sut.Equals(anonymous); Assert.False(actual); }
public void SutEqualsOtherWithSameDependencies() { var sut = new ConditionalMortgageApplicationProcessor { Specification = new Mock <IMortgageApplicationSpecification>().Object, TruthProcessor = new Mock <IMortgageApplicationProcessor>().Object }; var other = new ConditionalMortgageApplicationProcessor { Specification = sut.Specification, TruthProcessor = sut.TruthProcessor }; var actual = sut.Equals(other); Assert.True(actual); }
public void SutDoesNotEqualOtherWithDifferentTruthProcessor() { var sut = new ConditionalMortgageApplicationProcessor { Specification = new Mock <IMortgageApplicationSpecification>().Object, TruthProcessor = new Mock <IMortgageApplicationProcessor>().Object }; var other = new ConditionalMortgageApplicationProcessor { Specification = sut.Specification, TruthProcessor = new Mock <IMortgageApplicationProcessor>().Object }; var actual = sut.Equals(other); Assert.False(actual); }