mirror of
https://github.com/cyanfish/naps2.git
synced 2024-08-17 03:00:21 +03:00
32 lines
730 B
C#
32 lines
730 B
C#
using System.Collections;
|
|
using NAPS2.App.Tests.Targets;
|
|
|
|
namespace NAPS2.App.Tests.Appium;
|
|
|
|
public class AppiumTestData : IEnumerable<object[]>
|
|
{
|
|
public IEnumerator<object[]> GetEnumerator()
|
|
{
|
|
#if NET6_0_OR_GREATER
|
|
if (OperatingSystem.IsWindows())
|
|
{
|
|
yield return new object[] { new WinNet462AppTestTarget() };
|
|
}
|
|
else if (OperatingSystem.IsMacOS())
|
|
{
|
|
// No Appium impl yet
|
|
}
|
|
else if (OperatingSystem.IsLinux())
|
|
{
|
|
// No Appium impl yet
|
|
}
|
|
#else
|
|
yield return new object[] { new WinNet462AppTestTarget() };
|
|
#endif
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return GetEnumerator();
|
|
}
|
|
} |