Example #1
0
            public void Should_Be_In_Correct_Format()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                travisCI.WriteEndFold("cake");

                // Then
                Assert.Contains("travis_fold:end:cake\r", fixture.Log.AggregateLogMessages());
            }
Example #2
0
            public void Should_Be_In_Correct_Format()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                travisCI.WriteStartFold("cake");

                // Then
                Assert.Contains("travis_fold:start:cake\r", fixture.Log.AggregateLogMessages(), StringComparison.Ordinal);
            }
Example #3
0
            public void Should_Be_In_Correct_Format()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                travisCI.WriteEndFold("cake");

                // Then
                Assert.Contains("travis_fold:end:cake\r", fixture.Writer.GetOutput(), StringComparison.Ordinal);
            }
Example #4
0
            public void Should_Write_End_Fold()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                using (var folded = travisCI.Fold("cake"))
                {
                }

                // Then
                Assert.Contains("travis_fold:end:cake\r", fixture.Log.AggregateLogMessages());
            }
Example #5
0
            public void Should_Write_Start_Fold()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                using (var folded = travisCI.Fold("cake"))
                {
                }

                // Then
                Assert.Contains("travis_fold:start:cake\r", fixture.Log.AggregateLogMessages(), StringComparison.Ordinal);
            }
Example #6
0
            public void Should_Write_End_Fold()
            {
                // Given
                var fixture  = new TravisCIFixture();
                var travisCI = fixture.CreateTravisCIProvider();

                // When
                using (var folded = travisCI.Fold("cake"))
                {
                }

                // Then
                Assert.Contains("travis_fold:end:cake\r", fixture.Writer.GetOutput(), StringComparison.Ordinal);
            }