Skip to content

Commit

Permalink
Remove all obsolete members
Browse files Browse the repository at this point in the history
This commit removes all obsolete members such as properties
and methods in preparation for the 1.0 release of Cake.

Closes #2292
  • Loading branch information
patriksvensson authored and devlead committed Sep 7, 2020
1 parent babde40 commit f8ad006
Show file tree
Hide file tree
Showing 32 changed files with 52 additions and 2,279 deletions.
184 changes: 48 additions & 136 deletions src/Cake.Common.Tests/Unit/Build/BuildSystemTests.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ namespace Cake.Common.Tests.Unit.Build.TFBuild.Data
{
public sealed class TFBuildRepositoryInfoTests
{
public sealed class TheBranchProperty
{
[Fact]
public void Should_Return_Correct_Value()
{
// Given
var info = new TFBuildInfoFixture().CreateRepositoryInfo();

// When
#pragma warning disable 618
var result = info.Branch;
#pragma warning restore 618

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

public sealed class TheSourceBranchNameProperty
{
[Fact]
Expand Down
72 changes: 0 additions & 72 deletions src/Cake.Common.Tests/Unit/Build/TFBuild/TFBuildProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,78 +37,6 @@ public void Should_Throw_If_Writer_Is_Null()
}
}

public sealed class TheIsRunningOnTFSProperty
{
[Fact]
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);
}

[Fact]
public void Should_Return_False_If_Not_Running_On_TFS()
{
// Given
var fixture = new TFBuildFixture();
var tfBuild = fixture.CreateTFBuildService();

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

// Then
Assert.False(result);
}
}

public sealed class TheIsRunningOnVSTSProperty
{
[Fact]
public void Should_Return_True_If_Running_On_VSTS()
{
// Given
var fixture = new TFBuildFixture();
fixture.IsRunningOnVSTS();
var tfBuild = fixture.CreateTFBuildService();

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

// Then
Assert.True(result);
}

[Fact]
public void Should_Return_False_If_Not_Running_On_VSTS()
{
// Given
var fixture = new TFBuildFixture();
var tfBuild = fixture.CreateTFBuildService();

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

// Then
Assert.False(result);
}
}

public sealed class TheIsRunningOnAzurePipelinesProperty
{
[Fact]
Expand Down
Loading

0 comments on commit f8ad006

Please sign in to comment.