summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Tolkien <chad@sodadigital.com.au>2016-09-09 12:07:56 +1000
committerChad Tolkien <chad@sodadigital.com.au>2016-09-09 12:07:56 +1000
commit01a75bd39b4eadfd51795bb7fec6ddb5ccbf32f0 (patch)
tree393b69711df2f3443d204a358526754c6d69b6af
parent83ff2ffe4899b44d6586349d3c9928f14920e557 (diff)
downloadTinyPNG-01a75bd39b4eadfd51795bb7fec6ddb5ccbf32f0.zip
TinyPNG-01a75bd39b4eadfd51795bb7fec6ddb5ccbf32f0.tar.gz
TinyPNG-01a75bd39b4eadfd51795bb7fec6ddb5ccbf32f0.tar.bz2
skip tests
-rw-r--r--tests/TinyPng.Tests/TinyPngTests.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/TinyPng.Tests/TinyPngTests.cs b/tests/TinyPng.Tests/TinyPngTests.cs
index d1d75db..464fef5 100644
--- a/tests/TinyPng.Tests/TinyPngTests.cs
+++ b/tests/TinyPng.Tests/TinyPngTests.cs
@@ -30,20 +30,20 @@ namespace TinyPng.Tests
var pngx = new TinyPngClient(apiKey);
var result = await pngx.Compress(Cat);
-
+
var resized = await pngx.Resize(result, new ScaleHeightResizeOperation(100));
-
+
Assert.Equal(7111, (await resized.GetImageByteData()).Length);
}
-
- [Fact(Skip ="Integration")]
+
+ [Fact(Skip = "Integration")]
public async Task CompressAndStoreToS3ShouldThrowIfS3HasNotBeenConfigured()
{
var pngx = new TinyPngClient(apiKey);
-
+
var result = await pngx.Compress(Cat);
await Assert.ThrowsAsync<InvalidOperationException>(async () => await pngx.SaveCompressedImageToAmazonS3(result, "bucket/path.jpg"));
@@ -53,15 +53,15 @@ namespace TinyPng.Tests
private const string ApiKey = "lolwat";
private const string ApiAccessKey = "lolwat";
- [Fact]
+ [Fact(Skip = "Integration")]
public async Task CompressAndStoreToS3()
{
var pngx = new TinyPngClient(apiKey);
var result = await pngx.Compress(Cat);
- var sendToAmazon = (await pngx.SaveCompressedImageToAmazonS3(result,
- new AmazonS3Configuration(ApiKey, ApiAccessKey, "tinypng-test-bucket", "ap-southeast-2"),
+ var sendToAmazon = (await pngx.SaveCompressedImageToAmazonS3(result,
+ new AmazonS3Configuration(ApiKey, ApiAccessKey, "tinypng-test-bucket", "ap-southeast-2"),
"path.jpg")).ToString();
Assert.Equal("https://s3-ap-southeast-2.amazonaws.com/tinypng-test-bucket/path.jpg", sendToAmazon);