FFMpegCore/FFMpegCore.Test/Utilities/WindowsOnlyTestMethod.cs

24 lines
778 B
C#
Raw Normal View History

using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FFMpegCore.Test.Utilities;
public class WindowsOnlyTestMethod : TestMethodAttribute
{
public override TestResult[] Execute(ITestMethod testMethod)
{
// 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) }
// };
// }
//}
return base.Execute(testMethod);
}
}