public void BuildRateLimitStatusURLTest()
        {
            AccountRequestProcessor <Account> target = new AccountRequestProcessor <Account>()
            {
                BaseUrl = "http://twitter.com/"
            };
            Dictionary <string, string> parameters =
                new Dictionary <string, string>
            {
                { "Type", ((int)AccountType.RateLimitStatus).ToString() }
            };
            string expected = "http://twitter.com/account/rate_limit_status.xml";
            string actual;

            actual = target.BuildURL(parameters);
            Assert.AreEqual(expected, actual);
        }
        public void BuildVerifyCredentialsStatusURLTest()
        {
            AccountRequestProcessor target = new AccountRequestProcessor()
            {
                BaseUrl = "http://twitter.com/"
            };
            Dictionary <string, string> parameters =
                new Dictionary <string, string>
            {
                { "Type", ((int)AccountType.VerifyCredentials).ToString() }
            };
            string expected = "http://twitter.com/account/verify_credentials.xml";
            string actual;

            actual = target.BuildURL(parameters);
            Assert.AreEqual(expected, actual);
        }
        public void NullParametersTest()
        {
            AccountRequestProcessor <Account> target = new AccountRequestProcessor <Account>()
            {
                BaseUrl = "http://twitter.com/"
            };
            Dictionary <string, string> parameters = null;
            string actual;

            try
            {
                actual = target.BuildURL(parameters);
                Assert.Fail("Expected ArgumentException.");
            }
            catch (ArgumentException ae)
            {
                Assert.AreEqual <string>("Type", ae.ParamName);
            }
        }
 public void NullParametersTest()
 {
     AccountRequestProcessor<Account> target = new AccountRequestProcessor<Account>() { BaseUrl = "http://twitter.com/" };
     Dictionary<string, string> parameters = null;
     string actual;
     try
     {
         actual = target.BuildURL(parameters);
         Assert.Fail("Expected ArgumentException.");
     }
     catch (ArgumentException ae)
     {
         Assert.AreEqual<string>("Type", ae.ParamName);
     }
 }
 public void BuildVerifyCredentialsStatusURLTest()
 {
     AccountRequestProcessor<Account> target = new AccountRequestProcessor<Account>() { BaseUrl = "http://twitter.com/" };
     Dictionary<string, string> parameters =
         new Dictionary<string, string>
         {
                 { "Type", ((int)AccountType.VerifyCredentials).ToString() }
         };
     string expected = "http://twitter.com/account/verify_credentials.xml";
     string actual;
     actual = target.BuildURL(parameters);
     Assert.AreEqual(expected, actual);
 }