<PackageReference Include="NUnit" Version="3.4.1" />

MaxTimeAttribute

Summary description for MaxTimeAttribute.
using NUnit.Framework.Interfaces; using NUnit.Framework.Internal.Commands; using System; namespace NUnit.Framework { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public sealed class MaxTimeAttribute : PropertyAttribute, IWrapSetUpTearDown, ICommandWrapper { private int _milliseconds; public MaxTimeAttribute(int milliseconds) : base(milliseconds) { _milliseconds = milliseconds; } TestCommand ICommandWrapper.Wrap(TestCommand command) { return new MaxTimeCommand(command, _milliseconds); } } }