Esempio n. 1
0
        public void IsMarriedTo_ReturnsFalseForNonWife()
        {
            var p1 = new FamilyMember("Tom", Gender.Male);
            var p2 = new FamilyMember("Nancy", Gender.Female);

            Assert.IsFalse(p1.IsMarriedTo(p2));
        }
Esempio n. 2
0
        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));
        }