35 lines
810 B
C#
35 lines
810 B
C#
using System;
|
|
|
|
namespace bts.test {
|
|
|
|
public enum TestType {
|
|
Unit, System, Shell
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class TestGroupAttribute : Attribute {
|
|
public TestGroupAttribute() {
|
|
this.TestType = TestType.Unit;
|
|
}
|
|
public TestType TestType;
|
|
public string ConfigPath;
|
|
|
|
}
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class TestAttribute : Attribute {
|
|
public uint Timeout = 10; //timeout in seconds
|
|
}
|
|
|
|
// Use constructor for setup
|
|
// use IDisposable for shutdown
|
|
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
public class IgnoreAttribute : Attribute {
|
|
public IgnoreAttribute(string reason) {
|
|
Reason = reason;
|
|
}
|
|
public string Reason { get; }
|
|
}
|
|
|
|
|
|
} |