Esempio n. 1
0
 public virtual void testGetMimeTypeFromExt()
 {
     Assert.AreEqual(UrlUtil.TEXT_UNKNOWN, MimeUtil.getMimeTypeFromExt("www.foobar.com"));
     Assert.AreEqual(UrlUtil.VND_JDF, MimeUtil.getMimeTypeFromExt(".JDF"));
     Assert.AreEqual(UrlUtil.VND_JDF, MimeUtil.getMimeTypeFromExt(".jdf"));
     Assert.AreEqual(UrlUtil.VND_JDF, MimeUtil.getMimeTypeFromExt("http://fobar.con/snarf.jdf"));
     Assert.AreEqual(UrlUtil.VND_JMF, MimeUtil.getMimeTypeFromExt("http://fobar.con/snarf.JMF"));
     Assert.AreEqual(UrlUtil.TEXT_XML, MimeUtil.getMimeTypeFromExt("http://fobar.con/snarf.xml"));
 }