Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:storage-unittest-localstack' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo authored and Beta Bot committed Jan 8, 2025
1 parent 9e2c7c2 commit 103836a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dotnet/test/DotNetUnitTest/WindowOnlyFact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Runtime.InteropServices;
using Xunit;

namespace DotNetUnitTest
{
public sealed class WindowsOnlyFactAttribute : FactAttribute
{
public WindowsOnlyFactAttribute()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Skip = "Test skipped because it runs only on Windows.";
}
}
}
}

0 comments on commit 103836a

Please sign in to comment.