public void Should_Set_The_Finally_Handler() { // Given var task = new ActionTask("task"); var builder = new CakeTaskBuilder <ActionTask>(task); // When builder.Finally(() => { }); // Then Assert.NotNull(builder.Task.FinallyHandler); }