public void TestUpdateHeadersFailUnauthorized()
        {
            var account = new CF_Account(_conn, _client);

            _conn.UserCreds.AuthToken = "fail-unauthorized";
            Assert.Throws <UnauthorizedException>(() => account.UpdateHeaders(new Dictionary <string, string>()));
        }
        public void TestUpdateHeadersListFail()
        {
            var account = new CF_Account(_conn, _client);

            _conn.UserCreds.AuthToken = "fail";
            Assert.Throws <CloudFilesException>(() => account.UpdateHeaders(new Dictionary <string, string>()));
        }
        public void TestUpdateHeadersFailTimeout()
        {
            var account = new CF_Account(_conn, _client);

            _conn.UserCreds.AuthToken = "fail-timeout";
            Assert.Throws <TimeoutException>(() => account.UpdateHeaders(new Dictionary <string, string>()));
        }
        public void TestUpdateHeaders()
        {
            var account = new CF_Account(_conn, _client);

            _conn.UserCreds.AuthToken = "post-object";
            account.UpdateHeaders(new Dictionary <string, string>());
        }
 public void TestUpdateMetadataFailUnauthorized()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail-unauthorized";
     Assert.Throws<UnauthorizedException>(() => account.UpdateHeaders(new Dictionary<string, string>()));
 }
 public void TestUpdateHeadersListFail()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail";
     Assert.Throws<CloudFilesException>(() => account.UpdateHeaders(new Dictionary<string, string>()));
 }
 public void TestUpdateHeadersFailTimeout()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail-timeout";
     Assert.Throws<TimeoutException>(() => account.UpdateHeaders(new Dictionary<string, string>()));
 }
 public void TestUpdateHeaders()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "post-object";
     account.UpdateHeaders(new Dictionary<string, string>());
 }