public void TestGetBucketLocation() { if (init()) { GetBucketLocationResult bucketLocation = ks3Client.getBucketLocation(bucketName); Assert.IsNotNull(bucketLocation); } }
private static bool getBucketLocation() { try { Console.WriteLine("--- getBucketLocation: ---"); Console.WriteLine("Bucket Name: " + bucketName); GetBucketLocationResult bucketLocation = ks3Client.getBucketLocation(bucketName); Console.WriteLine("Success."); Console.WriteLine("----------------------\n"); } catch (System.Exception e) { Console.WriteLine("getBucketLocation Fail! " + e.ToString()); return(false); } return(true); }