public void IsSatisfiedByReturnsFalseIfCurrentPropertyIsNull() { var application = new MortgageApplication { CurrentProperty = null }; var sut = new CurrentPropertyExistsSpecification(); var actual = sut.IsSatisfiedBy(application); Assert.False(actual); }
public void IsSatisfiedByReturnsTrueIfCurrentPropertyHasValue() { var application = new MortgageApplication { CurrentProperty = new Property() }; var sut = new CurrentPropertyExistsSpecification(); var actual = sut.IsSatisfiedBy(application); Assert.True(actual); }