@@ -18,8 +18,8 @@ public async Task HeadOnTagReturnsIt()
18
18
{
19
19
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
20
20
{
21
- new ( "commit_a" , "v1.0.0" ) ,
22
- new ( "commit_b" , "v1.0.0-alpha.1" ) ,
21
+ new ( "commit_a" ) { Tags = new [ ] { "v1.0.0" } } ,
22
+ new ( "commit_b" ) { Tags = new [ ] { "v1.0.0-alpha.1" } } ,
23
23
new ( "commit_c" ) ,
24
24
} ) ;
25
25
@@ -80,7 +80,7 @@ public async Task NoSemVerTagReturnsNoTag()
80
80
{
81
81
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
82
82
{
83
- new ( "commit_a" , "v1.0.0.0" ) ,
83
+ new ( "commit_a" ) { Tags = new [ ] { "v1.0.0.0" } } ,
84
84
new ( "commit_b" ) ,
85
85
new ( "commit_c" ) ,
86
86
} ) ;
@@ -97,9 +97,9 @@ public async Task MatchingPrefixNonVersionTagsIgnored()
97
97
{
98
98
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
99
99
{
100
- new ( "commit_a" , "vast-tag" ) ,
101
- new ( "commit_b" , "very-nice-tag" ) ,
102
- new ( "commit_c" , "v" ) ,
100
+ new ( "commit_a" ) { Tags = new [ ] { "vast-tag" } } ,
101
+ new ( "commit_b" ) { Tags = new [ ] { "very-nice-tag" } } ,
102
+ new ( "commit_c" ) { Tags = new [ ] { "v" } } ,
103
103
} ) ;
104
104
105
105
var ( height , tag ) = await HeightCalculator . FromRepository ( repo , "v" , true ) ;
@@ -113,7 +113,7 @@ public async Task MultipleTagsReturnsHighestTag()
113
113
{
114
114
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
115
115
{
116
- new ( "commit_a" , "v1.0.0-alpha.1" , "v1.0.0" , "v1.0.0-rc.1" ) ,
116
+ new ( "commit_a" ) { Tags = new [ ] { "v1.0.0-alpha.1" , "v1.0.0" , "v1.0.0-rc.1" } } ,
117
117
new ( "commit_b" ) ,
118
118
new ( "commit_c" ) ,
119
119
} ) ;
@@ -135,7 +135,7 @@ public async Task MultipleTagsReturnsHighestTagWhenAutoVersioning()
135
135
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
136
136
{
137
137
new ( "commit_a" ) ,
138
- new ( "commit_b" , "v1.0.0-alpha.1" , "v1.0.0-rc.2" , "v1.0.0-rc.10" ) ,
138
+ new ( "commit_b" ) { Tags = new [ ] { "v1.0.0-alpha.1" , "v1.0.0-rc.2" , "v1.0.0-rc.10" } } ,
139
139
new ( "commit_c" ) ,
140
140
} ) ;
141
141
@@ -158,7 +158,7 @@ public async Task QueryRemoteTagsDoesNotFetchTag()
158
158
{
159
159
new ( "commit_a" ) ,
160
160
new ( "commit_b" ) ,
161
- new ( "commit_c" , "v1.0.0-alpha.1" ) ,
161
+ new ( "commit_c" ) { Tags = new [ ] { "v1.0.0-alpha.1" } } ,
162
162
} ) ;
163
163
164
164
( _ , _ ) = await HeightCalculator . FromRepository ( repo , "v" , true ) ;
@@ -176,9 +176,9 @@ public async Task FindsCommitsWithPrefixesOnly(string prefix, int resultHeight,
176
176
{
177
177
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
178
178
{
179
- new ( "commit_a" , "abc/version/2.0.0" ) ,
180
- new ( "commit_b" , "version/3.0.0" ) ,
181
- new ( "commit_c" , "4.0.0" ) ,
179
+ new ( "commit_a" ) { Tags = new [ ] { "abc/version/2.0.0" } } ,
180
+ new ( "commit_b" ) { Tags = new [ ] { "version/3.0.0" } } ,
181
+ new ( "commit_c" ) { Tags = new [ ] { "4.0.0" } } ,
182
182
new ( "commit_d" ) ,
183
183
} ) ;
184
184
@@ -209,8 +209,8 @@ public async Task FilterCanIgnoreTags()
209
209
{
210
210
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
211
211
{
212
- new ( "commit_a" , "v1.0.0" ) ,
213
- new ( "commit_b" , "v1.0.0-alpha.1" ) ,
212
+ new ( "commit_a" ) { Tags = new [ ] { "v1.0.0" } } ,
213
+ new ( "commit_b" ) { Tags = new [ ] { "v1.0.0-alpha.1" } } ,
214
214
new ( "commit_c" ) ,
215
215
} ) ;
216
216
@@ -232,8 +232,8 @@ public async Task FilterDoesntIgnoreOtherTagsOnSameCommit()
232
232
{
233
233
var repo = new MockRepoInspector ( new MockRepoCommit [ ]
234
234
{
235
- new ( "commit_a" , "v1.0.0" , "v1.0.1" ) ,
236
- new ( "commit_b" , "v1.0.0-alpha.1" ) ,
235
+ new ( "commit_a" ) { Tags = new [ ] { "v1.0.0" , "v1.0.1" } } ,
236
+ new ( "commit_b" ) { Tags = new [ ] { "v1.0.0-alpha.1" } } ,
237
237
new ( "commit_c" ) ,
238
238
} ) ;
239
239
0 commit comments