コード例 #1
0
        /// <summary>
        /// Testuje, či je obsah správy HTTP odpovede určitého typu.
        /// </summary>
        /// <typeparam name="TContentType">Type of expected HTTP content.</typeparam>
        /// <returns>The same HTTP response message test builder.</returns>
        public IAndHttpHandlerResponseMessageTestBuilder ValidWithContentOfType <TContentType>()
            where TContentType : HttpContent
        {
            HttpResponseMessageValidator.WithContentOfType <TContentType>(
                this.httpResponseMessage.Content,
                this.ThrowNewHttpResponseMessageAssertionException);

            return(this);
        }