Exemple #1
0
        protected override object[] GetTestMethodArguments()
        {
            var testMethodArgumentType = (Type)TestMethodArguments.First();
            var testMethodArgument     = Activator.CreateInstance(testMethodArgumentType);

            return(new[] { testMethodArgument });
        }
Exemple #2
0
        public override Task <RunSummary> RunAsync(IMessageSink diagnosticMessageSink, IMessageBus messageBus, object[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
        {
            Type   testMethodArgumentType = (Type)TestMethodArguments.First();
            object testMethodArgument     = Activator.CreateInstance(testMethodArgumentType);

            return(new XunitTestCaseRunner(this, DisplayName, SkipReason, constructorArguments, new [] { testMethodArgument }, messageBus, aggregator, cancellationTokenSource).RunAsync());
        }