diff options
-rw-r--r-- | tests/TinyPng.Tests/TinyPngTests.cs | 16 |
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);
|