Represents a mocked HTTP-response.
Inheritance: System.Web.HttpResponseBase
Esempio n. 1
0
        public void SetContentType_HttpResponseTestStruct_TextHtml()
        {
            var response = new HttpResponseMock();

            response.SetContentType(TestStruct);

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

            Assert.AreEqual(exp, act);
        }
Esempio n. 2
0
        public void GetContentType_HttpResponse_TextHtml()
        {
            var response = new HttpResponseMock() { ContentType = "text/html" };

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

            Assert.AreEqual(exp, act);
        }