public void CompareTo_ShouldReturnZeroIfItsLengthIsEqual() { var otherPath = new PathFromSource('K', 10); var target = new PathFromSource('N', 10); var actual = target.CompareTo(otherPath); Assert.That(actual, Is.Zero); }
public void CompareTo_ShouldReturnPositiveIfItsLengthIsGreater() { var otherPath = new PathFromSource('I', 67); var target = new PathFromSource('D', 200); var actual = target.CompareTo(otherPath); Assert.That(actual, Is.Positive); }
public void CompareTo_ShouldReturnNegativeIfItsLengthIsSmaller() { var otherPath = new PathFromSource('A', 9); var target = new PathFromSource('G', 1); var actual = target.CompareTo(otherPath); Assert.That(actual, Is.Negative); }