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();
}