暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ParametrizedIgnoreAttribute.cs 695B

123456789101112131415161718192021222324
  1. using NUnit.Framework;
  2. using NUnit.Framework.Interfaces;
  3. using NUnit.Framework.Internal.Commands;
  4. using System;
  5. namespace UnityEngine.TestTools
  6. {
  7. [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
  8. public class ParametrizedIgnoreAttribute : NUnitAttribute, IWrapTestMethod
  9. {
  10. public object[] Arguments { get; }
  11. public string Reason { get; set; }
  12. public ParametrizedIgnoreAttribute(params object[] Arguments)
  13. {
  14. this.Arguments = Arguments;
  15. }
  16. public TestCommand Wrap(TestCommand command)
  17. {
  18. return new ParametrizedIgnoreCommand(command, Arguments, Reason);
  19. }
  20. }
  21. }