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

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

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

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

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