public static void ExecutingAnInlineTask(ITaskBuilder builder, bool executed) { "Given a default task with an inline task" .f(() => builder = ScriptCs.Require <Bau>().Do(() => { var task = new BauCore.BauTask(); task.Actions.Add(() => executed = true); task.Execute(); })); "When I run the builder" .f(() => builder.Run()); "Then the inline task is executed" .f(() => executed.Should().BeTrue()); }
public static void ExecutingAnInlineTask(ITaskBuilder builder, bool executed) { "Given a default task with an inline task" .f(() => builder = ScriptCs.Require<Bau>().Do(() => { var task = new BauCore.BauTask(); task.Actions.Add(() => executed = true); task.Execute(); })); "When I run the builder" .f(() => builder.Run()); "Then the inline task is executed" .f(() => executed.Should().BeTrue()); }