Respect AppContext.SetData with APP_CONFIG_FILE key (#56748)
authorKrzysztof Wicher <kwicher@microsoft.com>
Thu, 5 Aug 2021 16:14:46 +0000 (18:14 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 16:14:46 +0000 (18:14 +0200)
commitd329350d64e2b9f843f6581759eb5524a0612452
treeef80e75f84c731eb5e08adacca4b8f8ee6329953
parent5a02633884b70ec5c4eabfa9d070ff54c220f264
Respect AppContext.SetData with APP_CONFIG_FILE key (#56748)

* Respect AppContext.SetData with APP_CONFIG_FILE key

* apply feedback (use BaseDirectory and FileCleanupTestBase)

* avoid using GetFullPath with 2 arguments as it's not available everywhere

* trim all directory separators rather than single

* cleanupRootDirectory -> tempDirectory

* fix absolute paths on linux
src/libraries/Common/tests/TestUtilities/System/IO/FileCleanupTestBase.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
src/libraries/System.Configuration.ConfigurationManager/tests/System.Configuration.ConfigurationManager.Tests.csproj
src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/ConfigurationPathTests.cs [new file with mode: 0644]