public void Equals_OtherVersion_False() { // Arrange var unitUnderTest = new PackageDetails(ValidName, ValidVersion); var other = new PackageDetails(ValidName, "Beta-2"); // Act var result = unitUnderTest.Equals(other); // Assert Assert.IsFalse(result); }
public void Equals_SameNameAndVersion_True() { // Arrange var unitUnderTest = new PackageDetails(ValidName, ValidVersion); var other = new PackageDetails(ValidName, ValidVersion); // Act var result = unitUnderTest.Equals(other); // Assert Assert.IsTrue(result); }