Represents a mocked HTTP-request.
Наследование: System.Web.HttpRequestBase
Пример #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);
        }
Пример #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);
        }