public void TestClientDispose()
{
IAmazonS3 client;
using(client = new AmazonS3Client())
{
var response = client.ListBuckets();
Assert.IsNotNull(response);
Assert.IsNotNull(response.ResponseMetadata);
Assert.IsNotNull(response.ResponseMetadata.RequestId);
Assert.IsFalse(string.IsNullOrEmpty(response.ResponseMetadata.RequestId));
}
AssertExtensions.ExpectException(() => client.ListBuckets(), typeof(ObjectDisposedException));
}