Skip to content

Commit

Permalink
Update NextVersionCalculatorTests.cs
Browse files Browse the repository at this point in the history
Test merging int master with next-version
  • Loading branch information
FISHMANPET committed Jul 13, 2020
1 parent 6cb755b commit 8f0571e
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,36 @@ public void PreReleaseTagCanUseBranchNameMainline()
fixture.AssertFullSemver("1.0.0-foo.2", config);
}

[Test]
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>()
}
}
}
};

using var fixture = new EmptyRepositoryFixture();
fixture.MakeACommit();
fixture.BranchTo("foo");
fixture.MakeACommit();
fixture.Checkout("master");
fixture.Merge("foo");

fixture.AssertFullSemver("1.0.0", config);
}

[Test]
public void PreReleaseTagCanUseBranchNameVariable()
{
Expand Down

0 comments on commit 8f0571e

Please sign in to comment.