protected override object[] GetTestMethodArguments() { var testMethodArgumentType = (Type)TestMethodArguments.First(); var testMethodArgument = Activator.CreateInstance(testMethodArgumentType); return(new[] { testMethodArgument }); }
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()); }