Exemplo n.º 1
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();
            }
Exemplo n.º 2
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.");
            }
Exemplo n.º 3
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.");
            }