public void IsMarriedTo_ReturnsFalseForNonWife() { var p1 = new FamilyMember("Tom", Gender.Male); var p2 = new FamilyMember("Nancy", Gender.Female); Assert.IsFalse(p1.IsMarriedTo(p2)); }
public void IsMarriedTo_ReturnsTrueForCurrentWife() { var p1 = new FamilyMember("Tom", Gender.Male); var p2 = new FamilyMember("Nancy", Gender.Female); new Partnership(p1, p2); Assert.IsTrue(p1.IsMarriedTo(p2)); }