<PackageReference Include="NUnit" Version="3.0.0-alpha-4" />

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, ICommandDecorator { private int _milliseconds; public MaxTimeAttribute(int milliseconds) : base(milliseconds) { _milliseconds = milliseconds; } TestCommand ICommandDecorator.Decorate(TestCommand command) { return new MaxTimeCommand(command, _milliseconds); } } }