diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/DatabaseTestAttribute.cs (renamed from OpenSim/Data/Tests/DatabaseTestAttribute.cs) | 12 | ||||
-rw-r--r-- | OpenSim/Tests/Common/LongRunningAttribute.cs | 22 |
2 files changed, 28 insertions, 6 deletions
diff --git a/OpenSim/Data/Tests/DatabaseTestAttribute.cs b/OpenSim/Tests/Common/DatabaseTestAttribute.cs index b500f40..9d21831 100644 --- a/OpenSim/Data/Tests/DatabaseTestAttribute.cs +++ b/OpenSim/Tests/Common/DatabaseTestAttribute.cs | |||
@@ -3,15 +3,15 @@ using System.Collections.Generic; | |||
3 | using System.Text; | 3 | using System.Text; |
4 | using NUnit.Framework; | 4 | using NUnit.Framework; |
5 | 5 | ||
6 | namespace OpenSim.Data.Tests | 6 | namespace OpenSim.Tests.Common |
7 | { | 7 | { |
8 | [AttributeUsage(AttributeTargets.All, | 8 | [AttributeUsage(AttributeTargets.All, |
9 | AllowMultiple=false, | 9 | AllowMultiple=false, |
10 | Inherited=true)] | 10 | Inherited=true)] |
11 | public class DatabaseTestAttribute : CategoryAttribute | 11 | public class DatabaseTestAttribute : LongRunningAttribute |
12 | { | 12 | { |
13 | public DatabaseTestAttribute() : base("Database") | 13 | public DatabaseTestAttribute() : base("Database") |
14 | { | 14 | { |
15 | } | 15 | } |
16 | } | 16 | } |
17 | } | 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 | } | ||