@@ -14,20 +14,20 @@ public void ShouldInheritIncrementCorrectlyWithMultiplePossibleParentsAndWeirdly
14
14
{
15
15
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
16
16
fixture . Repository . CreateBranch ( "development" ) ;
17
- fixture . Repository . Checkout ( "development" ) ;
17
+ Commands . Checkout ( fixture . Repository , "development" ) ;
18
18
19
19
//Create an initial feature branch
20
20
var feature123 = fixture . Repository . CreateBranch ( "feature/JIRA-123" ) ;
21
- fixture . Repository . Checkout ( "feature/JIRA-123" ) ;
21
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-123" ) ;
22
22
fixture . Repository . MakeCommits ( 1 ) ;
23
23
24
24
//Merge it
25
- fixture . Repository . Checkout ( "development" ) ;
25
+ Commands . Checkout ( fixture . Repository , "development" ) ;
26
26
fixture . Repository . Merge ( feature123 , Generate . SignatureNow ( ) ) ;
27
27
28
28
//Create a second feature branch
29
29
fixture . Repository . CreateBranch ( "feature/JIRA-124" ) ;
30
- fixture . Repository . Checkout ( "feature/JIRA-124" ) ;
30
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-124" ) ;
31
31
fixture . Repository . MakeCommits ( 1 ) ;
32
32
33
33
fixture . AssertFullSemver ( "1.1.0-JIRA-124.1+2" ) ;
@@ -49,20 +49,20 @@ public void BranchCreatedAfterFastForwardMergeShouldInheritCorrectly()
49
49
{
50
50
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
51
51
fixture . Repository . CreateBranch ( "unstable" ) ;
52
- fixture . Repository . Checkout ( "unstable" ) ;
52
+ Commands . Checkout ( fixture . Repository , "unstable" ) ;
53
53
54
54
//Create an initial feature branch
55
55
var feature123 = fixture . Repository . CreateBranch ( "feature/JIRA-123" ) ;
56
- fixture . Repository . Checkout ( "feature/JIRA-123" ) ;
56
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-123" ) ;
57
57
fixture . Repository . MakeCommits ( 1 ) ;
58
58
59
59
//Merge it
60
- fixture . Repository . Checkout ( "unstable" ) ;
60
+ Commands . Checkout ( fixture . Repository , "unstable" ) ;
61
61
fixture . Repository . Merge ( feature123 , Generate . SignatureNow ( ) ) ;
62
62
63
63
//Create a second feature branch
64
64
fixture . Repository . CreateBranch ( "feature/JIRA-124" ) ;
65
- fixture . Repository . Checkout ( "feature/JIRA-124" ) ;
65
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-124" ) ;
66
66
fixture . Repository . MakeCommits ( 1 ) ;
67
67
68
68
fixture . AssertFullSemver ( config , "1.1.0-JIRA-124.1+2" ) ;
@@ -76,9 +76,9 @@ public void ShouldNotUseNumberInFeatureBranchAsPreReleaseNumberOffDevelop()
76
76
{
77
77
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
78
78
fixture . Repository . CreateBranch ( "develop" ) ;
79
- fixture . Repository . Checkout ( "develop" ) ;
79
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
80
80
fixture . Repository . CreateBranch ( "feature/JIRA-123" ) ;
81
- fixture . Repository . Checkout ( "feature/JIRA-123" ) ;
81
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-123" ) ;
82
82
fixture . Repository . MakeCommits ( 5 ) ;
83
83
84
84
fixture . AssertFullSemver ( "1.1.0-JIRA-123.1+5" ) ;
@@ -92,7 +92,7 @@ public void ShouldNotUseNumberInFeatureBranchAsPreReleaseNumberOffMaster()
92
92
{
93
93
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
94
94
fixture . Repository . CreateBranch ( "feature/JIRA-123" ) ;
95
- fixture . Repository . Checkout ( "feature/JIRA-123" ) ;
95
+ Commands . Checkout ( fixture . Repository , "feature/JIRA-123" ) ;
96
96
fixture . Repository . MakeCommits ( 5 ) ;
97
97
98
98
fixture . AssertFullSemver ( "1.0.1-JIRA-123.1+5" ) ;
@@ -106,7 +106,7 @@ public void TestFeatureBranch()
106
106
{
107
107
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
108
108
fixture . Repository . CreateBranch ( "feature-test" ) ;
109
- fixture . Repository . Checkout ( "feature-test" ) ;
109
+ Commands . Checkout ( fixture . Repository , "feature-test" ) ;
110
110
fixture . Repository . MakeCommits ( 5 ) ;
111
111
112
112
fixture . AssertFullSemver ( "1.0.1-test.1+5" ) ;
@@ -120,7 +120,7 @@ public void TestFeaturesBranch()
120
120
{
121
121
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
122
122
fixture . Repository . CreateBranch ( "features/test" ) ;
123
- fixture . Repository . Checkout ( "features/test" ) ;
123
+ Commands . Checkout ( fixture . Repository , "features/test" ) ;
124
124
fixture . Repository . MakeCommits ( 5 ) ;
125
125
126
126
fixture . AssertFullSemver ( "1.0.1-test.1+5" ) ;
@@ -134,12 +134,12 @@ public void WhenTwoFeatureBranchPointToTheSameCommit()
134
134
{
135
135
fixture . Repository . MakeACommit ( ) ;
136
136
fixture . Repository . CreateBranch ( "develop" ) ;
137
- fixture . Repository . Checkout ( "develop" ) ;
137
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
138
138
fixture . Repository . CreateBranch ( "feature/feature1" ) ;
139
- fixture . Repository . Checkout ( "feature/feature1" ) ;
139
+ Commands . Checkout ( fixture . Repository , "feature/feature1" ) ;
140
140
fixture . Repository . MakeACommit ( ) ;
141
141
fixture . Repository . CreateBranch ( "feature/feature2" ) ;
142
- fixture . Repository . Checkout ( "feature/feature2" ) ;
142
+ Commands . Checkout ( fixture . Repository , "feature/feature2" ) ;
143
143
144
144
fixture . AssertFullSemver ( "0.1.0-feature2.1+1" ) ;
145
145
}
@@ -153,20 +153,20 @@ public void ShouldBePossibleToMergeDevelopForALongRunningBranchWhereDevelopAndMa
153
153
fixture . Repository . MakeATaggedCommit ( "v1.0.0" ) ;
154
154
155
155
fixture . Repository . CreateBranch ( "develop" ) ;
156
- fixture . Repository . Checkout ( "develop" ) ;
156
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
157
157
158
158
fixture . Repository . CreateBranch ( "feature/longrunning" ) ;
159
- fixture . Repository . Checkout ( "feature/longrunning" ) ;
159
+ Commands . Checkout ( fixture . Repository , "feature/longrunning" ) ;
160
160
fixture . Repository . MakeACommit ( ) ;
161
161
162
- fixture . Repository . Checkout ( "develop" ) ;
162
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
163
163
fixture . Repository . MakeACommit ( ) ;
164
164
165
- fixture . Repository . Checkout ( "master" ) ;
165
+ Commands . Checkout ( fixture . Repository , "master" ) ;
166
166
fixture . Repository . Merge ( fixture . Repository . Branches [ "develop" ] , Generate . SignatureNow ( ) ) ;
167
167
fixture . Repository . ApplyTag ( "v1.1.0" ) ;
168
168
169
- fixture . Repository . Checkout ( "feature/longrunning" ) ;
169
+ Commands . Checkout ( fixture . Repository , "feature/longrunning" ) ;
170
170
fixture . Repository . Merge ( fixture . Repository . Branches [ "develop" ] , Generate . SignatureNow ( ) ) ;
171
171
172
172
var configuration = new Config { VersioningMode = VersioningMode . ContinuousDeployment } ;
@@ -192,7 +192,7 @@ public void ShouldUseConfiguredTag(string tag, string featureName, string preRel
192
192
fixture . Repository . MakeATaggedCommit ( "1.0.0" ) ;
193
193
var featureBranchName = string . Format ( "feature/{0}" , featureName ) ;
194
194
fixture . Repository . CreateBranch ( featureBranchName ) ;
195
- fixture . Repository . Checkout ( featureBranchName ) ;
195
+ Commands . Checkout ( fixture . Repository , featureBranchName ) ;
196
196
fixture . Repository . MakeCommits ( 5 ) ;
197
197
198
198
var expectedFullSemVer = string . Format ( "1.0.1-{0}.1+5" , preReleaseTagName ) ;
@@ -208,7 +208,7 @@ public void BranchCreatedAfterFinishReleaseShouldInheritAndIncrementFromLastMast
208
208
//validate current version
209
209
fixture . AssertFullSemver ( "0.2.0-alpha.1" ) ;
210
210
fixture . Repository . CreateBranch ( "release/0.2.0" ) ;
211
- fixture . Repository . Checkout ( "release/0.2.0" ) ;
211
+ Commands . Checkout ( fixture . Repository , "release/0.2.0" ) ;
212
212
213
213
//validate release version
214
214
fixture . AssertFullSemver ( "0.2.0-beta.1+0" ) ;
0 commit comments