@@ -15,7 +15,7 @@ public static Config ApplyDefaults(this Config config)
15
15
return config ;
16
16
}
17
17
18
- public static VersionVariables GetVersion ( this RepositoryFixtureBase fixture , Config configuration = null , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true )
18
+ public static VersionVariables GetVersion ( this RepositoryFixtureBase fixture , Config configuration = null , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
19
19
{
20
20
if ( configuration == null )
21
21
{
@@ -37,19 +37,19 @@ public static VersionVariables GetVersion(this RepositoryFixtureBase fixture, Co
37
37
}
38
38
}
39
39
40
- public static void AssertFullSemver ( this RepositoryFixtureBase fixture , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true )
40
+ public static void AssertFullSemver ( this RepositoryFixtureBase fixture , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
41
41
{
42
- fixture . AssertFullSemver ( new Config ( ) , fullSemver , repository , commitId , isForTrackedBranchOnly ) ;
42
+ fixture . AssertFullSemver ( new Config ( ) , fullSemver , repository , commitId , isForTrackedBranchOnly , targetBranch ) ;
43
43
}
44
44
45
- public static void AssertFullSemver ( this RepositoryFixtureBase fixture , Config configuration , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true )
45
+ public static void AssertFullSemver ( this RepositoryFixtureBase fixture , Config configuration , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
46
46
{
47
47
ConfigurationProvider . ApplyDefaultsTo ( configuration ) ;
48
48
Console . WriteLine ( "---------" ) ;
49
49
50
50
try
51
51
{
52
- var variables = fixture . GetVersion ( configuration , repository , commitId , isForTrackedBranchOnly ) ;
52
+ var variables = fixture . GetVersion ( configuration , repository , commitId , isForTrackedBranchOnly , targetBranch ) ;
53
53
variables . FullSemVer . ShouldBe ( fullSemver ) ;
54
54
}
55
55
catch ( Exception )
0 commit comments