public void InvokeNullableCandidate_ReturnFalse(int?candidate, int?from, int?to) { var sut = new ExclusiveBetweenSpecification <int?>(from, to); var result = sut.GetNegationExpression().Compile().Invoke(candidate); Assert.False(result); }
public void InvokeExclusiveBetweenCandidate_ReturnFalse <T>(T candidate, T from, T to, IComparer <T> comparer) { candidate = candidate?.ToString() != "null" ? candidate : default; var sut = new ExclusiveBetweenSpecification <T>(from, to, comparer); var result = sut.GetNegationExpression().Compile().Invoke(candidate); Assert.False(result); }