private getCategories ( string blogid, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct[] | ||
blogid | string | |
username | string | |
password | string | |
Результат | CookComputing.XmlRpc.XmlRpcStruct[] |
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" })); }
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); }