@@ -46,7 +46,7 @@ public void When_getting_configurations_of_a_branch_with_versioning_mode_Given_f
46
46
. WithBranch ( "develop" , builder => builder . WithDeploymentMode ( null ) . WithIncrement ( IncrementStrategy . Inherit ) )
47
47
. Build ( ) ;
48
48
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
49
- repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { mainBranchMock } ) ;
49
+ repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ mainBranchMock ] ) ;
50
50
51
51
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
52
52
@@ -75,7 +75,7 @@ public void When_getting_configurations_of_a_branch_with_versioning_mode_Given_p
75
75
. Build ( ) ;
76
76
77
77
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
78
- repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { mainBranchMock } ) ;
78
+ repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ mainBranchMock ] ) ;
79
79
80
80
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
81
81
@@ -109,7 +109,7 @@ public void When_getting_configurations_of_a_branch_with_tag_alpha_Given_branch_
109
109
. Build ( ) ;
110
110
111
111
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
112
- repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { mainBranchMock } ) ;
112
+ repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ mainBranchMock ] ) ;
113
113
114
114
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
115
115
@@ -136,7 +136,7 @@ public void When_getting_configurations_of_a_branch_without_tag_Given_branch_whi
136
136
. Build ( ) ;
137
137
138
138
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
139
- repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { mainBranchMock } ) ;
139
+ repositoryStoreMock . GetSourceBranches ( developBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ mainBranchMock ] ) ;
140
140
141
141
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
142
142
@@ -292,7 +292,7 @@ public void When_getting_configurations_of_an_unknown_branch_Given_fallback_conf
292
292
. Build ( ) ;
293
293
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
294
294
var developBranchMock = GitToolsTestingExtensions . CreateMockBranch ( "develop" , GitToolsTestingExtensions . CreateMockCommit ( ) ) ;
295
- repositoryStoreMock . GetSourceBranches ( unknownBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { developBranchMock } ) ;
295
+ repositoryStoreMock . GetSourceBranches ( unknownBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ developBranchMock ] ) ;
296
296
297
297
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
298
298
@@ -325,7 +325,7 @@ public void When_getting_configurations_of_an_unknown_branch_Given_fallback_conf
325
325
. Build ( ) ;
326
326
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
327
327
var developBranchMock = GitToolsTestingExtensions . CreateMockBranch ( "develop" , GitToolsTestingExtensions . CreateMockCommit ( ) ) ;
328
- repositoryStoreMock . GetSourceBranches ( unknownBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { developBranchMock } ) ;
328
+ repositoryStoreMock . GetSourceBranches ( unknownBranchMock , configuration , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ developBranchMock ] ) ;
329
329
330
330
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
331
331
@@ -360,7 +360,7 @@ public void When_getting_configurations_of_an_unknown_branch_Given_fallback_and_
360
360
. Build ( ) ;
361
361
var repositoryStoreMock = Substitute . For < IRepositoryStore > ( ) ;
362
362
var developBranchMock = GitToolsTestingExtensions . CreateMockBranch ( "develop" , GitToolsTestingExtensions . CreateMockCommit ( ) ) ;
363
- repositoryStoreMock . GetSourceBranches ( Arg . Any < IBranch > ( ) , Arg . Any < GitVersionConfiguration > ( ) , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( new [ ] { developBranchMock } ) ;
363
+ repositoryStoreMock . GetSourceBranches ( Arg . Any < IBranch > ( ) , Arg . Any < GitVersionConfiguration > ( ) , Arg . Any < HashSet < IBranch > > ( ) ) . Returns ( [ developBranchMock ] ) ;
364
364
365
365
var unitUnderTest = new EffectiveBranchConfigurationFinder ( Substitute . For < ILog > ( ) , repositoryStoreMock ) ;
366
366
0 commit comments