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