Skip to content

Commit

Permalink
Remove unneeded test data
Browse files Browse the repository at this point in the history
  • Loading branch information
FISHMANPET committed Jul 13, 2020
1 parent 7d1a796 commit f6382f4
Showing 1 changed file with 5 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,33 +118,20 @@ public void PreReleaseTagCanUseBranchName()
}

[Test]
public void PreReleaseTagCanUseBranchNameMainline()
public void PreReleaseVersionMainline()
{
var config = new Config
{
VersioningMode = VersioningMode.Mainline,
NextVersion = "1.0.0",
Branches = new Dictionary<string, BranchConfig>
{
{
"custom", new BranchConfig
{
Regex = "custom/",
Tag = "useBranchName",
SourceBranches = new HashSet<string>()
}
}
}
NextVersion = "1.0.0"
};

using var fixture = new EmptyRepositoryFixture();
fixture.MakeACommit();
fixture.BranchTo("develop");
fixture.MakeACommit();
fixture.BranchTo("custom/foo");
fixture.BranchTo("foo");
fixture.MakeACommit();

fixture.AssertFullSemver("1.0.0-foo.2", config);
fixture.AssertFullSemver("1.0.0-foo.1", config);
}

[Test]
Expand All @@ -153,18 +140,7 @@ public void MergeIntoMainline()
var config = new Config
{
VersioningMode = VersioningMode.Mainline,
NextVersion = "1.0.0",
Branches = new Dictionary<string, BranchConfig>
{
{
"custom", new BranchConfig
{
Regex = "custom/",
Tag = "useBranchName",
SourceBranches = new HashSet<string>()
}
}
}
NextVersion = "1.0.0"
};

using var fixture = new EmptyRepositoryFixture();
Expand Down

0 comments on commit f6382f4

Please sign in to comment.