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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public override void Read(TextReader reader) { if (null == reader) { throw new ArgumentNullException("reader"); } StatusLine = reader.ReadLine(); base.Read(reader); }