Ejemplo n.º 1
0
        public void Json_Request_Test()
        {
            //Assign
            IRequest       baseRequest = new HttpRequest("http://test.com/", "command");
            IRequest       target;
            HttpWebRequest actual;

            //Act
            target = new JsonRequest(baseRequest);
            actual = target.Build();

            //Assert
            Assert.AreEqual("application/json", actual.ContentType);
        }