public void InvokeNullableCandidate_ReturnFalse(int?candidate, int?lessThan)
            {
                var sut = new LessThanOrEqualSpecification <int?>(lessThan);

                var result = sut.GetExpression().Compile().Invoke(candidate);

                Assert.False(result);
            }
            public void InvokeNotLessThanOrEqualCandidate_ReturnFalse <T>(T candidate, T lessThan, IComparer <T> comparer)
            {
                candidate = candidate?.ToString() != "null" ? candidate : default;
                var sut = new LessThanOrEqualSpecification <T>(lessThan, comparer);

                var result = sut.GetExpression().Compile().Invoke(candidate);

                Assert.False(result);
            }
            public void NonGenericILinqSpecification_ReturnExpressionAsAbstractExpression()
            {
                var sut = new LessThanOrEqualSpecification <string>(null);

                var expected      = sut.GetExpression().ToString();
                var sutExpression = ((ILinqSpecification)sut).GetExpression();
                var result        = sutExpression.ToString();

                Assert.Equal(expected, result);
            }