示例#1
0
        public void MonthNotEqualsOperatorReturnsFalseIfLeftAndRightAreNull()
        {
            c.Month left  = null;
            c.Month right = null;

            Assert.IsFalse(left != right);
        }
示例#2
0
        public void MonthNotEqualsOperatorReturnsTrueIfLeftIsNotNullAndRightIsNull()
        {
            c.Month left  = new c.Month(47);
            c.Month right = null;

            Assert.IsTrue(left != right);
        }
示例#3
0
        public void MonthNotEqualsOperatorReturnsTrueIfLeftAndRightAreNotSameValue()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(46);

            Assert.IsTrue(left != right);
        }
示例#4
0
        public void MonthNotEqualsOperatorReturnsFalseIfLeftAndRightAreSameReference()
        {
            c.Month left  = new c.Month(47);
            c.Month right = left;

            Assert.IsFalse(left != right);
        }
示例#5
0
        public void MonthEqualsOperatorReturnsFalseIfLeftIsNullAndRightIsNotNull()
        {
            c.Month left  = null;
            c.Month right = new c.Month(47);

            Assert.IsFalse(left == right);
        }
示例#6
0
        public void MonthLessThanOperatorReturnsFalseIfLeftIsGreaterThanRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(46);

            Assert.IsFalse(left < right);
        }
示例#7
0
        public void MonthGreaterThanOperatorReturnsFalseIfLeftAndRightAreNull()
        {
            c.Month left  = null;
            c.Month right = null;

            Assert.IsFalse(left > right);
        }
示例#8
0
        public void MonthEqualsReturnsTrueIfOtherIsSameValue()
        {
            c.Month month = new c.Month(47);
            c.Month other = new c.Month(47);

            Assert.IsTrue(month.Equals(other));
        }
示例#9
0
        public void MonthGreaterThanOperatorReturnsFalseIfLeftIsSameReferenceAsRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = left;

            Assert.IsFalse(left > right);
        }
示例#10
0
        public void MonthEqualsReturnsFalseIfOtherIsDifferentValue()
        {
            c.Month month = new c.Month(47);
            c.Month other = new c.Month(45);

            Assert.IsFalse(month.Equals(other));
        }
示例#11
0
        public void MonthLessThanOperatorReturnsTrueIfLeftIsNullAndRightIsNotNull()
        {
            c.Month left  = null;
            c.Month right = new c.Month(46);

            Assert.IsTrue(left < right);
        }
示例#12
0
        public void MonthLessThanOrEqualOperatorReturnsFalseIfLeftIsNotNullAndRightIsNull()
        {
            c.Month left  = new c.Month(47);
            c.Month right = null;

            Assert.IsFalse(left <= right);
        }
示例#13
0
        public void MonthLessThanOrEqualOperatorReturnsTrueIfLeftIsLessThanRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(48);

            Assert.IsTrue(left <= right);
        }
示例#14
0
        public void MonthGreaterThanOrEqualOperatorReturnsTrueIfLeftIsNotNullAndRightIsNull()
        {
            c.Month left  = new c.Month(47);
            c.Month right = null;

            Assert.IsTrue(left >= right);
        }
示例#15
0
        public void MonthEqualsReturnsFalseIfOtherIsNotTypeOfMonth()
        {
            c.Month month = new c.Month(47);
            Task    other = new Task(() => { });

            Assert.IsFalse(month.Equals(other));
        }
示例#16
0
        public void MonthGreaterThanOrEqualOperatorReturnsFalseIfLeftIsLessThanRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(48);

            Assert.IsFalse(left >= right);
        }
示例#17
0
        public void MonthGreaterThanOrEqualOperatorReturnsTrueIfLeftAndRightAreNull()
        {
            c.Month left  = null;
            c.Month right = null;

            Assert.IsTrue(left >= right);
        }
示例#18
0
        public void MonthEqualsReturnsFalseIfOtherIsNull()
        {
            c.Month month = new c.Month(47);
            c.Month other = null;

            Assert.IsFalse(month.Equals(other));
        }
示例#19
0
        public void MonthGreaterThanOrEqualOperatorReturnsTrueIfLeftIsSameReferenceAsRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = left;

            Assert.IsTrue(left >= right);
        }
示例#20
0
        public void MonthGreaterThanOrEqualOperatorReturnsTrueIfLeftIsGreaterThanRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(46);

            Assert.IsTrue(left >= right);
        }
示例#21
0
        public void MonthLessThanOperatorReturnsFalseIfLeftIsSameValueAsRight()
        {
            c.Month left  = new c.Month(47);
            c.Month right = new c.Month(47);

            Assert.IsFalse(left < right);
        }
示例#22
0
        public void MonthEqualsOperatorReturnsTrueIfLeftAndRightAreNull()
        {
            c.Month left  = null;
            c.Month right = null;

            Assert.IsTrue(left == right);
        }
示例#23
0
        public void MonthGreaterThanOperatorReturnsFalseIfLeftIsNullAndRightIsNotNull()
        {
            c.Month left  = null;
            c.Month right = new c.Month(46);

            Assert.IsFalse(left > right);
        }
示例#24
0
        public void MonthToStringReturnsExpectedStringForMinInt32()
        {
            const string expected = "";

            c.Month month = new c.Month(int.MinValue);

            Assert.AreEqual(expected, month.ToString());
        }
示例#25
0
        public void MonthGetHashCodeReturnsExpectedHash()
        {
            const int expected = 47;

            c.Month month = new c.Month(expected);

            Assert.AreEqual(expected, month.GetHashCode());
        }
示例#26
0
        public void ConnectionGetsExpectedNullValueForMonthCharacterId()
        {
            c.Month expected = new c.Month(int.MinValue);

            var result = c.NULL('m');

            Assert.AreEqual(expected, result);
        }
示例#27
0
        public void MonthToStringReturnsExpectedString()
        {
            const string expected = "2003-12";

            c.Month month = new c.Month(47);

            Assert.AreEqual(expected, month.ToString());
        }
 public void Setup()
 {
     _data = new c.Month[Number];
     for (int i = 0; i < _data.Length; i++)
     {
         _data[i] = new c.Month(i);
     }
 }
示例#29
0
        public void ConnectionGetsExpectedNullValueFromMonthType()
        {
            c.Month expected = new c.Month(int.MinValue);

            var result = c.NULL(typeof(c.Month));

            Assert.AreEqual(expected, result);
        }
示例#30
0
        public void MonthCompareToReturnsOneIfOtherIsNull()
        {
            const int expected = 1;

            c.Month month = new c.Month(47);
            c.Month other = null;

            Assert.AreEqual(expected, month.CompareTo(other));
        }