Beispiel #1
0
        public void GetHashCodeWhenSchemeIsDefaultReturnsCorrectResult()
        {
            // Arrange
            var sut = new UriScheme();
            // Act
            int result = sut.GetHashCode();
            // Assert
            int expectedHashCode = "http".GetHashCode();

            Assert.Equal(expectedHashCode, result);
        }
Beispiel #2
0
        public void GetHashCodeWhenSchemeIsDefaultReturnsCorrectResult()
        {
            // Fixture setup
            var sut = new UriScheme();
            // Exercise system
            int result = sut.GetHashCode();
            // Verify outcome
            int expectedHashCode = "http".GetHashCode();

            Assert.Equal(expectedHashCode, result);
            // Teardown
        }
Beispiel #3
0
 public void GetHashCodeWhenSchemeIsNotDefaultReturnsCorrectResult()
 {
     // Fixture setup
     var scheme = "https";
     var sut = new UriScheme(scheme);
     // Exercise system
     int result = sut.GetHashCode();
     // Verify outcome
     int expectedHashCode = scheme.GetHashCode();
     Assert.Equal(expectedHashCode, result);
     // Teardown
 }