コード例 #1
0
 public static T ShouldBeGreaterThan <T>(this T item, T other) where T : IComparable
 {
     return(ShouldBeGreaterThan(item,
                                other,
                                () => ShouldBeGreaterThanAssertionException.CreateMessage(ExpectedMessageBuilder.ToDisplayableString(other),
                                                                                          ExpectedMessageBuilder.ToDisplayableString(item))));
 }
コード例 #2
0
 private void when_building_the_exception_message()
 {
     _result = ShouldBeGreaterThanAssertionException.CreateMessage(_other.ToString(), _input.ToString());
 }
コード例 #3
0
 private void when_building_the_exception_message()
 {
     _result = ShouldBeGreaterThanAssertionException.CreateMessage(ExpectedMessageBuilder.ToDisplayableString(_other), ExpectedMessageBuilder.ToDisplayableString(_input));
 }