public void GetHashCodeWhenSchemeIsDefaultReturnsCorrectResult() { // Arrange var sut = new UriScheme(); // Act int result = sut.GetHashCode(); // Assert int expectedHashCode = "http".GetHashCode(); Assert.Equal(expectedHashCode, result); }
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 }
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 }