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.

貢獻者指南