public void IsLessThanOrEqualTo_Expression_IComparable_succeeds_when_less_than( int candidate, int value) => Invoking(() => Ensure.That(() => candidate) .IsLessThanOrEqualTo(() => value, TestComparer <int> .AlwaysLess())) .Should().NotThrow();
public void IsGreaterThan_T_IComparable_fails_when_less_than( int candidate, int value) => Invoking(() => Ensure.That(() => candidate) .IsGreaterThan(value, TestComparer <int> .AlwaysLess())) .Should().Throw <GuardClauseNotMetException>() .WithMessage(nameof(candidate).ShouldBeGreaterThan(value));