A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
745 B

using System;
using System.Linq;
using System.Runtime.InteropServices;
using Xunit;
namespace Avalonia.IntegrationTests.Appium
{
internal class PlatformFactAttribute : FactAttribute
{
public override string? Skip
{
get
{
if (SkipOnWindows && RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return "Ignored on Windows";
if (SkipOnOSX && RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
return "Ignored on MacOS";
return null;
}
set => throw new NotSupportedException();
}
public bool SkipOnOSX { get; set; }
public bool SkipOnWindows { get; set; }
}
}