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 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); } }
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); }
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)); }
public void ConvertFromNonSupportedOptionBails() { UriConverter vrt = new UriConverter(); object actual = vrt.ConvertFrom(12); }
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)); }