File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/NerdBank.GitVersioning.Tests Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -731,6 +731,28 @@ public void GetVersionHeight_IncludeRootExcludeSome()
731
731
Assert . Equal ( 2 , this . GetVersionHeight ( relativeDirectory ) ) ;
732
732
}
733
733
734
+ [ Fact ]
735
+ public void GetVersion_PathFilterInTwoDeepSubDirAndVersionBump ( )
736
+ {
737
+ this . InitializeSourceControl ( ) ;
738
+
739
+ const string relativeDirectory = "src\\ lib" ;
740
+ var versionOptions = new VersionOptions
741
+ {
742
+ Version = new SemanticVersion ( "1.1" ) ,
743
+ PathFilters = new FilterPath [ ]
744
+ {
745
+ new FilterPath ( "." , relativeDirectory ) ,
746
+ } ,
747
+ } ;
748
+ this . WriteVersionFile ( versionOptions , relativeDirectory ) ;
749
+ Assert . Equal ( 1 , this . GetVersionHeight ( relativeDirectory ) ) ;
750
+
751
+ versionOptions . Version = new SemanticVersion ( "1.2" ) ;
752
+ this . WriteVersionFile ( versionOptions , relativeDirectory ) ;
753
+ Assert . Equal ( 1 , this . GetVersionHeight ( relativeDirectory ) ) ;
754
+ }
755
+
734
756
[ Fact ]
735
757
public void GetVersionHeight_ProjectDirectoryDifferentToVersionJsonDirectory ( )
736
758
{
You can’t perform that action at this time.
0 commit comments