public void MakeRequestTest() { string url = GetPolicy.MakeBaseUrl("qiniuphotos.qiniudn.com", "gogopher.jpg"); // TODO: 初始化为适当的值 string actual = Exif.MakeRequest(url); ExifRet ret = Exif.Call(actual); Assert.IsTrue(ret.OK, "MakeRequestTest Failure"); }
public async Task MakeRequestTest() #endif { string url = GetPolicy.MakeBaseUrl("qiniuphotos.qiniudn.com", "gogopher.jpg"); // TODO: 初始化为适当的值 string actual = Exif.MakeRequest(url); #if NET20 || NET40 ExifRet ret = Exif.Call(actual); Assert.IsTrue(ret.OK, "MakeRequestTest Failure"); #else ExifRet ret = await Exif.CallAsync(actual); Assert.True(ret.OK, "MakeRequestTest Failure"); #endif }