C# Class System.Net.Tests.HttpWebRequestTest

Datei anzeigen Open project: dotnet/corefx

Public Properties

Property Type Description
EchoServers object[][]
StatusCodeServers object[][]

Public Methods

Method Description
HttpWebRequestTest ( ITestOutputHelper output ) : System.IO

Private Methods

Method Description
Abort_BeginGetRequestStreamThenAbort_EndGetRequestStreamThrowsWebException ( Uri remoteServer ) : void
Abort_BeginGetResponseThenAbort_EndGetResponseThrowsWebException ( Uri remoteServer ) : void
Abort_BeginGetResponseThenAbort_ResponseCallbackCalledBeforeAbortReturns ( Uri remoteServer ) : void
Abort_BeginGetResponseUsingNoCallbackThenAbort_Success ( Uri remoteServer ) : void
Abort_CreateRequestThenAbort_Success ( Uri remoteServer ) : void
Accept_SetThenGetEmptyValue_ExpectNull ( Uri remoteServer ) : void
Accept_SetThenGetNullValue_ExpectNull ( Uri remoteServer ) : void
Accept_SetThenGetValidValue_ExpectSameValue ( Uri remoteServer ) : void
AllowReadStreamBuffering_SetFalseThenGet_ExpectFalse ( Uri remoteServer ) : void
AllowReadStreamBuffering_SetTrueThenGet_ExpectTrue ( Uri remoteServer ) : void
BeginGetRequestStream_CreatePostRequestThenAbort_ThrowsWebException ( Uri remoteServer ) : void
BeginGetRequestStream_CreatePostRequestThenCallTwice_ThrowsInvalidOperationException ( Uri remoteServer ) : void
BeginGetRequestStream_CreateRequestThenBeginGetResponsePrior_ThrowsInvalidOperationException ( Uri remoteServer ) : void
BeginGetRequestStream_UseCONNECTVerb_ThrowsProtocolViolationException ( Uri remoteServer ) : void
BeginGetRequestStream_UseGETVerb_ThrowsProtocolViolationException ( Uri remoteServer ) : void
BeginGetRequestStream_UseHEADVerb_ThrowsProtocolViolationException ( Uri remoteServer ) : void
BeginGetResponse_CreatePostRequestThenAbort_ThrowsWebException ( Uri remoteServer ) : void
BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException ( Uri remoteServer ) : void
ContentLength_Get_ExpectSameAsGetResponseStream ( Uri remoteServer ) : Task
ContentType_AddHeaderWithNoContent_SendRequest_HeaderGetsSent ( Uri remoteServer ) : Task
ContentType_SetThenGetEmptyValue_ExpectNull ( Uri remoteServer ) : void
ContentType_SetThenGet_ExpectSameValue ( Uri remoteServer ) : void
ContinueTimeout_SetNegativeOne_Success ( Uri remoteServer ) : void
ContinueTimeout_SetNegativeTwo_ThrowsArgumentOutOfRangeException ( Uri remoteServer ) : void
ContinueTimeout_SetThenGetZero_ExpectZero ( Uri remoteServer ) : void
Credentials_SetDefaultCredentialsThenGet_ValuesMatch ( Uri remoteServer ) : void
Credentials_SetExplicitCredentialsThenGet_ValuesMatch ( Uri remoteServer ) : void
Ctor_CreateHttpWithString_ExpectNotNull ( Uri remoteServer ) : void
Ctor_CreateHttpWithUri_ExpectNotNull ( Uri remoteServer ) : void
Ctor_VerifyDefaults_Success ( Uri remoteServer ) : void
GetRequestStreamAsync_SetPOSTThenGet_ExpectNotNull ( Uri remoteServer ) : Task
GetRequestStreamAsync_WriteAndDisposeRequestStreamThenOpenRequestStream_ThrowsArgumentException ( Uri remoteServer ) : Task
GetResponseAsync_GetResponseStream_ContainsHost ( Uri remoteServer ) : Task
GetResponseAsync_GetResponseStream_ExpectNotNull ( Uri remoteServer ) : Task
GetResponseAsync_PostRequestStream_ContainsData ( Uri remoteServer ) : Task
GetResponseAsync_ResourceNotFound_ThrowsWebException ( Uri remoteServer ) : Task
GetResponseAsync_ServerNameNotInDns_ThrowsWebException ( ) : void
GetResponseAsync_UseDefaultCredentials_ExpectSuccess ( Uri remoteServer ) : Task
HaveResponse_GetResponseAsync_ExpectTrue ( Uri remoteServer ) : Task
Headers_GetResponseHeaders_ContainsExpectedValue ( Uri remoteServer ) : Task
Method_SetThenGetToGET_ExpectSameValue ( Uri remoteServer ) : void
Method_SetThenGetToPOST_ExpectSameValue ( Uri remoteServer ) : void
Proxy_GetDefault_ExpectNotNull ( Uri remoteServer ) : void
RequestStreamCallback ( IAsyncResult asynchronousResult ) : void
RequestUri_CreateHttpThenGet_ExpectSameUri ( Uri remoteServer ) : void
ResponseCallback ( IAsyncResult asynchronousResult ) : void
ResponseUri_GetResponseAsync_ExpectSameUri ( Uri remoteServer ) : Task
SimpleScenario_UseGETVerb_Success ( Uri remoteServer ) : Task
SimpleScenario_UsePOSTVerb_Success ( Uri remoteServer ) : Task
SupportsCookieContainer_GetDefault_ExpectTrue ( Uri remoteServer ) : void
UseDefaultCredentials_SetFalse_CredentialsNull ( Uri remoteServer ) : void
UseDefaultCredentials_SetTrue_CredentialsEqualsDefaultCredentials ( Uri remoteServer ) : void

Method Details

HttpWebRequestTest() public method

public HttpWebRequestTest ( ITestOutputHelper output ) : System.IO
output ITestOutputHelper
return System.IO

Property Details

EchoServers public_oe static_oe property

public static object[][] EchoServers
return object[][]

StatusCodeServers public_oe static_oe property

public static object[][] StatusCodeServers
return object[][]