Represents a mocked HTTP-request.
Inheritance: System.Web.HttpRequestBase
Ejemplo n.º 1
0
        public void SetContentType_HttpRequestTestStruct_TextHtml()
        {
            var request = new HttpRequestMock();

            request.SetContentType(TestStruct);

            var act = request.ContentType;
            var exp = TestStruct.ToString();

            Assert.AreEqual(exp, act);
        }
Ejemplo n.º 2
0
        public void GetContentType_HttpRequest_TextHtml()
        {
            var request = new HttpRequestMock() { ContentType = "text/html" };

            var act = request.GetContentType();
            var exp = TextHtml;

            Assert.AreEqual(exp, act);
        }