We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb82e3 commit 6086a89Copy full SHA for 6086a89
dotnet/test/DotNetUnitTest/WindowOnlyFact.cs
@@ -0,0 +1,16 @@
1
+using System.Runtime.InteropServices;
2
+using Xunit;
3
+
4
+namespace DotNetUnitTest
5
+{
6
+ public sealed class WindowsOnlyFactAttribute : FactAttribute
7
+ {
8
+ public WindowsOnlyFactAttribute()
9
10
+ if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
11
12
+ Skip = "Test skipped because it runs only on Windows.";
13
+ }
14
15
16
+}
0 commit comments