예제 #1
0
        public void op_FromString_string_when307TemporaryRedirect()
        {
            var expected = new StatusLine("HTTP/1.1", 307, "Temporary Redirect");
            var actual   = StatusLine.FromString("HTTP/1.1 307 Temporary Redirect");

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void op_FromString_string_when100Continue()
        {
            var expected = new StatusLine("HTTP/1.1", 100, "Continue");
            var actual   = StatusLine.FromString("HTTP/1.1 100 Continue");

            Assert.Equal(expected, actual);
        }
예제 #3
0
        public void op_FromString_string_when202Accepted()
        {
            var expected = new StatusLine("HTTP/1.1", 202, "Accepted");
            var actual   = StatusLine.FromString("HTTP/1.1 202 Accepted");

            Assert.Equal(expected, actual);
        }
예제 #4
0
        public void op_FromString_string_when503ServiceUnavailable()
        {
            var expected = new StatusLine("HTTP/1.1", 503, "Service Unavailable");
            var actual   = StatusLine.FromString("HTTP/1.1 503 Service Unavailable");

            Assert.Equal(expected, actual);
        }
예제 #5
0
        public void op_FromString_string_when505HttpVersionNotSupported()
        {
            var expected = new StatusLine("HTTP/1.1", 505, "HTTP Version not supported");
            var actual   = StatusLine.FromString("HTTP/1.1 505 HTTP Version not supported");

            Assert.Equal(expected, actual);
        }
예제 #6
0
        public void op_FromString_string_when417ExpectationFailed()
        {
            var expected = new StatusLine("HTTP/1.1", 417, "Expectation Failed");
            var actual   = StatusLine.FromString("HTTP/1.1 417 Expectation Failed");

            Assert.Equal(expected, actual);
        }
예제 #7
0
        public void op_FromString_string_when501NotImplemented()
        {
            var expected = new StatusLine("HTTP/1.1", 501, "Not Implemented");
            var actual   = StatusLine.FromString("HTTP/1.1 501 Not Implemented");

            Assert.Equal(expected, actual);
        }
예제 #8
0
        public void op_FromString_string_when405MethodNotAllowed()
        {
            var expected = new StatusLine("HTTP/1.1", 405, "Method Not Allowed");
            var actual   = StatusLine.FromString("HTTP/1.1 405 Method Not Allowed");

            Assert.Equal(expected, actual);
        }
예제 #9
0
        public void op_FromString_string_when406NotAcceptable()
        {
            var expected = new StatusLine("HTTP/1.1", 406, "Not Acceptable");
            var actual   = StatusLine.FromString("HTTP/1.1 406 Not Acceptable");

            Assert.Equal(expected, actual);
        }
예제 #10
0
        public void op_FromString_string_when403Forbidden()
        {
            var expected = new StatusLine("HTTP/1.1", 403, "Forbidden");
            var actual   = StatusLine.FromString("HTTP/1.1 403 Forbidden");

            Assert.Equal(expected, actual);
        }
예제 #11
0
        public void op_FromString_string_when404NotFound()
        {
            var expected = new StatusLine("HTTP/1.1", 404, "Not Found");
            var actual   = StatusLine.FromString("HTTP/1.1 404 Not Found");

            Assert.Equal(expected, actual);
        }
예제 #12
0
        public void op_FromString_string_when402PaymentRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 402, "Payment Required");
            var actual   = StatusLine.FromString("HTTP/1.1 402 Payment Required");

            Assert.Equal(expected, actual);
        }
예제 #13
0
        public void op_FromString_string_when401Unauthorized()
        {
            var expected = new StatusLine("HTTP/1.1", 401, "Unauthorized");
            var actual   = StatusLine.FromString("HTTP/1.1 401 Unauthorized");

            Assert.Equal(expected, actual);
        }
예제 #14
0
        public void op_FromString_string_when400BadRequest()
        {
            var expected = new StatusLine("HTTP/1.1", 400, "Bad Request");
            var actual   = StatusLine.FromString("HTTP/1.1 400 Bad Request");

            Assert.Equal(expected, actual);
        }
예제 #15
0
        public void op_FromString_string_when101SwitchingProtocols()
        {
            var expected = new StatusLine("HTTP/1.1", 101, "Switching Protocols");
            var actual = StatusLine.FromString("HTTP/1.1 101 Switching Protocols");

            Assert.Equal(expected, actual);
        }
