@@ -19,7 +19,7 @@ public static class GitToolsTestingExtensions
19
19
20
20
static GitToolsTestingExtensions ( ) => sp = ConfigureService ( ) ;
21
21
22
- public static VersionVariables GetVersion ( this RepositoryFixtureBase fixture , Config configuration = null , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
22
+ public static VersionVariables GetVersion ( this RepositoryFixtureBase fixture , Config configuration = null , IRepository repository = null , string commitId = null , bool onlyTrackedBranches = true , string targetBranch = null )
23
23
{
24
24
if ( configuration == null )
25
25
{
@@ -31,7 +31,7 @@ public static VersionVariables GetVersion(this RepositoryFixtureBase fixture, Co
31
31
var variableProvider = sp . GetService < IVariableProvider > ( ) ;
32
32
var versionFinder = sp . GetService < IGitVersionFinder > ( ) ;
33
33
34
- var gitVersionContext = new GitVersionContext ( repository ?? fixture . Repository , log , targetBranch , configuration , isForTrackedBranchOnly , commitId ) ;
34
+ var gitVersionContext = new GitVersionContext ( repository ?? fixture . Repository , log , targetBranch , configuration , onlyTrackedBranches , commitId ) ;
35
35
var executeGitVersion = versionFinder . FindVersion ( gitVersionContext ) ;
36
36
var variables = variableProvider . GetVariablesFor ( executeGitVersion , gitVersionContext . Configuration , gitVersionContext . IsCurrentCommitTagged ) ;
37
37
@@ -47,19 +47,19 @@ public static VersionVariables GetVersion(this RepositoryFixtureBase fixture, Co
47
47
}
48
48
}
49
49
50
- public static void AssertFullSemver ( this RepositoryFixtureBase fixture , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
50
+ public static void AssertFullSemver ( this RepositoryFixtureBase fixture , string fullSemver , IRepository repository = null , string commitId = null , bool onlyTrackedBranches = true , string targetBranch = null )
51
51
{
52
- fixture . AssertFullSemver ( new Config ( ) , fullSemver , repository , commitId , isForTrackedBranchOnly , targetBranch ) ;
52
+ fixture . AssertFullSemver ( new Config ( ) , fullSemver , repository , commitId , onlyTrackedBranches , targetBranch ) ;
53
53
}
54
54
55
- public static void AssertFullSemver ( this RepositoryFixtureBase fixture , Config configuration , string fullSemver , IRepository repository = null , string commitId = null , bool isForTrackedBranchOnly = true , string targetBranch = null )
55
+ public static void AssertFullSemver ( this RepositoryFixtureBase fixture , Config configuration , string fullSemver , IRepository repository = null , string commitId = null , bool onlyTrackedBranches = true , string targetBranch = null )
56
56
{
57
57
configuration . Reset ( ) ;
58
58
Console . WriteLine ( "---------" ) ;
59
59
60
60
try
61
61
{
62
- var variables = fixture . GetVersion ( configuration , repository , commitId , isForTrackedBranchOnly , targetBranch ) ;
62
+ var variables = fixture . GetVersion ( configuration , repository , commitId , onlyTrackedBranches , targetBranch ) ;
63
63
variables . FullSemVer . ShouldBe ( fullSemver ) ;
64
64
}
65
65
catch ( Exception )
0 commit comments