private int Compress() { using(var context = UploadImageContextMaker.MockImageContext(TestConstants.TestFileName)) { var process = new ImageCompressionProcesser(); return process.Process(context); } }
public void should_return_undifined_errror_if_compress_image_fail() { var process = new ImageCompressionProcesser(); int result = process.Process(null); Assert.AreEqual(result, ImageErrorMessage.ImageUndefinedError); }