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

                // 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.ReportError(builder, null));

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