45 lines
802 B
C#
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
|
|
{
|
|
|
|
}
|
|
}
|