diff --git a/src/chocolatey.tests/TinySpec.cs b/src/chocolatey.tests/TinySpec.cs index 460cddcafe..66651afefb 100644 --- a/src/chocolatey.tests/TinySpec.cs +++ b/src/chocolatey.tests/TinySpec.cs @@ -147,18 +147,13 @@ public PendingAttribute(string reason) } } -#if __MonoCS__ - public class WindowsOnlyAttribute : IgnoreAttribute + public class WindowsOnlyAttribute : PlatformAttribute { - public WindowsOnlyAttribute() : base("This is a Windows only test") + public WindowsOnlyAttribute() { + Exclude = "Unix,Linux,MacOsX"; } } -#else - public class WindowsOnlyAttribute : Attribute - { - } -#endif public class IntegrationAttribute : CategoryAttribute {