Пример #1
0
        public Task Run(TestContext ctx, CancellationToken cancellationToken, [HttpServer] HttpServer server,
                        [ChunkContentType] ChunkContentType type, bool sendAsync)
        {
            var runner = new ChunkedTestRunner(server, type, sendAsync);

            return(runner.Run(ctx, cancellationToken));
        }
Пример #2
0
        public Task ServerErrorTests(TestContext ctx, CancellationToken cancellationToken,
                                     [HttpServer(ListenerFlags.ExpectException)] HttpServer server,
                                     [ChunkContentType(ServerError = true)] ChunkContentType type, bool sendAsync)
        {
            var runner = new ChunkedTestRunner(server, type, sendAsync);

            return(runner.Run(ctx, cancellationToken));
        }
Пример #3
0
        public Task ServerErrorTests(TestContext ctx, HttpServer server, bool sendAsync,
                                     [ChunkContentType(ServerError = true)] ChunkContentType type,
                                     CancellationToken cancellationToken)
        {
            var runner = new ChunkedTestRunner(server, type, sendAsync);

            return(runner.Run(ctx, cancellationToken));
        }