Amazon.DNXCore.IntegrationTests.General.TestClientDispose C# (CSharp) Method

TestClientDispose() private method

private TestClientDispose ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        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());
        }