Exemplo n.º 1
0
        public void MonthNotEqualsOperatorReturnsFalseIfLeftAndRightAreNull()
        {
            c.Month left  = null;
            c.Month right = null;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 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));
        }