public void Should_Throw_If_Builder_Is_Null()
            {
                // Given, When
                var result = Record.Exception(() => CakeTaskBuilderExtensions.Finally <ActionTask>(null, () => { }));

                // Then
                Assert.IsArgumentNullException(result, "builder");
            }
            public void Should_Throw_If_Action_Is_Null()
            {
                // Given
                var task    = new ActionTask("task");
                var builder = new CakeTaskBuilder <ActionTask>(task);

                // When
                var result = Record.Exception(() => CakeTaskBuilderExtensions.Finally(builder, null));

                // Then
                Assert.IsArgumentNullException(result, "finallyHandler");
            }