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