40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
namespace Prefab.Tests;
|
|
|
|
/// <summary>
|
|
/// Available trait names that can be used for Xunit's [Trait] attribute.
|
|
/// </summary>
|
|
public class TraitName
|
|
{
|
|
/// <summary>
|
|
/// Used to give a test a type of category, usually Unit, or Integration. See <see cref="TraitCategory"/>.
|
|
/// </summary>
|
|
public const string Category = nameof(Category);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Available category values that can be used when specifying a test with a category trait.
|
|
/// </summary>
|
|
public class TraitCategory
|
|
{
|
|
/// <summary>
|
|
/// Indicates that the type of test is a unit test.
|
|
/// </summary>
|
|
public const string Unit = nameof(Unit);
|
|
|
|
/// <summary>
|
|
/// Indicates that the type of test is an integration test.
|
|
/// </summary>
|
|
public const string Integration = nameof(Integration);
|
|
|
|
/// <summary>
|
|
/// Indicates that the type of test is a workflow test.
|
|
/// </summary>
|
|
public const string Workflow = nameof(Workflow);
|
|
|
|
/// <summary>
|
|
/// Indicates that the type of test is an end-to-end test.
|
|
/// </summary>
|
|
public const string E2E = nameof(E2E);
|
|
public const string EndToEnd = nameof(EndToEnd);
|
|
}
|