コード例 #1
0
        /// <summary>
        /// Testuje, či obsah reťazca správ HTTP odpovedá daným tvrdeniam.
        /// </summary>
        /// <param name="assertions">Action containing all assertions on the string content.</param>
        /// <returns>The same HTTP response message test builder.</returns>
        public IAndHttpHandlerResponseMessageTestBuilder ValidWithStringContent(Action <JObject> assertions)
        {
            HttpResponseMessageValidator.ContainingResponse(
                this.httpResponseMessage.Content,
                this.ThrowNewHttpResponseMessageAssertionException);
            assertions(JObject.Parse(this.GetJsonContent()));

            return(this);
        }