예제 #16
0
        public void op_FromString_string_when407ProxyAuthenticationRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 407, "Proxy Authentication Required");
            var actual   = StatusLine.FromString("HTTP/1.1 407 Proxy Authentication Required");

            Assert.Equal(expected, actual);
        }
예제 #17
0
        public void opImplicit_StatusLine_string()
        {
            var expected = new StatusLine("HTTP/1.1", 200, "OK");
            StatusLine actual = "HTTP/1.1 200 OK";

            Assert.Equal(expected, actual);
        }
예제 #18
0
        public void opImplicit_StatusLine_string()
        {
            var        expected = new StatusLine("HTTP/1.1", 200, "OK");
            StatusLine actual   = "HTTP/1.1 200 OK";

            Assert.Equal(expected, actual);
        }
예제 #19
0
        public void op_FromString_string_when500InternalServerError()
        {
            var expected = new StatusLine("HTTP/1.1", 500, "Internal Server Error");
            var actual   = StatusLine.FromString("HTTP/1.1 500 Internal Server Error");

            Assert.Equal(expected, actual);
        }
예제 #20
0
        public void op_FromString_string_when408RequestTimeout()
        {
            var expected = new StatusLine("HTTP/1.1", 408, "Request Time-out");
            var actual   = StatusLine.FromString("HTTP/1.1 408 Request Time-out");

            Assert.Equal(expected, actual);
        }
예제 #21
0
        public void op_FromString_string_when502BadGateway()
        {
            var expected = new StatusLine("HTTP/1.1", 502, "Bad Gateway");
            var actual   = StatusLine.FromString("HTTP/1.1 502 Bad Gateway");

            Assert.Equal(expected, actual);
        }
예제 #22
0
        public void op_FromString_string_when409Conflict()
        {
            var expected = new StatusLine("HTTP/1.1", 409, "Conflict");
            var actual   = StatusLine.FromString("HTTP/1.1 409 Conflict");

            Assert.Equal(expected, actual);
        }
예제 #23
0
        public void op_FromString_string_when504GatewayTimeout()
        {
            var expected = new StatusLine("HTTP/1.1", 504, "Gateway Time-out");
            var actual   = StatusLine.FromString("HTTP/1.1 504 Gateway Time-out");

            Assert.Equal(expected, actual);
        }
예제 #24
0
        public void op_FromString_string_when410Gone()
        {
            var expected = new StatusLine("HTTP/1.1", 410, "Gone");
            var actual   = StatusLine.FromString("HTTP/1.1 410 Gone");

            Assert.Equal(expected, actual);
        }
예제 #25
0
        public void op_ToString()
        {
            const string expected = "HTTP/1.1 404 Not Found";
            var          actual   = new StatusLine("HTTP/1.1", 404, "Not Found").ToString();

            Assert.Equal(expected, actual);
        }
예제 #26
0
        public void op_FromString_string_when411LengthRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 411, "Length Required");
            var actual   = StatusLine.FromString("HTTP/1.1 411 Length Required");

            Assert.Equal(expected, actual);
        }
예제 #27
0
        public void op_FromString_string_when101SwitchingProtocols()
        {
            var expected = new StatusLine("HTTP/1.1", 101, "Switching Protocols");
            var actual   = StatusLine.FromString("HTTP/1.1 101 Switching Protocols");

            Assert.Equal(expected, actual);
        }
예제 #28
0
        public void op_FromString_string_when414RequestUriTooLarge()
        {
            var expected = new StatusLine("HTTP/1.1", 414, "Request-URI Too Large");
            var actual   = StatusLine.FromString("HTTP/1.1 414 Request-URI Too Large");

            Assert.Equal(expected, actual);
        }
예제 #29
0
        public void op_FromString_string_when203NonAuthoritativeInformation()
        {
            var expected = new StatusLine("HTTP/1.1", 203, "Non-Authoritative Information");
            var actual   = StatusLine.FromString("HTTP/1.1 203 Non-Authoritative Information");

            Assert.Equal(expected, actual);
        }
예제 #30
0
        public void op_FromString_string_when415UnsupportedMediaType()
        {
            var expected = new StatusLine("HTTP/1.1", 415, "Unsupported Media Type");
            var actual   = StatusLine.FromString("HTTP/1.1 415 Unsupported Media Type");

            Assert.Equal(expected, actual);
        }
