public static T ShouldBeLessThan <T>(this T item, T other) where T : IComparable
 {
     return(ShouldBeLessThan(item,
                             other,
                             () => ShouldBeLessThanAssertionException.CreateMessage(ExpectedMessageBuilder.ToDisplayableString(other),
                                                                                    ExpectedMessageBuilder.ToDisplayableString(item))));
 }
Exemplo n.º 2
0
 private void when_building_the_exception_message()
 {
     _result = ShouldBeLessThanAssertionException.CreateMessage(_other.ToString(), _input.ToString());
 }
Exemplo n.º 3
0
 private void when_building_the_exception_message()
 {
     _result = ShouldBeLessThanAssertionException.CreateMessage(ExpectedMessageBuilder.ToDisplayableString(_other), ExpectedMessageBuilder.ToDisplayableString(_input));
 }