public FrostingDryRunner(DryRunScriptHost <IFrostingContext> host, ICakeEngine engine, IFrostingContext context, ICakeLog log, IEnumerable <IFrostingTask> tasks, IFrostingSetup setup = null, IFrostingTeardown teardown = null, IFrostingTaskSetup taskSetup = null, IFrostingTaskTeardown taskTeardown = null) : base(host, engine, context, log, tasks, setup, teardown, taskSetup, taskTeardown) { }
public void Should_Invoke_The_Engine_With_Correct_Execution_Strategy() { // Given var engine = Substitute.For <ICakeEngine>(); var context = Substitute.For <ICakeContext>(); var log = Substitute.For <ICakeLog>(); var host = new DryRunScriptHost(engine, context, log); // When host.RunTarget("TheTarget"); // Then engine.Received(1).RunTarget(context, Arg.Any <DryRunExecutionStrategy>(), "TheTarget"); }