Esempio n. 1
0
 public void CompareMileages_pass()
 {
     var low = new Mileage(12);
     var high = new Mileage(896);
     Assert.GreaterThan(high, low);
     //Assert.LessThan(5, 1);
 }
Esempio n. 2
0
 public void CompareMileages_fail()
 {
     var low = new Mileage(12);
     var high = new Mileage(896);
     Assert.LessThan(high, low);
 }
Esempio n. 3
0
 public static int CompareMileages(Mileage left, Mileage right)
 {
     // Null reference handling is not necessary: 'left' and 'right' are never null.
     TestLog.WriteLine("Comparing Mileage '{0}' with '{1}'.", left.Value, right.Value);
     return left.Value.CompareTo(right.Value);
 }