[tests] If listing included platforms for .NET, don't include anything if .NET isn't enabled. (#18637)

This commit is contained in:
Rolf Bjarne Kvinge 2023-08-07 15:39:42 +02:00 коммит произвёл GitHub
Родитель 2a3dc56463
Коммит 1e7e084fd1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -918,6 +918,9 @@ namespace Xamarin.Tests {
public static IEnumerable<ApplePlatform> GetIncludedPlatforms (bool dotnet)
{
if (dotnet && !include_dotnet)
yield break;
if (include_ios)
yield return ApplePlatform.iOS;
if (include_tvos)