public void ProteinProduction_EqualsObject_ReturnsFalse() { // Arrange var production = new ProteinProduction(1.0, 2.0, 3.0, 4.0); object other = new ProteinProduction(2.0, 3.0, 4.0, 5.0); // Act var result = production.Equals(other); // Assert Assert.IsFalse(result); }
public void ProteinProduction_EqualsProteinProduction_ReturnsTrue() { // Arrange var production = new ProteinProduction(1.0, 2.0, 3.0, 4.0); var other = production; // Act var result = production.Equals(other); // Assert Assert.IsTrue(result); Assert.AreEqual(production.GetHashCode(), other.GetHashCode()); Assert.IsTrue(production == other); Assert.IsFalse(production != other); }