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

ShouldCreateGifThumbnail() private method

private ShouldCreateGifThumbnail ( ) : void
return void
        public void ShouldCreateGifThumbnail()
        {
            var result = _imageHelper.CreateGifThumbnail(_rootPath + @"\TestImages\Gif_Image.gif", _rootPath + @"\TestImages\New\", "tn_");

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