dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Open

#331 geöffnet am 4. Nov. 2015

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

Repository-Metriken

Stars
 (5.062 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 7h) (125 gemergte PRs in 30 T)

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