示例#1
0
 public void DefaultPropertiesShouldBeCorrect()
 {
     var ordinal1 = new Ordinal(0);
     Assert.IsNotNull(ordinal1.GetLimits());
     Ordinal ordinal2 = null;
     var ordinal3 = new Ordinal(0);
     Assert.IsFalse(ordinal1.IsStrictlyComparableTo(ordinal2));
     Assert.IsTrue(ordinal1.IsStrictlyComparableTo(ordinal3));
 }
示例#2
0
        public void DefaultPropertiesShouldBeCorrect()
        {
            var ordinal1 = new Ordinal(0);

            Assert.IsNotNull(ordinal1.GetLimits());
            Ordinal ordinal2 = null;
            var     ordinal3 = new Ordinal(0);

            Assert.IsFalse(ordinal1.IsStrictlyComparableTo(ordinal2));
            Assert.IsTrue(ordinal1.IsStrictlyComparableTo(ordinal3));
        }