예제 #31
0
        public void op_FromString_string_when201Created()
        {
            var expected = new StatusLine("HTTP/1.1", 201, "Created");
            var actual = StatusLine.FromString("HTTP/1.1 201 Created");

            Assert.Equal(expected, actual);
        }
예제 #32
0
        public void op_FromString_string_when416RequestedRangeNotSatisfiable()
        {
            var expected = new StatusLine("HTTP/1.1", 416, "Requested range not satisfiable");
            var actual   = StatusLine.FromString("HTTP/1.1 416 Requested range not satisfiable");

            Assert.Equal(expected, actual);
        }
예제 #33
0
        public void op_FromString_string_when100Continue()
        {
            var expected = new StatusLine("HTTP/1.1", 100, "Continue");
            var actual = StatusLine.FromString("HTTP/1.1 100 Continue");

            Assert.Equal(expected, actual);
        }
예제 #34
0
        public void op_FromString_string_when305UseProxy()
        {
            var expected = new StatusLine("HTTP/1.1", 305, "Use Proxy");
            var actual   = StatusLine.FromString("HTTP/1.1 305 Use Proxy");

            Assert.Equal(expected, actual);
        }
예제 #35
0
        public override void Read(TextReader reader)
        {
            if (null == reader)
            {
                throw new ArgumentNullException("reader");
            }

            StatusLine = reader.ReadLine();
            base.Read(reader);
        }
예제 #36
0
        public void op_FromString_string_when417ExpectationFailed()
        {
            var expected = new StatusLine("HTTP/1.1", 417, "Expectation Failed");
            var actual = StatusLine.FromString("HTTP/1.1 417 Expectation Failed");

            Assert.Equal(expected, actual);
        }
예제 #37
0
        public void op_FromString_string_when500InternalServerError()
        {
            var expected = new StatusLine("HTTP/1.1", 500, "Internal Server Error");
            var actual = StatusLine.FromString("HTTP/1.1 500 Internal Server Error");

            Assert.Equal(expected, actual);
        }
예제 #38
0
        public void op_FromString_string_when307TemporaryRedirect()
        {
            var expected = new StatusLine("HTTP/1.1", 307, "Temporary Redirect");
            var actual = StatusLine.FromString("HTTP/1.1 307 Temporary Redirect");

            Assert.Equal(expected, actual);
        }
예제 #39
0
        public void op_FromString_string_when404NotFound()
        {
            var expected = new StatusLine("HTTP/1.1", 404, "Not Found");
            var actual = StatusLine.FromString("HTTP/1.1 404 Not Found");

            Assert.Equal(expected, actual);
        }
예제 #40
0
        public void op_FromString_string_when505HttpVersionNotSupported()
        {
            var expected = new StatusLine("HTTP/1.1", 505, "HTTP Version not supported");
            var actual = StatusLine.FromString("HTTP/1.1 505 HTTP Version not supported");

            Assert.Equal(expected, actual);
        }
예제 #41
0
        public void op_FromString_string_when401Unauthorized()
        {
            var expected = new StatusLine("HTTP/1.1", 401, "Unauthorized");
            var actual = StatusLine.FromString("HTTP/1.1 401 Unauthorized");

            Assert.Equal(expected, actual);
        }
예제 #42
0
        public void op_FromString_string_when409Conflict()
        {
            var expected = new StatusLine("HTTP/1.1", 409, "Conflict");
            var actual = StatusLine.FromString("HTTP/1.1 409 Conflict");

            Assert.Equal(expected, actual);
        }
예제 #43
0
        public void op_FromString_string_when503ServiceUnavailable()
        {
            var expected = new StatusLine("HTTP/1.1", 503, "Service Unavailable");
            var actual = StatusLine.FromString("HTTP/1.1 503 Service Unavailable");

            Assert.Equal(expected, actual);
        }
예제 #44
0
        public void op_FromString_string_when402PaymentRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 402, "Payment Required");
            var actual = StatusLine.FromString("HTTP/1.1 402 Payment Required");

            Assert.Equal(expected, actual);
        }
예제 #45
0
        public void op_FromString_string_when408RequestTimeout()
        {
            var expected = new StatusLine("HTTP/1.1", 408, "Request Time-out");
            var actual = StatusLine.FromString("HTTP/1.1 408 Request Time-out");

            Assert.Equal(expected, actual);
        }
