Пример #1
0
            public void Should_Throw_If_Issue_Comments_Are_Null()
            {
                // Given
                var fixture = new PrcaFixture();

                // When
                var result = Record.Exception(() => fixture.FilterIssues(new List <ICodeAnalysisIssue>(), null));

                // Then
                result.IsArgumentNullException("issueComments");
            }
Пример #2
0
            public void Should_Throw_If_Issues_Are_Null()
            {
                // Given
                var fixture = new PrcaFixture();

                // When
                var result = Record.Exception(() => fixture.FilterIssues(null, new Dictionary <ICodeAnalysisIssue, IEnumerable <IPrcaDiscussionComment> >()));

                // Then
                result.IsArgumentNullException("issues");
            }
Пример #3
0
            public void Should_Throw_If_Pull_Request_System_Is_Null()
            {
                // Given
                var fixture = new PrcaFixture
                {
                    PullRequestSystem = null
                };

                // When
                var result = Record.Exception(() => fixture.FilterIssues(null, null));

                // Then
                result.IsArgumentNullException("pullRequestSystem");
            }
Пример #4
0
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                var fixture = new PrcaFixture
                {
                    Settings = null
                };

                // When
                var result = Record.Exception(() => fixture.FilterIssues(null, null));

                // Then
                result.IsArgumentNullException("settings");
            }
Пример #5
0
            public void Should_Throw_If_Log_Is_Null()
            {
                // Given
                var fixture = new PrcaFixture
                {
                    Log = null
                };

                // When
                var result = Record.Exception(() => fixture.FilterIssues(null, null));

                // Then
                result.IsArgumentNullException("log");
            }