@@ -33,7 +33,7 @@ public void IndexerTest_DirectoryNotSetAndNoConfigurationProviders(string key)
3333 _ => throw ApplicationStateGuard . Unreachable ( ) ,
3434 } ;
3535
36- Assert . AreEqual ( expected , new AggregatedConfiguration ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new ( null , [ ] , [ ] ) ) [ key ] ) ;
36+ Assert . AreEqual ( expected , new AggregatedConfiguration ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new SystemEnvironment ( ) , new ( null , [ ] , [ ] ) ) [ key ] ) ;
3737 }
3838
3939 [ TestMethod ]
@@ -43,7 +43,7 @@ public void IndexerTest_DirectoryNotSetButConfigurationProvidersPresent_Director
4343 {
4444 Mock < IConfigurationProvider > mockProvider = new ( ) ;
4545
46- AggregatedConfiguration aggregatedConfiguration = new ( [ mockProvider . Object ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new ( null , [ ] , [ ] ) ) ;
46+ AggregatedConfiguration aggregatedConfiguration = new ( [ mockProvider . Object ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new SystemEnvironment ( ) , new ( null , [ ] , [ ] ) ) ;
4747 Assert . IsNull ( aggregatedConfiguration [ key ] ) ;
4848 }
4949
@@ -53,21 +53,21 @@ public void IndexerTest_DirectoryNotSetButConfigurationProvidersPresent_Director
5353 [ DataRow ( PlatformConfigurationConstants . PlatformTestHostWorkingDirectory ) ]
5454 public void IndexerTest_DirectoryNotSetButConfigurationProvidersPresent_DirectoryIsNotNull ( string key )
5555 {
56- AggregatedConfiguration aggregatedConfiguration = new ( [ new FakeConfigurationProvider ( ExpectedPath ) ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new ( null , [ ] , [ ] ) ) ;
56+ AggregatedConfiguration aggregatedConfiguration = new ( [ new FakeConfigurationProvider ( ExpectedPath ) ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new SystemEnvironment ( ) , new ( null , [ ] , [ ] ) ) ;
5757 Assert . AreEqual ( ExpectedPath , aggregatedConfiguration [ key ] ) ;
5858 }
5959
6060 [ TestMethod ]
6161 public void IndexerTest_ResultDirectorySet_DirectoryIsNotNull ( )
6262 {
63- AggregatedConfiguration aggregatedConfiguration = new ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
63+ AggregatedConfiguration aggregatedConfiguration = new ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new SystemEnvironment ( ) , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
6464 Assert . AreEqual ( ExpectedPath , aggregatedConfiguration [ PlatformConfigurationConstants . PlatformResultDirectory ] ) ;
6565 }
6666
6767 [ TestMethod ]
6868 public void IndexerTest_CurrentWorkingDirectorySet_DirectoryIsNotNull ( )
6969 {
70- AggregatedConfiguration aggregatedConfiguration = new ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new ( null , [ ] , [ ] ) ) ;
70+ AggregatedConfiguration aggregatedConfiguration = new ( [ ] , _testApplicationModuleInfoMock . Object , _fileSystemMock . Object , new SystemEnvironment ( ) , new ( null , [ ] , [ ] ) ) ;
7171
7272 aggregatedConfiguration . SetCurrentWorkingDirectory ( ExpectedPath ) ;
7373 Assert . AreEqual ( ExpectedPath , aggregatedConfiguration [ PlatformConfigurationConstants . PlatformCurrentWorkingDirectory ] ) ;
@@ -86,7 +86,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
8686 Mock < IFileLoggerProvider > mockFileLogger = new ( ) ;
8787 mockFileLogger . Setup ( x => x . CheckLogFolderAndMoveToTheNewIfNeededAsync ( It . IsAny < string > ( ) ) ) . Callback ( ( ) => { } ) ;
8888
89- AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
89+ AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new SystemEnvironment ( ) , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
9090 await aggregatedConfiguration . CheckTestResultsDirectoryOverrideAndCreateItAsync ( mockFileLogger . Object ) ;
9191
9292 mockFileSystem . Verify ( x => x . CreateDirectory ( ExpectedPath ) , Times . Once ) ;
@@ -108,7 +108,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
108108 Mock < IFileLoggerProvider > mockFileLogger = new ( ) ;
109109 mockFileLogger . Setup ( x => x . CheckLogFolderAndMoveToTheNewIfNeededAsync ( It . IsAny < string > ( ) ) ) . Callback ( ( ) => { } ) ;
110110
111- AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
111+ AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new SystemEnvironment ( ) , new ( null , [ new CommandLineParseOption ( "results-directory" , [ ExpectedPath ] ) ] , [ ] ) ) ;
112112 await aggregatedConfiguration . CheckTestResultsDirectoryOverrideAndCreateItAsync ( mockFileLogger . Object ) ;
113113
114114 mockFileSystem . Verify ( x => x . CreateDirectory ( ExpectedPath ) , Times . Once ) ;
@@ -130,7 +130,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
130130 Mock < IFileLoggerProvider > mockFileLogger = new ( ) ;
131131 mockFileLogger . Setup ( x => x . CheckLogFolderAndMoveToTheNewIfNeededAsync ( It . IsAny < string > ( ) ) ) . Callback ( ( ) => { } ) ;
132132
133- AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new ( null , [ ] , [ ] ) ) ;
133+ AggregatedConfiguration aggregatedConfiguration = new ( [ ] , mockTestApplicationModuleInfo . Object , mockFileSystem . Object , new SystemEnvironment ( ) , new ( null , [ ] , [ ] ) ) ;
134134 await aggregatedConfiguration . CheckTestResultsDirectoryOverrideAndCreateItAsync ( mockFileLogger . Object ) ;
135135
136136 string expectedPath = "a" + Path . DirectorySeparatorChar + "b" + Path . DirectorySeparatorChar + "TestResults" ;
0 commit comments