Rasagar/Library/PackageCache/com.unity.test-framework/UnityEngine.TestRunner/NUnitExtensions/Attributes/ParametrizedIgnoreAttribute.cs

25 lines
695 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
using NUnit.Framework;
using NUnit.Framework.Interfaces;
using NUnit.Framework.Internal.Commands;
using System;
namespace UnityEngine.TestTools
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class ParametrizedIgnoreAttribute : NUnitAttribute, IWrapTestMethod
{
public object[] Arguments { get; }
public string Reason { get; set; }
public ParametrizedIgnoreAttribute(params object[] Arguments)
{
this.Arguments = Arguments;
}
public TestCommand Wrap(TestCommand command)
{
return new ParametrizedIgnoreCommand(command, Arguments, Reason);
}
}
}