AcoustID.Tests.Web.XmlResponseParserTest.TestParseLookupResponseError C# (CSharp) Méthode

TestParseLookupResponseError() private méthode

private TestParseLookupResponseError ( ) : void
Résultat void
        public void TestParseLookupResponseError()
        {
            var xml = TestsHelper.LoadTextFile("lookup-error.xml");

            var parser = new XmlResponseParser();
            var response = parser.ParseLookupResponse(xml);

            Assert.AreEqual(response.StatusCode, HttpStatusCode.BadRequest);
            Assert.IsFalse(string.IsNullOrEmpty(response.ErrorMessage));
        }
#endif