public void InvokeInvalidCandidate_ReturnFalse(string candidate) { var sut = new CreditCardSpecification(); var result = sut.GetExpression().Compile().Invoke(candidate); Assert.False(result); }
public void NonGenericILinqSpecification_ReturnExpressionAsAbstractExpression() { var sut = new CreditCardSpecification(); var expected = sut.GetExpression().ToString(); var sutExpression = ((ILinqSpecification)sut).GetExpression(); var result = sutExpression.ToString(); Assert.Equal(expected, result); }