Пример #1
0
            public void Should_Set_RepositorySettings()
            {
                // Given

                // When
                var result = new FakeMultiFormatIssueProviderFixture("Build.log");

                // Then
                result.RepositorySettings.ShouldNotBeNull();
            }
Пример #2
0
            public void Should_Set_Log()
            {
                // Given

                // When
                var result = new FakeMultiFormatIssueProviderFixture("Build.log");

                // Then
                result.Log.ShouldNotBeNull();
            }
Пример #3
0
            public void Should_Set_LogFileContent_For_Empty_File()
            {
                // Given

                // When
                var result = new FakeMultiFormatIssueProviderFixture("Empty.log");

                // Then
                result.LogFileContent.ShouldNotBeNull();
                result.LogFileContent.ShouldBeEmpty();
            }
Пример #4
0
            public void Should_Return_Empty_List_For_Empty_File()
            {
                // Given
                var fixture =
                    new FakeMultiFormatIssueProviderFixture("Empty.log");

                // When
                var result = fixture.ReadIssues();

                // Then
                result.ShouldBeEmpty();
            }
Пример #5
0
            public void Should_Throw_If_RepositorySettings_Are_Null()
            {
                // Given
                var fixture = new FakeMultiFormatIssueProviderFixture("Build.log")
                {
                    RepositorySettings = null
                };

                // When
                var result = Record.Exception(() => fixture.ReadIssues());

                // Then
                result.IsInvalidOperationException("No repository settings set.");
            }
Пример #6
0
            public void Should_Throw_If_Log_Is_Null()
            {
                // Given
                var fixture = new FakeMultiFormatIssueProviderFixture("Build.log")
                {
                    Log = null
                };

                // When
                var result = Record.Exception(() => fixture.ReadIssues());

                // Then
                result.IsInvalidOperationException("No log instance set.");
            }