getCategories() private method

private getCategories ( string blogid, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct[]
blogid string
username string
password string
return CookComputing.XmlRpc.XmlRpcStruct[]
Example #1
0
        public void GetCategories_ValidUser()
        {
            var result = m_api.getCategories(m_blog1.ID.ToString(), m_userAuthor.Name, PASSWORD);

            Assert.That(result.Select(x => x["title"]), Is.EquivalentTo(new[]
            {
                "Category11",
                "Category12"
            }));
        }
Example #2
0
        public void GetCategories_ValidUser()
        {
            var result = m_api.getCategories(m_blog1.ID.ToString(), m_userAuthor.Name, PASSWORD);

            Assert.AreEqual(2, result.Length);

            var names = (from entry in result
                         select entry["title"] as string).ToArray();

            Assert.Contains("Category11", names);
            Assert.Contains("Category12", names);
        }