private void TestImageTypeSupport(Uri location, bool expectedResult)
 {
     NUnit.Framework.Assert.AreEqual(expectedResult, ImageDataFactory.IsSupportedType(location));
     using (FileStream inputStream = new FileStream(location.PathAndQuery, FileMode.Open, FileAccess.Read)) {
         NUnit.Framework.Assert.AreEqual(expectedResult, ImageDataFactory.IsSupportedType(StreamUtil.InputStreamToArray
                                                                                              (inputStream)));
     }
 }
 public virtual void TestImageTypeSupportWmfType()
 {
     NUnit.Framework.Assert.IsFalse(ImageDataFactory.IsSupportedType(ImageType.WMF));
 }