dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Open

#331 opened on Nov 4, 2015

View on GitHub
 (0 comments) (0 reactions) (1 assignee)C# (5,062 stars) (1,364 forks)batch import
help wantedtestingtriaged

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.

Contributor guide