public async Task TestClientDispose()
{
IAmazonS3 client;
using(client = TestBase.CreateClient<AmazonS3Client>())
{
var response = await client.ListBucketsAsync();
Assert.NotNull(response);
Assert.NotNull(response.ResponseMetadata);
Assert.NotNull(response.ResponseMetadata.RequestId);
Assert.False(string.IsNullOrEmpty(response.ResponseMetadata.RequestId));
}
//AssertExtensions.ExpectExceptionAsync<ObjectDisposedException>(client.ListBucketsAsync()).Wait();
AssertExtensions.ExpectException<ObjectDisposedException>(() => client.ListBucketsAsync().Wait());
}