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

            _conn.UserCreds.AuthToken = "get-account";
            Assert.AreSame(account.GetContainerList().GetType(), typeof(List <Dictionary <string, string> >));
        }
        public void TestGetContainerListFailTimeout()
        {
            var account = new CF_Account(_conn, _client);

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

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

            _conn.UserCreds.AuthToken = "fail";
            Assert.Throws <CloudFilesException>(() => account.GetContainerList());
        }
 public void TestGetPublicContainerList()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "get-account";
     Assert.AreSame(account.GetContainerList().GetType(), typeof(List<Dictionary<string, string>>));
 }
 public void TestGetContainerListFailUnauthorized()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail-unauthorized";
     Assert.Throws<UnauthorizedException>(() => account.GetContainerList());
 }
 public void TestGetContainerListFailTimeout()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail-timeout";
     Assert.Throws<TimeoutException>(() => account.GetContainerList());
 }
 public void TestGetContainerListFail()
 {
     var account = new CF_Account(_conn, _client);
     _conn.UserCreds.AuthToken = "fail";
     Assert.Throws<CloudFilesException>(() => account.GetContainerList());
 }