public void ShouldConsiderAnEmptyComparableToBeAfterNull() { var first = new EmptyComparable(); Assert.That(first.CompareTo(null), Is.Positive); }
public void ShouldThrowWhenComparingAnEmptyComparableAndAnotherType() { var first = new EmptyComparable(); var second = new object(); Assert.That(() => first.CompareTo(second), Throws.ArgumentException); }
public void ShouldCompareEmptyComparableObjectsEqual() { var first = new EmptyComparable(); var second = new EmptyComparable(); Assert.That(first.CompareTo(second), Is.EqualTo(0)); }