public void Transactional_Unit_Equals3_OtherIsUnequivalent() { String currentValue = "Current"; String originalValue = "Original"; Transactional<String> target = new Transactional<String>(currentValue, originalValue); String other = originalValue; Boolean expected = false; Boolean actual = target.Equals(other); Assert.AreEqual(expected, actual); }
public void Transactional_Unit_Equals2_OtherIsSameReference() { String currentValue = "Current"; String originalValue = "Original"; Transactional<String> target = new Transactional<String>(currentValue, originalValue); Transactional<String> other = target; Boolean expected = true; Boolean actual = target.Equals(other); Assert.AreEqual(expected, actual); }
public void Transactional_Unit_Equals2_ValuesAreNull() { String currentValue = null; String originalValue = null; Transactional<String> target = new Transactional<String>(currentValue, originalValue); Transactional<String> other = new Transactional<String>(currentValue, originalValue); Boolean expected = true; Boolean actual = target.Equals(other); Assert.AreEqual(expected, actual); }
public void Transactional_Unit_Equals1_ObjIsUnequivalentTransactional() { String currentValue = "Current"; String originalValue = "Original"; Transactional<String> target = new Transactional<String>(currentValue, originalValue); Object obj = new Transactional<String>(currentValue); Boolean expected = false; Boolean actual = target.Equals(obj); Assert.AreEqual(expected, actual); }