public void GetHashCode_WithSameTorsions_ReturnsSameValue() { // Arrange var torsion1 = new Torsion(-5); var torsion2 = new Torsion(-5); // Act var hashCode1 = torsion1.GetHashCode(); var hashCode2 = torsion2.GetHashCode(); // Assert Assert.Equal(hashCode1, hashCode2); }
public void GetHashCode_WithDifferentTorsions_ReturnsDifferentValue() { // Arrange var torsion1 = new Torsion(-5); var torsion2 = new Torsion(5); // Act var hashCode1 = torsion1.GetHashCode(); var hashCode2 = torsion2.GetHashCode(); // Assert Assert.NotEqual(hashCode1, hashCode2); }