コード例 #1
0
        public void GetHashCode_NumberPassedIntoConstructor_ReturnsNumber()
        {
            var queryPart = new SkipQueryPart(5);

            var expected = 5;
            var actual   = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #2
0
        public void GetHashCode_NullPassedToConstructor_ReturnsZero()
        {
            var queryPart = new SkipQueryPart(null);

            var expected = 0;
            var actual   = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #3
0
        public void GetHashCode_NoParameterConstructorUsed_ReturnsZero()
        {
            var queryPart = new SkipQueryPart();

            var expected = 0;
            var actual   = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #4
0
        public void GetHashCode_NumberPassedIntoConstructor_ReturnsNumber()
        {
            var queryPart = new SkipQueryPart(5);

            var expected = 5;
            var actual = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #5
0
        public void GetHashCode_NullPassedToConstructor_ReturnsZero()
        {
            var queryPart = new SkipQueryPart(null);

            var expected = 0;
            var actual = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }
コード例 #6
0
        public void GetHashCode_NoParameterConstructorUsed_ReturnsZero()
        {
            var queryPart = new SkipQueryPart();

            var expected = 0;
            var actual = queryPart.GetHashCode();

            Assert.That(actual, Is.EqualTo(expected));
        }