Beispiel #1
0
            public void Should_Return_True_If_Running_On_TFS()
            {
                // Given
                var fixture = new TFBuildFixture();

                fixture.IsRunningOnTFS();
                var vsts = fixture.CreateTFBuildService();

                // When
                var result = vsts.IsRunningOnTFS;

                // Then
                Assert.True(result);
            }
Beispiel #2
0
            public void Should_Return_True_If_Running_On_TFS()
            {
                // Given
                var fixture = new TFBuildFixture();

                fixture.IsRunningOnTFS();
                var tfBuild = fixture.CreateTFBuildService();

                // When
#pragma warning disable 618
                var result = tfBuild.IsRunningOnTFS;
#pragma warning restore 618

                // Then
                Assert.True(result);
            }