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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Assert.AreEqual(expected, result);
        }
Example #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);
     }
 }
Example #29
0
        public void ConnectionGetsExpectedNullValueFromMonthType()
        {
            c.Month expected = new c.Month(int.MinValue);

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

            Assert.AreEqual(expected, result);
        }
Example #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));
        }