Inheritance: IMortgageApplicationSpecification
        public void SutEqualsOther()
        {
            var sut = new CurrentPropertyExistsSpecification();
            var other = new CurrentPropertyExistsSpecification();

            var actual = sut.Equals(other);

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

            var actual = sut.Equals(anonymous);

            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);
        }
        public void IsSatisfiedByReturnsFalseIfCurrentPropertyIsNull()
        {
            var application = new MortgageApplication
            {
                CurrentProperty = null
            };
            var sut = new CurrentPropertyExistsSpecification();

            var actual = sut.IsSatisfiedBy(application);

            Assert.False(actual);
        }
 public void SutIsMortgageApplicationSpecification()
 {
     var sut = new CurrentPropertyExistsSpecification();
     Assert.IsAssignableFrom<IMortgageApplicationSpecification>(sut);
 }