Exemplo n.º 1
0
            public void InvokeNullableCandidate_ReturnFalse(int?candidate, int?from, int?to)
            {
                var sut = new InclusiveBetweenSpecification <int?>(from, to);

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

                Assert.False(result);
            }
Exemplo n.º 2
0
            public void InvokeInclusiveBetweenCandidate_ReturnFalse <T>(T candidate, T from, T to, IComparer <T> comparer)
            {
                candidate = candidate?.ToString() != "null" ? candidate : default;
                var sut = new InclusiveBetweenSpecification <T>(from, to, comparer);

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

                Assert.False(result);
            }