public void Test()
 {
     var item1 = new NonComparable(123);
     var item2 = new NonComparable(456);
     var item3 = new NonComparable(789);
     Assert.GreaterThan(item2, item1); // The assertions will use the custom comparer defined above.
     Assert.LessThan(item2, item3);
 }
        public static int Compare(NonComparable x, NonComparable y)
        {
            // The inner comparison engine of Gallio handles with the cases
            // where x or y is null. Therefore, we can safely assume than x
            // and y are never null here.

            return x.Value.CompareTo(y.Value); // Custom comparison logic.
        }