Beispiel #1
0
 public void MakeRequestTest()
 {
     string actual;            
     actual = ImageInfo.MakeRequest(FileOpUrl);
     //System.Diagnostics.Process.Start(actual);
     ImageInfoRet ret= ImageInfo.Call(actual);
     Assert.IsNotNull(ret, "ImageInfoTest MakeRequestTest Failure");
 }
Beispiel #2
0
        public async Task MakeRequestTest()
#endif
        {
            string actual;

            actual = ImageInfo.MakeRequest(FileOpUrl);
            //System.Diagnostics.Process.Start(actual);
#if NET20 || NET40
            ImageInfoRet ret = ImageInfo.Call(actual);
            Assert.IsNotNull(ret, "ImageInfoTest MakeRequestTest Failure");
#else
            ImageInfoRet ret = await ImageInfo.CallAsync(actual);

            Assert.True(ret != null, "ImageInfoTest MakeRequestTest Failure");
#endif
        }
Beispiel #3
0
        public static Tuple <int, int> GetImgSize(string url)
        {
            ImageInfoRet ret = ImageInfo.Call(url + "?imageInfo");

            return(new Tuple <int, int>(ret.Width, ret.Height));
        }