dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Offen

#331 geöffnet am 04.11.2015

 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C# (1.364 Forks)batch import
help wantedtestingtriaged

Repository-Metriken

Stars
 (5.062 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide