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"); }
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 }
public static Tuple <int, int> GetImgSize(string url) { ImageInfoRet ret = ImageInfo.Call(url + "?imageInfo"); return(new Tuple <int, int>(ret.Width, ret.Height)); }