Пример #1
0
        public void op_ReasonPhrase_HttpStatusCode202()
        {
            const string expected = "Accepted";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)202);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void op_ReasonPhrase_HttpStatusCode502()
        {
            const string expected = "Bad Gateway";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)502);

            Assert.Equal(expected, actual);
        }
Пример #3
0
        public void op_ReasonPhrase_HttpStatusCode504()
        {
            const string expected = "Gateway Time-out";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)504);

            Assert.Equal(expected, actual);
        }
Пример #4
0
        public void op_ReasonPhrase_HttpStatusCode416()
        {
            const string expected = "Requested range not satisfiable";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)416);

            Assert.Equal(expected, actual);
        }
Пример #5
0
        public void op_ReasonPhrase_HttpStatusCode500()
        {
            const string expected = "Internal Server Error";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)500);

            Assert.Equal(expected, actual);
        }
Пример #6
0
        public void op_ReasonPhrase_HttpStatusCode410()
        {
            const string expected = "Gone";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)410);

            Assert.Equal(expected, actual);
        }
Пример #7
0
        public void op_ReasonPhrase_HttpStatusCode414()
        {
            const string expected = "Request-URI Too Large";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)414);

            Assert.Equal(expected, actual);
        }
Пример #8
0
        public void op_ReasonPhrase_HttpStatusCode305()
        {
            const string expected = "Use Proxy";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)305);

            Assert.Equal(expected, actual);
        }
Пример #9
0
        public void op_ReasonPhrase_HttpStatusCode307()
        {
            const string expected = "Temporary Redirect";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)307);

            Assert.Equal(expected, actual);
        }
Пример #10
0
        public void op_ReasonPhrase_HttpStatusCode301()
        {
            const string expected = "Moved Permanently";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)301);

            Assert.Equal(expected, actual);
        }
Пример #11
0
        public void op_ReasonPhrase_HttpStatusCode303()
        {
            const string expected = "See Other";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)303);

            Assert.Equal(expected, actual);
        }
Пример #12
0
        public void op_ReasonPhrase_HttpStatusCode300()
        {
            const string expected = "Multiple Choices";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)300);

            Assert.Equal(expected, actual);
        }
Пример #13
0
        public void op_ReasonPhrase_HttpStatusCode206()
        {
            const string expected = "Partial Content";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)206);

            Assert.Equal(expected, actual);
        }
Пример #14
0
        public void op_ReasonPhrase_HttpStatusCode203()
        {
            const string expected = "Non-Authoritative Information";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)203);

            Assert.Equal(expected, actual);
        }
Пример #15
0
        public void op_ReasonPhrase_HttpStatusCode408()
        {
            const string expected = "Request Time-out";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)408);

            Assert.Equal(expected, actual);
        }
Пример #16
0
        public void op_ReasonPhrase_HttpStatusCode401()
        {
            const string expected = "Unauthorized";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)401);

            Assert.Equal(expected, actual);
        }
Пример #17
0
        public void op_ReasonPhrase_HttpStatusCode409()
        {
            const string expected = "Conflict";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)409);

            Assert.Equal(expected, actual);
        }
Пример #18
0
        public void op_ReasonPhrase_HttpStatusCode402()
        {
            const string expected = "Payment Required";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)402);

            Assert.Equal(expected, actual);
        }
Пример #19
0
        public void op_ReasonPhrase_HttpStatusCode411()
        {
            const string expected = "Length Required";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)411);

            Assert.Equal(expected, actual);
        }
Пример #20
0
        public void op_ReasonPhrase_HttpStatusCode403()
        {
            const string expected = "Forbidden";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)403);

            Assert.Equal(expected, actual);
        }
Пример #21
0
        public void op_ReasonPhrase_HttpStatusCode415()
        {
            const string expected = "Unsupported Media Type";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)415);

            Assert.Equal(expected, actual);
        }
Пример #22
0
        public void op_ReasonPhrase_HttpStatusCode404()
        {
            const string expected = "Not Found";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)404);

            Assert.Equal(expected, actual);
        }
Пример #23
0
        public void op_ReasonPhrase_HttpStatusCode417()
        {
            const string expected = "Expectation Failed";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)417);

            Assert.Equal(expected, actual);
        }
Пример #24
0
        public void op_ReasonPhrase_HttpStatusCode405()
        {
            const string expected = "Method Not Allowed";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)405);

            Assert.Equal(expected, actual);
        }
Пример #25
0
        public void op_ReasonPhrase_HttpStatusCode501()
        {
            const string expected = "Not Implemented";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)501);

            Assert.Equal(expected, actual);
        }
Пример #26
0
        public void op_ReasonPhrase_HttpStatusCode406()
        {
            const string expected = "Not Acceptable";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)406);

            Assert.Equal(expected, actual);
        }
Пример #27
0
        public void op_ReasonPhrase_HttpStatusCode503()
        {
            const string expected = "Service Unavailable";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)503);

            Assert.Equal(expected, actual);
        }
Пример #28
0
        public void op_ReasonPhrase_HttpStatusCode407()
        {
            const string expected = "Proxy Authentication Required";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)407);

            Assert.Equal(expected, actual);
        }
Пример #29
0
        public void op_ReasonPhrase_HttpStatusCode505()
        {
            const string expected = "HTTP Version not supported";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)505);

            Assert.Equal(expected, actual);
        }
Пример #30
0
        public void op_ReasonPhrase_HttpStatusCode101()
        {
            const string expected = "Switching Protocols";
            var          actual   = HttpStatusLine.ReasonPhase((HttpStatusCode)101);

            Assert.Equal(expected, actual);
        }