public async Task BatchTest() { Mac mac = new Mac(AccessKey, SecretKey); BucketManager target = new BucketManager(mac); string s1 = target.StatOp(Bucket1, FileKey1); string s2 = target.ChgmOp(Bucket2, FileKey2, "MimeType"); string[] ops = new string[] { s1, s2, "OP-UNDEF" }; BatchResult result = await target.BatchAsync(ops); bool cond = (result.Code == (int)HttpCode.OK || result.Code == (int)HttpCode.BAD_REQUEST || result.Code == (int)HttpCode.PARTLY_OK); Assert.IsTrue(cond); }