public void TELValidURIFlavorTest() { TEL tel = new TEL(); tel.Value = "file:blah/blah"; tel.NullFlavor = null; Assert.IsTrue(TEL.IsValidUriFlavor(tel)); }
public void TELInvalidURIFlavorTest() { TEL tel = new TEL(); tel.Value = "nothing here"; tel.NullFlavor = null; Assert.IsFalse(TEL.IsValidUriFlavor(tel)); }
public void TELConstructionTest8() { TEL uri = new TEL("fileXYZ://www.google.com", new CS <TelecommunicationAddressUse>[] { TelecommunicationAddressUse.WorkPlace, TelecommunicationAddressUse.Direct } ); uri.NullFlavor = null; Assert.IsFalse(TEL.IsValidUriFlavor(uri)); }