public StateTestsRunner(IBlockchainTestsSource testsSource, WhenTrace whenTrace, bool traceMemory, bool traceStack) { _testsSource = testsSource ?? throw new ArgumentNullException(nameof(testsSource)); _whenTrace = whenTrace; _traceMemory = traceMemory; _traceStack = traceStack; Setup(null); }
private static void Run(Options options) { WhenTrace whenTrace = WhenTrace.WhenFailing; if (options.TraceNever) { whenTrace = WhenTrace.Never; } if (options.TraceAlways) { whenTrace = WhenTrace.Always; } if (!string.IsNullOrWhiteSpace(options.Input)) { RunSingleTest(options.Input, source => new StateTestsRunner(source, whenTrace, !options.ExcludeMemory, !options.ExcludeStack)); } if (options.Wait) { Console.ReadLine(); } }