Exemplo n.º 1
0
 public Task MartinTest(TestContext ctx, CancellationToken cancellationToken,
                        HttpServerProvider provider,
                        HttpInstrumentationTestType type,
                        HttpInstrumentationTestRunner runner)
 {
     return(runner.Run(ctx, cancellationToken));
 }
Exemplo n.º 2
0
 public Task RunStress(TestContext ctx, CancellationToken cancellationToken,
                       HttpServerProvider provider,
                       [Repeat(50)] int repeat,
                       HttpInstrumentationTestType type,
                       HttpInstrumentationTestRunner runner)
 {
     ctx.LogDebug(1, $"RunStress: {repeat}");
     return(runner.Run(ctx, cancellationToken));
 }
Exemplo n.º 3
0
        public IEnumerable <HttpInstrumentationTestType> GetParameters(TestContext ctx, string filter)
        {
            if (filter != null)
            {
                throw new NotImplementedException();
            }

            var category = ctx.GetParameter <HttpServerTestCategory> ();

            if (Type != null)
            {
                yield return(Type.Value);

                yield break;
            }

            foreach (var type in HttpInstrumentationTestRunner.GetInstrumentationTypes(ctx, category))
            {
                yield return(type);
            }
        }