File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/NerdBank.GitVersioning.Tests Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,17 @@ public void NotRepo()
4949 Assert . Equal ( 0 , oracle . VersionHeight ) ;
5050 }
5151
52- [ Fact ( Skip = "Unstable test. See issue #125" ) ]
52+ [ Fact ]
5353 public void Submodule_RecognizedWithCorrectVersion ( )
5454 {
5555 using ( var expandedRepo = TestUtilities . ExtractRepoArchive ( "submodules" ) )
5656 {
57- this . Context = this . CreateGitContext ( expandedRepo . RepoPath ) ;
58-
59- this . Context . RepoRelativeProjectDirectory = "a" ;
57+ this . Context = this . CreateGitContext ( Path . Combine ( expandedRepo . RepoPath , "a" ) ) ;
6058 var oracleA = new VersionOracle ( this . Context ) ;
6159 Assert . Equal ( "1.3.1" , oracleA . SimpleVersion . ToString ( ) ) ;
6260 Assert . Equal ( "e238b03e75" , oracleA . GitCommitIdShort ) ;
6361
64- this . Context . RepoRelativeProjectDirectory = Path . Combine ( "b" , "projB" ) ;
62+ this . Context = this . CreateGitContext ( Path . Combine ( expandedRepo . RepoPath , "b" , "projB" ) ) ;
6563 var oracleB = new VersionOracle ( this . Context ) ;
6664 Assert . Equal ( "2.5.2" , oracleB . SimpleVersion . ToString ( ) ) ;
6765 Assert . Equal ( "3ea7f010c3" , oracleB . GitCommitIdShort ) ;
You can’t perform that action at this time.
0 commit comments