@@ -26,7 +26,7 @@ public void DoNotBlowUpWhenMainAndDevelopPointAtSameCommit()
2626 Commands . Fetch ( fixture . LocalRepositoryFixture . Repository , fixture . LocalRepositoryFixture . Repository . Network . Remotes . First ( ) . Name , [ ] , new ( ) , null ) ;
2727 Commands . Checkout ( fixture . LocalRepositoryFixture . Repository , fixture . Repository . Head . Tip ) ;
2828 fixture . LocalRepositoryFixture . Repository . Branches . Remove ( MainBranch ) ;
29- fixture . InitializeRepo ( ) ;
29+ fixture . InitializeRepository ( ) ;
3030 fixture . AssertFullSemver ( "1.0.1-1" ) ;
3131 }
3232
@@ -92,15 +92,15 @@ public void DoNotBlowUpWhenDevelopAndFeatureBranchPointAtSameCommit()
9292 Commands . Fetch ( fixture . LocalRepositoryFixture . Repository , fixture . LocalRepositoryFixture . Repository . Network . Remotes . First ( ) . Name , [ ] , new ( ) , null ) ;
9393 Commands . Checkout ( fixture . LocalRepositoryFixture . Repository , fixture . Repository . Head . Tip ) ;
9494 fixture . LocalRepositoryFixture . Repository . Branches . Remove ( MainBranch ) ;
95- fixture . InitializeRepo ( ) ;
95+ fixture . InitializeRepository ( ) ;
9696 fixture . AssertFullSemver ( "1.1.0-alpha.1" ) ;
9797 }
9898
9999 [ TestCase ( true , 1 ) ]
100100 [ TestCase ( false , 1 ) ]
101101 [ TestCase ( true , 5 ) ]
102102 [ TestCase ( false , 5 ) ]
103- public void HasDirtyFlagWhenUncommittedChangesAreInRepo ( bool stageFile , int numberOfFiles )
103+ public void HasDirtyFlagWhenUncommittedChangesAreInRepository ( bool stageFile , int numberOfFiles )
104104 {
105105 using var fixture = new EmptyRepositoryFixture ( ) ;
106106 fixture . MakeACommit ( ) ;
@@ -133,7 +133,7 @@ public void NoDirtyFlagInCleanRepository()
133133
134134 [ TestCase ( false , "1.1.0-alpha.2" ) ]
135135 [ TestCase ( true , "1.2.0-alpha.1" ) ]
136- public void EnsureTrackMergeTargetStrategyWhichWillLookForTaggedMergecommits ( bool trackMergeTarget , string expectedVersion )
136+ public void EnsureTrackMergeTargetStrategyWhichWillLookForTaggedMergeCommits ( bool trackMergeTarget , string expectedVersion )
137137 {
138138 // * 9daa6ea 53 minutes ago (HEAD -> develop)
139139 // | * 85536f2 55 minutes ago (tag: 1.1.0, main)
@@ -1283,7 +1283,7 @@ public void EnsureVersionAfterMainIsMergedBackToDevelopIsCorrectForMainline(bool
12831283 }
12841284
12851285 [ TestCase ( false , "2.0.0-alpha.3" ) ]
1286- [ TestCase ( true , "2 .0.0-alpha.3 " ) ]
1286+ [ TestCase ( true , "3 .0.0-alpha.2 " ) ]
12871287 public void EnsureVersionAfterMainIsMergedBackToDevelopIsCorrectForGitFlow ( bool applyTag , string semanticVersion )
12881288 {
12891289 var configuration = GitFlowConfigurationBuilder . New . Build ( ) ;
@@ -1300,7 +1300,7 @@ public void EnsureVersionAfterMainIsMergedBackToDevelopIsCorrectForGitFlow(bool
13001300
13011301 fixture . Checkout ( "main" ) ;
13021302 fixture . MakeACommit ( "C" ) ;
1303- if ( applyTag ) fixture . ApplyTag ( "1 .0.1 " ) ;
1303+ if ( applyTag ) fixture . ApplyTag ( "2 .0.0 " ) ;
13041304 fixture . Checkout ( "develop" ) ;
13051305 fixture . MergeNoFF ( "main" ) ;
13061306
@@ -1380,7 +1380,8 @@ public void AlternativeSemanticVersionsShouldBeConsidered()
13801380 }
13811381
13821382 [ TestCase ( null , "6.0.0-beta.6" ) ]
1383- [ TestCase ( "beta" , "6.0.0-beta.21" ) ]
1383+ [ TestCase ( "beta" , "6.0.0-beta.6" ) ]
1384+ [ TestCase ( "gamma" , "6.0.0-gamma.21" ) ]
13841385 public void AlternativeSemanticVersionsShouldBeConsidered ( string ? labelOnMain , string version )
13851386 {
13861387 var configuration = GitFlowConfigurationBuilder . New
@@ -1391,14 +1392,16 @@ public void AlternativeSemanticVersionsShouldBeConsidered(string? labelOnMain, s
13911392 using var fixture = new EmptyRepositoryFixture ( ) ;
13921393
13931394 fixture . MakeATaggedCommit ( "1.0.0" ) ;
1394- fixture . MakeATaggedCommit ( "4.0.0-beta.14" ) ;
13951395 fixture . MakeACommit ( "A" ) ;
1396+ fixture . ApplyTag ( "4.0.0-beta.14" ) ;
1397+ fixture . ApplyTag ( "4.0.0-gamma.14" ) ;
1398+ fixture . MakeACommit ( "B" ) ;
13961399 fixture . MakeATaggedCommit ( "6.0.0-alpha.1" ) ;
13971400 fixture . MakeATaggedCommit ( "6.0.0-alpha.2" ) ;
13981401 fixture . MakeATaggedCommit ( "6.0.0-alpha.3" ) ;
1399- fixture . MakeACommit ( "B" ) ;
1400- fixture . MakeATaggedCommit ( "6.0.0-beta.5" ) ;
14011402 fixture . MakeACommit ( "C" ) ;
1403+ fixture . MakeATaggedCommit ( "6.0.0-beta.5" ) ;
1404+ fixture . MakeACommit ( "D" ) ;
14021405
14031406 fixture . AssertFullSemver ( version , configuration ) ;
14041407 }
0 commit comments