public void GetHashCodeReturnsCorrectResult()
        {
            // Arrange
            string pattern          = "[0-9]";
            var    sut              = new RegularExpressionRequest(pattern);
            var    expectedHashCode = pattern.GetHashCode();
            // Act
            var result = sut.GetHashCode();

            // Assert
            Assert.Equal(expectedHashCode, result);
        }
Exemplo n.º 2
0
        public void GetHashCodeReturnsCorrectResult()
        {
            // Fixture setup
            string pattern          = "[0-9]";
            var    sut              = new RegularExpressionRequest(pattern);
            var    expectedHashCode = pattern.GetHashCode();
            // Exercise system
            var result = sut.GetHashCode();

            // Verify outcome
            Assert.Equal(expectedHashCode, result);
            // Teardown
        }
 public void GetHashCodeReturnsCorrectResult()
 {
     // Fixture setup
     string pattern = "[0-9]";
     var sut = new RegularExpressionRequest(pattern);
     var expectedHashCode = pattern.GetHashCode();
     // Exercise system
     var result = sut.GetHashCode();
     // Verify outcome
     Assert.Equal(expectedHashCode, result);
     // Teardown
 }