Class GraphQLAssertions

Namespace
ProtoTest.GraphQL
Assembly
ProtoTest.GraphQL.dll

The HTTP 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 GraphQLAssertions
Inheritance
GraphQLAssertions
Inherited Members
Extension Methods

Methods

HaveHttpStatus(HttpStatusCode)

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

public GraphQLResponse HaveHttpStatus(HttpStatusCode expected)

Parameters

expected HttpStatusCode

Returns

GraphQLResponse