TestSkip.cs 570 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.IO;
  3. using System.Runtime.InteropServices;
  4. using Xunit;
  5. namespace Avalonia.Skia.RenderTests
  6. {
  7. public class Win32Fact : FactAttribute
  8. {
  9. public Win32Fact(string message)
  10. {
  11. if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
  12. Skip = message;
  13. }
  14. }
  15. public class Win32Theory : TheoryAttribute
  16. {
  17. public Win32Theory(string message)
  18. {
  19. if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
  20. Skip = message;
  21. }
  22. }
  23. }