Пример #1
0
        public void SecondGreaterThanOperatorReturnsFalseIfLeftIsSameReferenceAsRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = left;

            Assert.IsFalse(left > right);
        }
Пример #2
0
        public void SecondEqualsReturnsTrueIfOtherIsSameValue()
        {
            c.Second second = new c.Second(47);
            c.Second other  = new c.Second(47);

            Assert.IsTrue(second.Equals(other));
        }
Пример #3
0
        public void SecondNotEqualsOperatorReturnsTrueIfLeftIsNotNullAndRightIsNull()
        {
            c.Second left  = new c.Second(47);
            c.Second right = null;

            Assert.IsTrue(left != right);
        }
Пример #4
0
        public void SecondNotEqualsOperatorReturnsTrueIfLeftAndRightAreNotSameValue()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(46);

            Assert.IsTrue(left != right);
        }
Пример #5
0
        public void SecondNotEqualsOperatorReturnsFalseIfLeftAndRightAreNull()
        {
            c.Second left  = null;
            c.Second right = null;

            Assert.IsFalse(left != right);
        }
Пример #6
0
        public void SecondNotEqualsOperatorReturnsFalseIfLeftAndRightAreSameReference()
        {
            c.Second left  = new c.Second(47);
            c.Second right = left;

            Assert.IsFalse(left != right);
        }
Пример #7
0
        public void SecondEqualsOperatorReturnsFalseIfLeftIsNullAndRightIsNotNull()
        {
            c.Second left  = null;
            c.Second right = new c.Second(47);

            Assert.IsFalse(left == right);
        }
Пример #8
0
        public void SecondEqualsOperatorReturnsTrueIfLeftAndRightAreNull()
        {
            c.Second left  = null;
            c.Second right = null;

            Assert.IsTrue(left == right);
        }
Пример #9
0
        public void SecondLessThanOperatorReturnsFalseIfLeftIsGreaterThanRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(46);

            Assert.IsFalse(left < right);
        }
Пример #10
0
        public void SecondEqualsReturnsFalseIfOtherIsDifferentValue()
        {
            c.Second second = new c.Second(47);
            c.Second other  = new c.Second(45);

            Assert.IsFalse(second.Equals(other));
        }
Пример #11
0
        public void SecondGreaterThanOrEqualOperatorReturnsTrueIfLeftIsNotNullAndRightIsNull()
        {
            c.Second left  = new c.Second(47);
            c.Second right = null;

            Assert.IsTrue(left >= right);
        }
Пример #12
0
        public void SecondGreaterThanOrEqualOperatorReturnsTrueIfLeftAndRightAreNull()
        {
            c.Second left  = null;
            c.Second right = null;

            Assert.IsTrue(left >= right);
        }
Пример #13
0
        public void SecondGreaterThanOperatorReturnsFalseIfLeftAndRightAreNull()
        {
            c.Second left  = null;
            c.Second right = null;

            Assert.IsFalse(left > right);
        }
Пример #14
0
        public void SecondGreaterThanOrEqualOperatorReturnsTrueIfLeftIsSameReferenceAsRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = left;

            Assert.IsTrue(left >= right);
        }
Пример #15
0
        public void SecondGreaterThanOrEqualOperatorReturnsFalseIfLeftIsLessThanRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(48);

            Assert.IsFalse(left >= right);
        }
Пример #16
0
        public void SecondGreaterThanOrEqualOperatorReturnsTrueIfLeftIsGreaterThanRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(46);

            Assert.IsTrue(left >= right);
        }
Пример #17
0
        public void SecondEqualsReturnsFalseIfOtherIsNull()
        {
            c.Second second = new c.Second(47);
            c.Second other  = null;

            Assert.IsFalse(second.Equals(other));
        }
Пример #18
0
        public void SecondLessThanOrEqualOperatorReturnsTrueIfLeftIsLessThanRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(48);

            Assert.IsTrue(left <= right);
        }
Пример #19
0
        public void SecondLessThanOrEqualOperatorReturnsFalseIfLeftIsNotNullAndRightIsNull()
        {
            c.Second left  = new c.Second(47);
            c.Second right = null;

            Assert.IsFalse(left <= right);
        }
Пример #20
0
        public void SecondEqualsReturnsFalseIfOtherIsNotTypeOfSecond()
        {
            c.Second second = new c.Second(47);
            Task     other  = new Task(() => { });

            Assert.IsFalse(second.Equals(other));
        }
Пример #21
0
        public void SecondGreaterThanOperatorReturnsFalseIfLeftIsNullAndRightIsNotNull()
        {
            c.Second left  = null;
            c.Second right = new c.Second(46);

            Assert.IsFalse(left > right);
        }
Пример #22
0
        public void SecondLessThanOperatorReturnsTrueIfLeftIsNullAndRightIsNotNull()
        {
            c.Second left  = null;
            c.Second right = new c.Second(46);

            Assert.IsTrue(left < right);
        }
Пример #23
0
        public void SecondLessThanOperatorReturnsFalseIfLeftIsSameValueAsRight()
        {
            c.Second left  = new c.Second(47);
            c.Second right = new c.Second(47);

            Assert.IsFalse(left < right);
        }
Пример #24
0
        public void SecondGetHashCodeReturnsExpectedHash()
        {
            const int expected = 47;

            c.Second second = new c.Second(expected);

            Assert.AreEqual(expected, second.GetHashCode());
        }
Пример #25
0
        public void SecondToStringReturnsExpectedString()
        {
            const string expected = "00:00:47";

            c.Second second = new c.Second(47);

            Assert.AreEqual(expected, second.ToString());
        }
Пример #26
0
        public void SecondToStringReturnsExpectedStringForMinInt32()
        {
            const string expected = "";

            c.Second second = new c.Second(int.MinValue);

            Assert.AreEqual(expected, second.ToString());
        }
Пример #27
0
        public void ConnectionGetsExpectedNullValueFromSecondType()
        {
            c.Second expected = new c.Second(int.MinValue);

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

            Assert.AreEqual(expected, result);
        }
Пример #28
0
        public void ConnectionGetsExpectedNullValueForSecondCharacterId()
        {
            c.Second expected = new c.Second(int.MinValue);

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

            Assert.AreEqual(expected, result);
        }
 public void Setup()
 {
     _data = new c.Second[Number];
     for (int i = 0; i < _data.Length; i++)
     {
         _data[i] = new c.Second(i);
     }
 }
Пример #30
0
        public void SecondCompareToReturnsOneIfOtherIsNull()
        {
            const int expected = 1;

            c.Second second = new c.Second(47);
            c.Second other  = null;

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