示例#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");
 }
示例#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
        }
示例#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));
        }