public void TestResponsiblePartyMustHaveAContactNumber() { PhoneNumber testPhoneNumber = new PhoneNumber(); testPhoneNumber = TestRelative.ContactNumber; Assert.NotNull(testPhoneNumber); }
public void TestPossibleToHaveOnlyOnePhoneNumber() { PhoneNumber testNumber = new PhoneNumber("testNumber"); Assert.NotNull(testNumber.ContactNumber); }
public void TestResponsiblePartyCanHaveBothHomeAndMobileNumber() { ResponsibleParty testRelative1 = new ResponsibleParty("first", "last", "testHomeNumber", "testMobileNumber", "testStreet", "testCity"); PhoneNumber testPhoneNumber = new PhoneNumber(); testPhoneNumber.Home = testRelative1.ContactNumber.Home; testPhoneNumber.Mobile = testRelative1.ContactNumber.Mobile; Assert.NotNull(testPhoneNumber.Home); Assert.NotNull(testPhoneNumber.Mobile); }
public void TestPhoneNumberCanBeMobileAndHome() { PhoneNumber testNumber = new PhoneNumber("testHome", "testMobile"); Assert.NotNull(testNumber.Home); Assert.NotNull(testNumber.Mobile); }