dotnet/msbuild

Convert tests to use PlatformSpecific attributes

Open

#331 创建于 2015年11月4日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)C# (5,062 star) (1,364 fork)batch import
help wantedtestingtriaged

描述

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.

贡献者指南