public void CompareObject_FirstEqualToSecond_ReturnsZero(object first, object second) { // Setup var comparer = new ProjectVersionComparer(); // Call int compare = comparer.Compare(first, second); // Assert Assert.AreEqual(0, compare); }
public void CompareString_FirstLessThanSecond_ReturnsLessThanZero(string first, string second) { // Setup var comparer = new ProjectVersionComparer(); // Call int compare = comparer.Compare(first, second); // Assert Assert.Less(compare, 0); }
public void CompareObject_FirstGreaterThanSecond_ReturnsMoreThanZero(object first, object second) { // Setup var comparer = new ProjectVersionComparer(); // Call int compare = comparer.Compare(first, second); // Assert Assert.Greater(compare, 0); }