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 ());
 }
Beispiel #2
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());
        }
 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);
     }
 }
Beispiel #4
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);
     }
 }
 public void ConvertFromNonSupportedOptionBails () 
 {
     UriConverter vrt = new UriConverter ();
     object actual = vrt.ConvertFrom (12);
 } 
 public void ConvertFromNullReference () 
 {
     UriConverter vrt = new UriConverter ();
     object actual = vrt.ConvertFrom (null);
 }
Beispiel #7
0
        public void ConvertFromNonSupportedOptionBails()
        {
            UriConverter vrt = new UriConverter();

            Assert.Throws <NotSupportedException>(() => vrt.ConvertFrom(12));
        }
Beispiel #8
0
        public void ConvertFromNullReference()
        {
            UriConverter vrt = new UriConverter();

            Assert.Throws <NotSupportedException>(() => vrt.ConvertFrom(null));
        }
Beispiel #9
0
 public void ConvertFromNonSupportedOptionBails()
 {
     UriConverter vrt    = new UriConverter();
     object       actual = vrt.ConvertFrom(12);
 }
Beispiel #10
0
 public void ConvertFromNullReference()
 {
     UriConverter vrt    = new UriConverter();
     object       actual = vrt.ConvertFrom(null);
 }
 public void ConvertFromNonSupportedOptionBails () 
 {
     UriConverter vrt = new UriConverter ();
     Assert.Throws<NotSupportedException>(() => vrt.ConvertFrom (12));
 } 
 public void ConvertFromNullReference () 
 {
     UriConverter vrt = new UriConverter ();
     Assert.Throws<NotSupportedException>(() => vrt.ConvertFrom (null));
 }