diff options
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/DatabaseTestAttribute.cs | 17 | ||||
-rw-r--r-- | OpenSim/Tests/Common/LongRunningAttribute.cs | 22 |
2 files changed, 39 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/DatabaseTestAttribute.cs b/OpenSim/Tests/Common/DatabaseTestAttribute.cs new file mode 100644 index 0000000..9d21831 --- /dev/null +++ b/OpenSim/Tests/Common/DatabaseTestAttribute.cs | |||
@@ -0,0 +1,17 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using NUnit.Framework; | ||
5 | |||
6 | namespace OpenSim.Tests.Common | ||
7 | { | ||
8 | [AttributeUsage(AttributeTargets.All, | ||
9 | AllowMultiple=false, | ||
10 | Inherited=true)] | ||
11 | public class DatabaseTestAttribute : LongRunningAttribute | ||
12 | { | ||
13 | public DatabaseTestAttribute() : base("Database") | ||
14 | { | ||
15 | } | ||
16 | } | ||
17 | } \ No newline at end of file | ||
diff --git a/OpenSim/Tests/Common/LongRunningAttribute.cs b/OpenSim/Tests/Common/LongRunningAttribute.cs new file mode 100644 index 0000000..722217d --- /dev/null +++ b/OpenSim/Tests/Common/LongRunningAttribute.cs | |||
@@ -0,0 +1,22 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using NUnit.Framework; | ||
5 | |||
6 | namespace OpenSim.Tests.Common | ||
7 | { | ||
8 | [AttributeUsage(AttributeTargets.All, | ||
9 | AllowMultiple = false, | ||
10 | Inherited = true)] | ||
11 | public class LongRunningAttribute : CategoryAttribute | ||
12 | { | ||
13 | protected LongRunningAttribute() : this("Long Running Test") | ||
14 | { | ||
15 | |||
16 | } | ||
17 | |||
18 | protected LongRunningAttribute(string category) : base(category) | ||
19 | { | ||
20 | } | ||
21 | } | ||
22 | } | ||