File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
GitVersionCore.Tests/Model
GitVersionCore/Model/Configuration Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ using GitVersion . Model . Configuration ;
2
+ using GitVersionCore . Tests . Helpers ;
3
+ using NUnit . Framework ;
4
+ using Shouldly ;
5
+
6
+ namespace GitVersionCore . Tests
7
+ {
8
+ [ TestFixture ]
9
+ public class IgnoreConfigTests : TestBase
10
+ {
11
+ [ Test ]
12
+ public void NewInstanceShouldBeEmpty ( )
13
+ {
14
+ var ignoreConfig = new IgnoreConfig ( ) ;
15
+
16
+ ignoreConfig . IsEmpty . ShouldBeTrue ( ) ;
17
+ }
18
+ }
19
+ }
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public IgnoreConfig()
19
19
[ YamlMember ( Alias = "sha" ) ]
20
20
public IEnumerable < string > ShAs { get ; set ; }
21
21
22
- public virtual bool IsEmpty => Before == null && ShAs == null ;
22
+ public virtual bool IsEmpty => Before == null
23
+ && ( ShAs == null || ShAs . Any ( ) == false ) ;
23
24
24
25
public virtual IEnumerable < IVersionFilter > ToFilters ( )
25
26
{
You can’t perform that action at this time.
0 commit comments