Example #1
0
        public void CanCompareIComparablesOfT()
        {
            ClassWithIComparableOfT expected = new ClassWithIComparableOfT(0);
            ClassWithIComparableOfT actual   = new ClassWithIComparableOfT(42);

            Assert.That(actual, Is.GreaterThan(expected));
        }
Example #2
0
        public void CanCompareIComparablesOfT()
        {
            ClassWithIComparableOfT expected = new ClassWithIComparableOfT(42);
            ClassWithIComparableOfT actual   = new ClassWithIComparableOfT(0);

            Assert.That(actual, Is.LessThanOrEqualTo(expected));
        }
 public void CanCompareIComparablesOfT()
 {
     ClassWithIComparableOfT expected = new ClassWithIComparableOfT(0);
     ClassWithIComparableOfT actual = new ClassWithIComparableOfT(42);
     Assert.That(actual, Is.GreaterThan(expected));
 }
 public void CanCompareIComparablesOfT()
 {
     ClassWithIComparableOfT expected = new ClassWithIComparableOfT(42);
     ClassWithIComparableOfT actual = new ClassWithIComparableOfT(0);
     Assert.That(actual, Is.LessThanOrEqualTo(expected));
 }