C# 클래스 IronFramework.TestCommon.HttpAssert

Unit test utility for testing HttpResponseMessage instances.
파일 보기 프로젝트 열기: megadotnet/ironframework

공개 메소드들

메소드 설명
CanRoundTrip ( Type type ) : bool
Contains ( HttpHeaders headers, string name ) : void

Asserts the given HttpHeaders contain the given values for the given name.

Equal ( HttpHeaders expectedHeaders, HttpHeaders actualHeaders ) : void

Asserts that the expected HttpHeaders instance is equal to the actual actualHeaders instance.

Equal ( HttpRequestMessage expected, HttpRequestMessage actual ) : void

Asserts that the expected HttpRequestMessage is equal to the actual HttpRequestMessage.

Equal ( HttpResponseMessage expected, HttpResponseMessage actual ) : void

Asserts that the expected HttpResponseMessage is equal to the actual HttpResponseMessage.

Equal ( HttpResponseMessage expected, HttpResponseMessage actual, string>.Action verifyContentStringCallback ) : void

Asserts that the expected HttpResponseMessage is equal to the actual HttpResponseMessage.

IsKnownUnserializable ( Type type, object obj ) : bool
IsKnownUnserializable ( Type type, object obj, bool>.Func isTypeUnserializableCallback ) : bool
IsKnownUnserializableType ( Type type, bool>.Func isTypeUnserializableCallback ) : bool

비공개 메소드들

메소드 설명
CleanContentString ( string content ) : string
HandleDateHeader ( string expectedDateHeaderValues, string actualDateHeaderValues ) : void

메소드 상세

CanRoundTrip() 공개 메소드

public CanRoundTrip ( Type type ) : bool
type System.Type
리턴 bool

Contains() 공개 메소드

Asserts the given HttpHeaders contain the given values for the given name.
public Contains ( HttpHeaders headers, string name ) : void
headers HttpHeaders The to examine. It cannot be null.
name string The name of the header. It cannot be empty.
리턴 void

Equal() 공개 메소드

Asserts that the expected HttpHeaders instance is equal to the actual actualHeaders instance.
public Equal ( HttpHeaders expectedHeaders, HttpHeaders actualHeaders ) : void
expectedHeaders HttpHeaders The expected instance. Should not be null.
actualHeaders HttpHeaders The actual instance. Should not be null.
리턴 void

Equal() 공개 메소드

Asserts that the expected HttpRequestMessage is equal to the actual HttpRequestMessage.
public Equal ( HttpRequestMessage expected, HttpRequestMessage actual ) : void
expected System.Net.Http.HttpRequestMessage The expected . Should not be null.
actual System.Net.Http.HttpRequestMessage The actual . Should not be null.
리턴 void

Equal() 공개 메소드

Asserts that the expected HttpResponseMessage is equal to the actual HttpResponseMessage.
public Equal ( HttpResponseMessage expected, HttpResponseMessage actual ) : void
expected System.Net.Http.HttpResponseMessage The expected . Should not be null.
actual System.Net.Http.HttpResponseMessage The actual . Should not be null.
리턴 void

Equal() 공개 메소드

Asserts that the expected HttpResponseMessage is equal to the actual HttpResponseMessage.
public Equal ( HttpResponseMessage expected, HttpResponseMessage actual, string>.Action verifyContentStringCallback ) : void
expected System.Net.Http.HttpResponseMessage The expected . Should not be null.
actual System.Net.Http.HttpResponseMessage The actual . Should not be null.
verifyContentStringCallback string>.Action
리턴 void

IsKnownUnserializable() 공개 메소드

public IsKnownUnserializable ( Type type, object obj ) : bool
type System.Type
obj object
리턴 bool

IsKnownUnserializable() 공개 메소드

public IsKnownUnserializable ( Type type, object obj, bool>.Func isTypeUnserializableCallback ) : bool
type System.Type
obj object
isTypeUnserializableCallback bool>.Func
리턴 bool

IsKnownUnserializableType() 공개 메소드

public IsKnownUnserializableType ( Type type, bool>.Func isTypeUnserializableCallback ) : bool
type System.Type
isTypeUnserializableCallback bool>.Func
리턴 bool