示例#1
0
        public void GetHashCode_NumberPassedIntoConstructor_ReturnsNumber()
        {
            var queryPart = new TopQueryPart(5);

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

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

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

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

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

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void GetHashCode_NumberPassedIntoConstructor_ReturnsNumber()
        {
            var queryPart = new TopQueryPart(5);

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

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void GetHashCode_NullPassedToConstructor_ReturnsZero()
        {
            var queryPart = new TopQueryPart(null);

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

            Assert.That(actual, Is.EqualTo(expected));
        }
        public void GetHashCode_NoParameterConstructorUsed_ReturnsZero()
        {
            var queryPart = new TopQueryPart();

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

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