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

            _conn.UserCreds.AuthToken = "fail-401";
            Assert.Throws <UnauthorizedException>(() => account.GetPublicContainerList());
        }
        public void TestPublicContainerListFail()
        {
            var account = new CF_Account(_conn, _client);

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

            _conn.UserCreds.AuthToken = "fail--1";
            Assert.Throws <TimeoutException>(() => account.GetPublicContainerList());
        }
        public void TestFailGetPublicContainerList()
        {
            var account = new CF_Account(_conn, _client)
            {
                Retries = 1
            };

            _conn.UserCreds.AuthToken = "fail-get-account";
            Assert.AreSame(account.GetPublicContainerList().GetType(), typeof(List <Dictionary <string, string> >));
        }
 public void TestPublicContainerListFail()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail";
     Assert.Throws<CloudFilesException>(() => account.GetPublicContainerList());
 }
 public void TestGetPublicListFailUnauthorized()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail-401";
     Assert.Throws<UnauthorizedException>(() => account.GetPublicContainerList());
 }
 public void TestGetPublicListFailTimeout()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail--1";
     Assert.Throws<TimeoutException>(() => account.GetPublicContainerList());
 }
 public void TestFailGetPublicContainerList()
 {
     var account = new CF_Account(_conn, _client) {Retries = 1};
     _conn.UserCreds.AuthToken = "fail-get-account";
     Assert.AreSame(account.GetPublicContainerList().GetType(), typeof(List<Dictionary<string, string>>));
 }