예제 #1
0
        public void SetGifImage_Test()
        {
            var isExists = File.Exists(imageGifPath);

            Assert.IsTrue(isExists, "文件存在");

            var success = ImgAnimateGif.Instance().SetGifImage(imageGifPath, outputFilePath, out var list);


            Assert.AreEqual(list.Count, 3);
            Assert.IsTrue(success, "成功");
        }
예제 #2
0
        public void GetGifImage_Test()
        {
            foreach (var imgFilePath in imageFilePaths)
            {
                if (!File.Exists(imgFilePath))
                {
                    Assert.False(false, "文件路径不存在");
                }
            }
            if (File.Exists(outputImagePath))
            {
                File.Delete(outputImagePath);
            }
            var isok = ImgAnimateGif.Instance().GetGifImage(imageFilePaths, outputImagePath);

            Assert.IsTrue(isok, "生成成功");

            var isExists = File.Exists(outputImagePath);

            Assert.IsTrue(isExists, "文件存在");
        }