Example #1
0
        public void TELValidURIFlavorTest()
        {
            TEL tel = new TEL();

            tel.Value      = "file:blah/blah";
            tel.NullFlavor = null;
            Assert.IsTrue(TEL.IsValidUriFlavor(tel));
        }
Example #2
0
        public void TELInvalidURIFlavorTest()
        {
            TEL tel = new TEL();

            tel.Value      = "nothing here";
            tel.NullFlavor = null;
            Assert.IsFalse(TEL.IsValidUriFlavor(tel));
        }
Example #3
0
        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));
        }