Пример #1
0
 public void ConvertFrom()
 {
     UriConverter vrt = new UriConverter ();
     object actual = vrt.ConvertFrom ("svn://localhost/Spring/trunk/");
     Assert.IsNotNull (actual);
     Assert.AreEqual (typeof (System.Uri), actual.GetType ());
 }
Пример #2
0
 public void ConvertFromMalformedUriBails()
 {
     try
     {
         UriConverter vrt = new UriConverter ();
         object actual = vrt.ConvertFrom ("$TheAngelGang");
     }
     catch (Exception ex)
     {
         // check that the inner exception was doe to the malformed URL
         Assert.IsTrue (ex.InnerException is UriFormatException);
     }
 }
Пример #3
0
 public void ConvertFromNullReference()
 {
     UriConverter vrt = new UriConverter ();
     object actual = vrt.ConvertFrom (null);
 }
Пример #4
0
 public void ConvertFromNonSupportedOptionBails()
 {
     UriConverter vrt = new UriConverter ();
     object actual = vrt.ConvertFrom (12);
 }