/// <summary> /// Tests whether HTTP response message status code is the same as the provided HttpStatusCode. /// </summary> /// <param name="statusCode">Expected status code.</param> /// <returns>The same HTTP response message test builder.</returns> public IAndHttpResponseMessageTestBuilder WithStatusCode(HttpStatusCode statusCode) { HttpResponseMessageValidator.WithStatusCode(this.httpResponseMessage, statusCode, this.ThrowNewHttpResponseMessageAssertionException); return(this); }