dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Ouverte

#331 ouverte le 4 nov. 2015

 (0 commentaire) (0 réaction) (1 personne assignée)C# (1 364 forks)batch import
help wantedtestingtriaged

Métriques du dépôt

Stars
 (5 062 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

After adopting xunit.netcore.extensions, we have a nice way to specify that tests are platform-specific, with the [PlatformSpecific] attribute. We should adopt that everywhere and avoid using early-returns like

            if (NativeMethodsShared.IsUnixLike)
            {
                return;
            }

where possible.

Guide contributeur