Blog.Common.Utils.Tests.Helpers.ImageHelperTest.ShouldCreateDirectoryOnCreateGifThumbnailIfNotExists C# (CSharp) Method

ShouldCreateDirectoryOnCreateGifThumbnailIfNotExists() private method

        public void ShouldCreateDirectoryOnCreateGifThumbnailIfNotExists()
        {
            var result = _imageHelper.CreateGifThumbnail(_rootPath + @"\TestImages\Gif_Image.gif", _rootPath + @"\TestImages\DirGif\", "tn_");

            Assert.IsTrue(result);
            Assert.IsTrue(File.Exists(_rootPath + @"\TestImages\DirGif\tn_Gif_Image.jpg"));
            Assert.AreEqual(400, Image.FromFile(_rootPath + @"\TestImages\DirGif\tn_Gif_Image.jpg").Width);
            Assert.AreEqual(176, Image.FromFile(_rootPath + @"\TestImages\DirGif\tn_Gif_Image.jpg").Height);
        }