[tests] Fix LinkSdkRegressionTest.SpecialFolder on macOS 10.14. (#13004)

This commit is contained in:
Rolf Bjarne Kvinge 2021-10-19 08:16:21 +02:00 коммит произвёл GitHub
Родитель db677b2639
Коммит 60c20decf0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -927,7 +927,10 @@ namespace LinkSdk {
var path = TestFolder (Environment.SpecialFolder.Desktop, exists: false);
#endif
#if __MACCATALYST__ || __MACOS__
#if __MACOS__
var isMac1015 = TestRuntime.CheckSystemVersion (PlatformName.MacOSX, 10, 15);
path = TestFolder (Environment.SpecialFolder.Favorites, supported: isMac1015, exists: isMac1015);
#elif __MACCATALYST__
path = TestFolder (Environment.SpecialFolder.Favorites, exists: true);
#else
path = TestFolder (Environment.SpecialFolder.Favorites, exists: false);
@ -950,6 +953,8 @@ namespace LinkSdk {
#if __TVOS__
path = TestFolder (Environment.SpecialFolder.Fonts, exists: null, supported: true);
#elif __MACOS__
path = TestFolder (Environment.SpecialFolder.Fonts, supported: isMac1015, exists: isMac1015);
#else
path = TestFolder (Environment.SpecialFolder.Fonts, exists: myExists);
#endif