Example #1
0
        public void Must_be_Comparable()
        {
            var a = new TTL(1200);
            var b = new TTL(2400);
            var c = new TTL(3600);

            b.CompareTo(a).Should().Be(1);
            b.CompareTo(b).Should().Be(0);
            b.CompareTo(c).Should().Be(-1);
        }