dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Open

#331 aperta il 4 nov 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)C# (1364 fork)batch import
help wantedtestingtriaged

Metriche repository

Star
 (5062 star)
Metriche merge PR
 (Merge medio 11g 7h) (125 PR mergiate in 30 g)

Descrizione

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.

Guida contributor