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

ShouldThrowExceptionOnCreateGifThumbnailButNonMovingImage() private method

        public void ShouldThrowExceptionOnCreateGifThumbnailButNonMovingImage()
        {
            var ex = Assert.Throws<BlogException>(() => _imageHelper.CreateGifThumbnail(
                _rootPath + @"\TestImages\Gif_Image_Nonmoving.gif", _rootPath + @"\TestImages\New\", "tn_"));
            Assert.That(ex.Message, Is.EqualTo("Image not animated"));
            Assert.IsFalse(File.Exists(_rootPath + @"\TestImages\New\tn_Gif_Image_Nonmoving.jpg"));
        }