public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateEnvironmentInfo();

                // When
                var result = info.JobName;

                // Then
                Assert.Equal("linux-firefox", result);
            }
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateEnvironmentInfo();

                // When
                var result = info.User;

                // Then
                Assert.Equal("changes", result);
            }
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateEnvironmentInfo();

                // When
                var result = info.EnvironmentName;

                // Then
                Assert.Equal("Development", result);
            }
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateEnvironmentInfo();

                // When
                var result = info.GoCDUrl;

                // Then
                Assert.Equal("https://127.0.0.1:8154/go", result);
            }
示例#5
0
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateStageInfo();

                // When
                var result = info.Name;

                // Then
                Assert.Equal("dev", result);
            }
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreatePipelineInfo();

                // When
                var result = info.Label;

                // Then
                Assert.Equal("1.1.2345", result);
            }
            public void Should_Return_Correct_Value()
            {
                // Given
                var info = new GoCDInfoFixture().CreateRepositoryInfo();

                // When
                var result = info.ToRevision;

                // Then
                Assert.Equal("124", result);
            }