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); }
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 }
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); }
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 }
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 }
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 }