public void IsDivorcedFrom_ReturnsFalseForNonWife() { var p1 = new FamilyMember("Tom", Gender.Male); var p2 = new FamilyMember("Nancy", Gender.Female); Assert.IsFalse(p1.IsDivorcedFrom(p2)); }
public void IsDivorcedFrom_ReturnsFalseForCurrentWife() { var p1 = new FamilyMember("Tom", Gender.Male); var p2 = new FamilyMember("Nancy", Gender.Female); new Partnership(p1, p2); Assert.IsFalse(p1.IsDivorcedFrom(p2)); }
public void IsDivorcedFrom_ReturnsTrueForExWife() { var p1 = new FamilyMember("Tom", Gender.Male); var p2 = new FamilyMember("Nancy", Gender.Female); var partnership = new Partnership(p1, p2); partnership.IsDivorced = true; Assert.IsTrue(p1.IsDivorcedFrom(p2)); }