TechbloxModdingAPI/GamecraftModdingAPI/Tests/APITestAttributes.cs
2020-06-17 21:04:40 -04:00

45 lines
802 B
C#

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
{
}
}