public void TwoHundredRequest_successfully_returns_RWS_info()
        {
            TwoHundredRequest req = new TwoHundredRequest();

            Assert.IsTrue(req.UrlPath().Contains("twohundred"));

            IRWSResponse resp = _connection.SendRequest(req);

            Assert.IsNotNull(resp);
            Assert.IsInstanceOfType(resp, typeof(RWSTextResponse));
            Assert.AreEqual(HttpStatusCode.OK, _connection.GetLastResult().StatusCode);
        }
Esempio n. 2
0
        public void TwoHundredRequest_can_properly_construct_a_url()
        {
            var request = new TwoHundredRequest();

            Assert.AreEqual("twohundred", request.UrlPath());
        }