Esempio n. 1
0
            public void Should_Set_RepositorySettings()
            {
                // Given

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

                // Then
                result.RepositorySettings.ShouldNotBeNull();
            }
Esempio n. 2
0
            public void Should_Set_Log()
            {
                // Given

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

                // Then
                result.Log.ShouldNotBeNull();
            }
Esempio n. 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();
            }
Esempio n. 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();
            }
Esempio n. 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.");
            }
Esempio n. 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.");
            }