public void InvalidCandidate_ReturnFalse(string candidate) { var sut = new CreditCardSpecification(); var result = sut.IsSatisfiedBy(candidate); Assert.False(result); }
public void InvalidCandidate_ReturnExpectedResultObject(string candidate, SpecificationResult expected) { var sut = new CreditCardSpecification(); var overall = sut.IsSatisfiedBy(candidate, out var result); Assert.False(overall); Assert.Equal(expected, result, new SpecificationResultComparer(candidate)); }