Class RestAssertions

Namespace
ProtoTest.Rest
Assembly
ProtoTest.Rest.dll

The status assertions reachable through Should and ShouldNot. Both sides run the same implementation; the negated side asks for the opposite and its failure message, trace name, and Checks section read with "not".

public sealed class RestAssertions
Inheritance
RestAssertions
Inherited Members
Extension Methods

Methods

HaveHttpStatus(HttpStatusCode)

Asserts the response status; the negated form asserts it is anything but expected.

public RestResponse HaveHttpStatus(HttpStatusCode expected)

Parameters

expected HttpStatusCode

Returns

RestResponse