public void IsGreaterThan_T_IComparable_succeeds_when_greater_than( int candidate, int value) => Invoking(() => Ensure.That(() => candidate) .IsGreaterThan(value, TestComparer <int> .AlwaysGreater())) .Should().NotThrow();
public void IsLessThanOrEqualTo_Expression_IComparable_fails_when_greater_than( int candidate, int value) => Invoking(() => Ensure.That(() => candidate) .IsLessThanOrEqualTo(() => value, TestComparer <int> .AlwaysGreater())) .Should().Throw <GuardClauseNotMetException>() .WithMessage(nameof(candidate).ShouldBeLessThanOrEqualTo(nameof(value)));