Esempio n. 1
0
        public void GetHashCodeWillReturnCorrectResultWhenSeedIsNull()
        {
            // Arrange
            var request          = typeof(Version);
            var sut              = new SeededRequest(request, null);
            var expectedHashCode = request.GetHashCode();
            // Act
            var result = sut.GetHashCode();

            // Assert
            Assert.Equal(expectedHashCode, result);
        }
Esempio n. 2
0
        public void GetHashCodeWillReturnCorrectResultWhenSeedIsNull()
        {
            // Fixture setup
            var request          = typeof(Version);
            var sut              = new SeededRequest(request, null);
            var expectedHashCode = request.GetHashCode();
            // Exercise system
            var result = sut.GetHashCode();

            // Verify outcome
            Assert.AreEqual(expectedHashCode, result, "GetHashCode");
            // Teardown
        }
Esempio n. 3
0
        public void GetHashCodeWillReturnCorrectResult()
        {
            // Arrange
            var request          = typeof(ConcreteType);
            var value            = Missing.Value;
            var sut              = new SeededRequest(request, value);
            var expectedHashCode = request.GetHashCode() ^ value.GetHashCode();
            // Act
            var result = sut.GetHashCode();

            // Assert
            Assert.Equal(expectedHashCode, result);
        }
Esempio n. 4
0
        public void GetHashCodeWillReturnCorrectResult()
        {
            // Fixture setup
            var request          = typeof(NetPipeStyleUriParser);
            var value            = Missing.Value;
            var sut              = new SeededRequest(request, value);
            var expectedHashCode = request.GetHashCode() ^ value.GetHashCode();
            // Exercise system
            var result = sut.GetHashCode();

            // Verify outcome
            Assert.AreEqual(expectedHashCode, result, "GetHashCode");
            // Teardown
        }
Esempio n. 5
0
 public void GetHashCodeWillReturnCorrectResult()
 {
     // Fixture setup
     var request = typeof(NetPipeStyleUriParser);
     var value = Missing.Value;
     var sut = new SeededRequest(request, value);
     var expectedHashCode = request.GetHashCode() ^ value.GetHashCode();
     // Exercise system
     var result = sut.GetHashCode();
     // Verify outcome
     Assert.Equal(expectedHashCode, result);
     // Teardown
 }
Esempio n. 6
0
 public void GetHashCodeWillReturnCorrectResultWhenSeedIsNull()
 {
     // Fixture setup
     var request = typeof(Version);
     var sut = new SeededRequest(request, null);
     var expectedHashCode = request.GetHashCode();
     // Exercise system
     var result = sut.GetHashCode();
     // Verify outcome
     Assert.Equal(expectedHashCode, result);
     // Teardown
 }