コード例 #1
0
        public void TestGetImageGif()
        {
            ImagingApi target = new ImagingApi(APIKEY, APPSID, BASEPATH);
            StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH);


            string name = "sample.gif";
            string backgroundColorIndex = null;
            string colorResolution = null;
            bool? hasTrailer = null;
            bool? interlaced = null;
            bool? isPaletteSorted = null;
            string pixelAspectRatio = null;
            bool? fromScratch = null;
            string outPath = "";
            string folder = "";
            string storage = "";

            storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name)); 

            ResponseMessage actual;
            actual = target.GetImageGif(name, backgroundColorIndex, colorResolution, hasTrailer, interlaced, isPaletteSorted, pixelAspectRatio, fromScratch, outPath, folder, storage);
            
            Assert.AreEqual(200, actual.Code);
            Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); 
        }