@@ -57,7 +57,7 @@ class BaseIntegrationTest
57
57
protected TestUtils . SubstituteFactory Factory { get ; set ; }
58
58
protected static NPath SolutionDirectory => TestContext . CurrentContext . TestDirectory . ToNPath ( ) ;
59
59
60
- protected void InitializeEnvironment ( NPath ? repoPath ,
60
+ protected void InitializeEnvironment ( NPath repoPath ,
61
61
NPath ? environmentPath = null ,
62
62
bool enableEnvironmentTrace = false ,
63
63
bool initializeRepository = true
@@ -80,7 +80,7 @@ protected void InitializeEnvironment(NPath? repoPath,
80
80
initializeRepository ) ;
81
81
}
82
82
83
- private void InitializePlatform ( NPath repoPath , NPath environmentPath , bool enableEnvironmentTrace ,
83
+ private void InitializePlatform ( NPath repoPath , NPath ? environmentPath , bool enableEnvironmentTrace ,
84
84
bool setupGit = true , string testName = "" )
85
85
{
86
86
InitializeTaskManager ( ) ;
@@ -103,7 +103,7 @@ protected void InitializeTaskManager()
103
103
}
104
104
105
105
protected IEnvironment InitializePlatformAndEnvironment ( NPath repoPath ,
106
- NPath environmentPath = null ,
106
+ NPath ? environmentPath = null ,
107
107
bool enableEnvironmentTrace = false ,
108
108
bool setupGit = true ,
109
109
Action < IRepositoryManager > onRepositoryManagerCreated = null ,
@@ -154,7 +154,7 @@ protected void SetupGit(NPath pathToSetupGitInto, string testName)
154
154
155
155
var gitInstaller = new GitInstaller ( Environment , TaskManager . Token , installDetails ) ;
156
156
157
- NPath result = null ;
157
+ NPath ? result = null ;
158
158
Exception ex = null ;
159
159
160
160
var setupTask = gitInstaller . SetupGitIfNeeded ( ) ;
@@ -177,7 +177,7 @@ protected void SetupGit(NPath pathToSetupGitInto, string testName)
177
177
throw new Exception ( "Did not install git" ) ;
178
178
}
179
179
180
- Environment . GitExecutablePath = result ;
180
+ Environment . GitExecutablePath = result . Value ;
181
181
GitClient = new GitClient ( Environment , ProcessManager , TaskManager . Token ) ;
182
182
}
183
183
0 commit comments