27 lines
815 B
C#
27 lines
815 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Tests.CoreTests.Attributes
|
|
{
|
|
/// <summary>
|
|
/// <para>Indicates relative priority of tests for execution. Tests with the same
|
|
/// priority are run in alphabetical order. </para>
|
|
///
|
|
/// <para>Tests with no priority attribute
|
|
/// are assigned a priority of <see cref="int.MaxValue"/>,
|
|
/// unless the class has a <see cref="DefaultPriorityAttribute"/>.</para>
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
|
public class PriorityAttribute : Attribute
|
|
{
|
|
public PriorityAttribute(int priority)
|
|
{
|
|
Priority = priority;
|
|
}
|
|
|
|
public int Priority { get; private set; }
|
|
}
|
|
} |