public void LocationDisplayModelComparerClassCompareMethodReturnsOneIfConstructedForUpAndFirstParameterHasLowerMileageThanSecondParameter() { LocationDisplayModelComparer comparer = new LocationDisplayModelComparer(Direction.Up); LocationDisplayModel x = new LocationDisplayModel { Mileage = DistanceHelpers.GetDistance() }; LocationDisplayModel y = new LocationDisplayModel { Mileage = DistanceHelpers.GetDistanceGreaterThan(x.Mileage) }; int result = comparer.Compare(x, y); Assert.AreEqual(1, result); }