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

ShouldThrowExceptionWhenSaveImageFromImageFails() private method

private ShouldThrowExceptionWhenSaveImageFromImageFails ( ) : void
return void
        public void ShouldThrowExceptionWhenSaveImageFromImageFails()
        {
            var image = Image.FromFile(_rootPath + @"\TestImages\Jpg_Image.jpg");
            Assert.Throws<BlogException>(() => _imageHelper.SaveImage(image, null, null));
            image.Dispose();
        }