TechbloxModdingAPI/GamecraftModdingAPI/Tests/APITestAttributes.cs

46 lines
802 B
C#
Raw Normal View History

2020-06-18 01:04:40 +00:00
using System;
namespace GamecraftModdingAPI.Tests
{
public enum TestType
{
Menu,
Game,
SimulationMode,
EditMode,
}
[AttributeUsage(AttributeTargets.Class)]
public class APITestClassAttribute : Attribute
{
internal string Name;
public APITestClassAttribute(string name = "")
{
this.Name = name;
}
}
[AttributeUsage(AttributeTargets.Method)]
public class APITestCaseAttribute : Attribute
{
internal TestType TestType;
public APITestCaseAttribute(TestType testType)
{
this.TestType = testType;
}
}
[AttributeUsage(AttributeTargets.Method)]
public class APITestStartUpAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method)]
public class APITestTearDownAttribute : Attribute
{
}
}