Skip to content

Commit

Permalink
(chocolateyGH-1020) Remove outdated platform logic, attempt replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Nov 2, 2019
1 parent 7345ec0 commit f0754cf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/chocolatey.tests/TinySpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit f0754cf

Please sign in to comment.