| | | 1 | | // ReSharper disable once CheckNamespace |
| | | 2 | | namespace NUnit.Framework; |
| | | 3 | | |
| | | 4 | | /// <summary>Severity levels for <see cref="TestSeverityAttribute"/>.</summary> |
| | | 5 | | /// <param name="severityLevel">The level this instance prints from <see cref="ToString"/>.</param> |
| | 4 | 6 | | public sealed class TestSeverity( string severityLevel ) |
| | | 7 | | { |
| | | 8 | | /// <summary>A failure blocks a release.</summary> |
| | | 9 | | public const string Critical = nameof(Critical); |
| | | 10 | | |
| | | 11 | | /// <summary>A failure breaks a main feature.</summary> |
| | | 12 | | public const string High = nameof(High); |
| | | 13 | | |
| | | 14 | | /// <summary>A failure is cosmetic or rare.</summary> |
| | | 15 | | public const string Low = nameof(Low); |
| | | 16 | | |
| | | 17 | | /// <summary>A failure breaks a secondary feature.</summary> |
| | | 18 | | public const string Medium = nameof(Medium); |
| | | 19 | | |
| | | 20 | | /// <summary>Returns the severity level.</summary> |
| | | 21 | | /// <returns>The level passed to the constructor.</returns> |
| | 4 | 22 | | public override string ToString() => severityLevel; |
| | | 23 | | } |