public void TELValidEMailFlavorTest() { TEL tel = new TEL(); tel.Value = "mailto:[email protected]"; tel.NullFlavor = null; Assert.IsTrue(TEL.IsValidEMailFlavor(tel)); Assert.IsTrue(TEL.IsValidPersonFlavor(tel)); }
public void TELInvalidEMailFlavorTest() { TEL tel = new TEL(); tel.Value = "no emails thank you"; tel.NullFlavor = null; Assert.IsFalse(TEL.IsValidEMailFlavor(tel)); Assert.IsFalse(TEL.IsValidPersonFlavor(tel)); }
public void TELConstructionTest4() { TEL mail = new TEL("mailtoXYZ:[email protected]", new CS <TelecommunicationAddressUse>[] { TelecommunicationAddressUse.WorkPlace, TelecommunicationAddressUse.Direct } ); mail.NullFlavor = null; Assert.IsFalse(TEL.IsValidEMailFlavor(mail)); }