예제 #46
0
        public void op_FromString_string_when407ProxyAuthenticationRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 407, "Proxy Authentication Required");
            var actual = StatusLine.FromString("HTTP/1.1 407 Proxy Authentication Required");

            Assert.Equal(expected, actual);
        }
예제 #47
0
        public void op_FromString_string_when406NotAcceptable()
        {
            var expected = new StatusLine("HTTP/1.1", 406, "Not Acceptable");
            var actual = StatusLine.FromString("HTTP/1.1 406 Not Acceptable");

            Assert.Equal(expected, actual);
        }
예제 #48
0
        public void op_FromString_string_when405MethodNotAllowed()
        {
            var expected = new StatusLine("HTTP/1.1", 405, "Method Not Allowed");
            var actual = StatusLine.FromString("HTTP/1.1 405 Method Not Allowed");

            Assert.Equal(expected, actual);
        }
예제 #49
0
        public void op_FromString_string_when501NotImplemented()
        {
            var expected = new StatusLine("HTTP/1.1", 501, "Not Implemented");
            var actual = StatusLine.FromString("HTTP/1.1 501 Not Implemented");

            Assert.Equal(expected, actual);
        }
예제 #50
0
        public void op_FromString_string_when410Gone()
        {
            var expected = new StatusLine("HTTP/1.1", 410, "Gone");
            var actual = StatusLine.FromString("HTTP/1.1 410 Gone");

            Assert.Equal(expected, actual);
        }
예제 #51
0
        public void op_FromString_string_when502BadGateway()
        {
            var expected = new StatusLine("HTTP/1.1", 502, "Bad Gateway");
            var actual = StatusLine.FromString("HTTP/1.1 502 Bad Gateway");

            Assert.Equal(expected, actual);
        }
예제 #52
0
        public void op_FromString_string_when411LengthRequired()
        {
            var expected = new StatusLine("HTTP/1.1", 411, "Length Required");
            var actual = StatusLine.FromString("HTTP/1.1 411 Length Required");

            Assert.Equal(expected, actual);
        }
예제 #53
0
        public void op_FromString_string_when504GatewayTimeout()
        {
            var expected = new StatusLine("HTTP/1.1", 504, "Gateway Time-out");
            var actual = StatusLine.FromString("HTTP/1.1 504 Gateway Time-out");

            Assert.Equal(expected, actual);
        }
예제 #54
0
        public void op_FromString_string_when414RequestUriTooLarge()
        {
            var expected = new StatusLine("HTTP/1.1", 414, "Request-URI Too Large");
            var actual = StatusLine.FromString("HTTP/1.1 414 Request-URI Too Large");

            Assert.Equal(expected, actual);
        }
예제 #55
0
        public void op_ToString()
        {
            const string expected = "HTTP/1.1 404 Not Found";
            var actual = new StatusLine("HTTP/1.1", 404, "Not Found").ToString();

            Assert.Equal(expected, actual);
        }
예제 #56
0
        public void op_FromString_string_when415UnsupportedMediaType()
        {
            var expected = new StatusLine("HTTP/1.1", 415, "Unsupported Media Type");
            var actual = StatusLine.FromString("HTTP/1.1 415 Unsupported Media Type");

            Assert.Equal(expected, actual);
        }
예제 #57
0
        public void op_FromString_string_when400BadRequest()
        {
            var expected = new StatusLine("HTTP/1.1", 400, "Bad Request");
            var actual = StatusLine.FromString("HTTP/1.1 400 Bad Request");

            Assert.Equal(expected, actual);
        }
예제 #58
0
        public void op_FromString_string_when416RequestedRangeNotSatisfiable()
        {
            var expected = new StatusLine("HTTP/1.1", 416, "Requested range not satisfiable");
            var actual = StatusLine.FromString("HTTP/1.1 416 Requested range not satisfiable");

            Assert.Equal(expected, actual);
        }
예제 #59
0
        public void op_FromString_string_when203NonAuthoritativeInformation()
        {
            var expected = new StatusLine("HTTP/1.1", 203, "Non-Authoritative Information");
            var actual = StatusLine.FromString("HTTP/1.1 203 Non-Authoritative Information");

            Assert.Equal(expected, actual);
        }
예제 #60
0
        public void op_FromString_string_when403Forbidden()
        {
            var expected = new StatusLine("HTTP/1.1", 403, "Forbidden");
            var actual = StatusLine.FromString("HTTP/1.1 403 Forbidden");

            Assert.Equal(expected, actual);
        }