2023-02-13 12:09:35 +01:00
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
2023-01-29 23:08:47 +01:00
|
|
|
|
|
|
|
|
|
namespace FFMpegCore.Test.Utilities;
|
|
|
|
|
|
|
|
|
|
public class WindowsOnlyTestMethod : TestMethodAttribute
|
|
|
|
|
{
|
|
|
|
|
public override TestResult[] Execute(ITestMethod testMethod)
|
|
|
|
|
{
|
2023-02-13 12:09:35 +01:00
|
|
|
|
// Commented out because this edition of FFMpegCore fully supports Linux
|
|
|
|
|
//if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
|
|
|
//{
|
|
|
|
|
// var message = $"Test not executed on other platforms than Windows";
|
|
|
|
|
// {
|
|
|
|
|
// return new[]
|
|
|
|
|
// {
|
|
|
|
|
// new TestResult { Outcome = UnitTestOutcome.Inconclusive, TestFailureException = new AssertInconclusiveException(message) }
|
|
|
|
|
// };
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2023-02-02 21:19:45 +01:00
|
|
|
|
|
2023-01-29 23:08:47 +01:00
|
|
|
|
return base.Execute(testMethod);
|
|
|
|
|
}
|
2023-02-02 21:19:45 +01:00
|
|
|
|
}
|