public void Logout() { string expected = File.ReadAllText(Path.Combine(_requestsTestDataPath, "Logout.xml")); var request = new Logout { SessionId = "sid" }; var xml = request.ToXml().InnerXmlFormatted(); Assert.AreEqual(expected, xml); XmlDocument doc = new XmlDocument(); doc.LoadXml(File.ReadAllText(Path.Combine(_responsesTestDataPath, "Logout.xml"))); var response = request.FromHttpRequestResult(new HttpRequestResult { Response = doc.InnerXml }); Assert.AreEqual("result", response.Type); }