public void ThenTwoAgreementsAreNotEqualForType(string sharedValue, string sharedType, string sharedPModeId) { // Arrange Agreement agreementA = CreateAgreement(sharedValue, sharedType, sharedPModeId); Agreement agreementB = CreateAgreement(sharedValue, "not-equal", sharedPModeId); // Act bool isEqual = agreementA.Equals(agreementB); // Assert Assert.False(isEqual); }
public void ThenTwoAgreementsAreEqualForObject(string sharedValue, string sharedType, string sharedPModeId) { // Arrange Agreement agreementA = CreateAgreement(sharedValue, sharedType, sharedPModeId); Agreement agreementB = CreateAgreement(sharedValue, sharedType, sharedPModeId); // Act bool isEqual = agreementA.Equals((object)agreementB); // Assert Assert.True(isEqual); }