Skip to content

Commit f6382f4

Browse files
committed
Remove unneeded test data
1 parent 7d1a796 commit f6382f4

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

src/GitVersionCore.Tests/VersionCalculation/NextVersionCalculatorTests.cs

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -118,33 +118,20 @@ public void PreReleaseTagCanUseBranchName()
118118
}
119119

120120
[Test]
121-
public void PreReleaseTagCanUseBranchNameMainline()
121+
public void PreReleaseVersionMainline()
122122
{
123123
var config = new Config
124124
{
125125
VersioningMode = VersioningMode.Mainline,
126-
NextVersion = "1.0.0",
127-
Branches = new Dictionary<string, BranchConfig>
128-
{
129-
{
130-
"custom", new BranchConfig
131-
{
132-
Regex = "custom/",
133-
Tag = "useBranchName",
134-
SourceBranches = new HashSet<string>()
135-
}
136-
}
137-
}
126+
NextVersion = "1.0.0"
138127
};
139128

140129
using var fixture = new EmptyRepositoryFixture();
141130
fixture.MakeACommit();
142-
fixture.BranchTo("develop");
143-
fixture.MakeACommit();
144-
fixture.BranchTo("custom/foo");
131+
fixture.BranchTo("foo");
145132
fixture.MakeACommit();
146133

147-
fixture.AssertFullSemver("1.0.0-foo.2", config);
134+
fixture.AssertFullSemver("1.0.0-foo.1", config);
148135
}
149136

150137
[Test]
@@ -153,18 +140,7 @@ public void MergeIntoMainline()
153140
var config = new Config
154141
{
155142
VersioningMode = VersioningMode.Mainline,
156-
NextVersion = "1.0.0",
157-
Branches = new Dictionary<string, BranchConfig>
158-
{
159-
{
160-
"custom", new BranchConfig
161-
{
162-
Regex = "custom/",
163-
Tag = "useBranchName",
164-
SourceBranches = new HashSet<string>()
165-
}
166-
}
167-
}
143+
NextVersion = "1.0.0"
168144
};
169145

170146
using var fixture = new EmptyRepositoryFixture();

0 commit comments

Comments
 (0)