MaxTimeAttribute public sealed class MaxTimeAttribute : PropertyAttribute, IWrapSetUpTearDown, ICommandWrapper Specifies the maximum time (in milliseconds) for a test case to succeed. Documentation Code using NUnit.Framework.Interfaces; using NUnit.Framework.Internal.Commands; using System; using System.Runtime.CompilerServices; namespace NUnit.Framework { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public sealed class MaxTimeAttribute : PropertyAttribute, IWrapSetUpTearDown, ICommandWrapper { private readonly int _milliseconds; public MaxTimeAttribute(int milliseconds) : base(milliseconds) { _milliseconds = milliseconds; } [System.Runtime.CompilerServices.NullableContext(1)] TestCommand ICommandWrapper.Wrap(TestCommand command) { return new MaxTimeCommand(command, _milliseconds); } } }