diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/Tests/AssetTests.cs | 18 | ||||
-rw-r--r-- | OpenSim/Data/Tests/EstateTests.cs | 15 | ||||
-rw-r--r-- | OpenSim/Data/Tests/InventoryTests.cs | 12 | ||||
-rw-r--r-- | OpenSim/Data/Tests/PropertyCompareConstraint.cs | 1 | ||||
-rw-r--r-- | OpenSim/Data/Tests/PropertyScrambler.cs | 2 | ||||
-rw-r--r-- | OpenSim/Data/Tests/RegionTests.cs | 11 |
6 files changed, 2 insertions, 57 deletions
diff --git a/OpenSim/Data/Tests/AssetTests.cs b/OpenSim/Data/Tests/AssetTests.cs index 800b9bf..32f74a9 100644 --- a/OpenSim/Data/Tests/AssetTests.cs +++ b/OpenSim/Data/Tests/AssetTests.cs | |||
@@ -35,10 +35,6 @@ using OpenSim.Framework; | |||
35 | using System.Data.Common; | 35 | using System.Data.Common; |
36 | using log4net; | 36 | using log4net; |
37 | 37 | ||
38 | #if !NUNIT25 | ||
39 | using NUnit.Framework.SyntaxHelpers; | ||
40 | #endif | ||
41 | |||
42 | // DBMS-specific: | 38 | // DBMS-specific: |
43 | using MySql.Data.MySqlClient; | 39 | using MySql.Data.MySqlClient; |
44 | using OpenSim.Data.MySQL; | 40 | using OpenSim.Data.MySQL; |
@@ -51,15 +47,6 @@ using OpenSim.Data.SQLite; | |||
51 | 47 | ||
52 | namespace OpenSim.Data.Tests | 48 | namespace OpenSim.Data.Tests |
53 | { | 49 | { |
54 | |||
55 | #if NUNIT25 | ||
56 | |||
57 | [TestFixture(typeof(MySqlConnection), typeof(MySQLAssetData), Description="Basic Asset store tests (MySQL)")] | ||
58 | [TestFixture(typeof(SqlConnection), typeof(MSSQLAssetData), Description = "Basic Asset store tests (MS SQL Server)")] | ||
59 | [TestFixture(typeof(SqliteConnection), typeof(SQLiteAssetData), Description = "Basic Asset store tests (SQLite)")] | ||
60 | |||
61 | #else | ||
62 | |||
63 | [TestFixture(Description = "Asset store tests (SQLite)")] | 50 | [TestFixture(Description = "Asset store tests (SQLite)")] |
64 | public class SQLiteAssetTests : AssetTests<SqliteConnection, SQLiteAssetData> | 51 | public class SQLiteAssetTests : AssetTests<SqliteConnection, SQLiteAssetData> |
65 | { | 52 | { |
@@ -75,9 +62,6 @@ namespace OpenSim.Data.Tests | |||
75 | { | 62 | { |
76 | } | 63 | } |
77 | 64 | ||
78 | #endif | ||
79 | |||
80 | |||
81 | public class AssetTests<TConn, TAssetData> : BasicDataServiceTest<TConn, TAssetData> | 65 | public class AssetTests<TConn, TAssetData> : BasicDataServiceTest<TConn, TAssetData> |
82 | where TConn : DbConnection, new() | 66 | where TConn : DbConnection, new() |
83 | where TAssetData : AssetDataBase, new() | 67 | where TAssetData : AssetDataBase, new() |
@@ -218,4 +202,4 @@ namespace OpenSim.Data.Tests | |||
218 | Assert.That(a3a, Constraints.PropertyCompareConstraint(a3)); | 202 | Assert.That(a3a, Constraints.PropertyCompareConstraint(a3)); |
219 | } | 203 | } |
220 | } | 204 | } |
221 | } | 205 | } \ No newline at end of file |
diff --git a/OpenSim/Data/Tests/EstateTests.cs b/OpenSim/Data/Tests/EstateTests.cs index fbf8ba6..3354e28 100644 --- a/OpenSim/Data/Tests/EstateTests.cs +++ b/OpenSim/Data/Tests/EstateTests.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using System; | 28 | using System; |
29 | using log4net.Config; | 29 | using log4net.Config; |
30 | using NUnit.Framework; | 30 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | ||
32 | using OpenMetaverse; | 31 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
34 | using OpenSim.Region.Framework.Interfaces; | 33 | using OpenSim.Region.Framework.Interfaces; |
@@ -49,15 +48,6 @@ using OpenSim.Data.SQLite; | |||
49 | 48 | ||
50 | namespace OpenSim.Data.Tests | 49 | namespace OpenSim.Data.Tests |
51 | { | 50 | { |
52 | |||
53 | #if NUNIT25 | ||
54 | |||
55 | [TestFixture(typeof(MySqlConnection), typeof(MySQLEstateStore), Description = "Estate store tests (MySQL)")] | ||
56 | [TestFixture(typeof(SqlConnection), typeof(MSSQLEstateStore), Description = "Estate store tests (MS SQL Server)")] | ||
57 | [TestFixture(typeof(SqliteConnection), typeof(SQLiteEstateStore), Description = "Estate store tests (SQLite)")] | ||
58 | |||
59 | #else | ||
60 | |||
61 | [TestFixture(Description = "Estate store tests (SQLite)")] | 51 | [TestFixture(Description = "Estate store tests (SQLite)")] |
62 | public class SQLiteEstateTests : EstateTests<SqliteConnection, SQLiteEstateStore> | 52 | public class SQLiteEstateTests : EstateTests<SqliteConnection, SQLiteEstateStore> |
63 | { | 53 | { |
@@ -73,8 +63,6 @@ namespace OpenSim.Data.Tests | |||
73 | { | 63 | { |
74 | } | 64 | } |
75 | 65 | ||
76 | #endif | ||
77 | |||
78 | public class EstateTests<TConn, TEstateStore> : BasicDataServiceTest<TConn, TEstateStore> | 66 | public class EstateTests<TConn, TEstateStore> : BasicDataServiceTest<TConn, TEstateStore> |
79 | where TConn : DbConnection, new() | 67 | where TConn : DbConnection, new() |
80 | where TEstateStore : class, IEstateDataStore, new() | 68 | where TEstateStore : class, IEstateDataStore, new() |
@@ -520,6 +508,5 @@ namespace OpenSim.Data.Tests | |||
520 | } | 508 | } |
521 | 509 | ||
522 | #endregion | 510 | #endregion |
523 | |||
524 | } | 511 | } |
525 | } | 512 | } \ No newline at end of file |
diff --git a/OpenSim/Data/Tests/InventoryTests.cs b/OpenSim/Data/Tests/InventoryTests.cs index 9c2a2d6..758f970 100644 --- a/OpenSim/Data/Tests/InventoryTests.cs +++ b/OpenSim/Data/Tests/InventoryTests.cs | |||
@@ -25,12 +25,9 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | // #define NUNIT25 | ||
29 | |||
30 | using System; | 28 | using System; |
31 | using log4net.Config; | 29 | using log4net.Config; |
32 | using NUnit.Framework; | 30 | using NUnit.Framework; |
33 | using NUnit.Framework.SyntaxHelpers; | ||
34 | using OpenMetaverse; | 31 | using OpenMetaverse; |
35 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
36 | using log4net; | 33 | using log4net; |
@@ -49,14 +46,6 @@ using OpenSim.Data.SQLite; | |||
49 | 46 | ||
50 | namespace OpenSim.Data.Tests | 47 | namespace OpenSim.Data.Tests |
51 | { | 48 | { |
52 | #if NUNIT25 | ||
53 | |||
54 | [TestFixture(typeof(SqliteConnection), typeof(SQLiteInventoryStore), Description = "Inventory store tests (SQLite)")] | ||
55 | [TestFixture(typeof(MySqlConnection), typeof(MySQLInventoryData), Description = "Inventory store tests (MySQL)")] | ||
56 | [TestFixture(typeof(SqlConnection), typeof(MSSQLInventoryData), Description = "Inventory store tests (MS SQL Server)")] | ||
57 | |||
58 | #else | ||
59 | |||
60 | [TestFixture(Description = "Inventory store tests (SQLite)")] | 49 | [TestFixture(Description = "Inventory store tests (SQLite)")] |
61 | public class SQLiteInventoryTests : InventoryTests<SqliteConnection, SQLiteInventoryStore> | 50 | public class SQLiteInventoryTests : InventoryTests<SqliteConnection, SQLiteInventoryStore> |
62 | { | 51 | { |
@@ -71,7 +60,6 @@ namespace OpenSim.Data.Tests | |||
71 | public class MSSQLInventoryTests : InventoryTests<SqlConnection, MSSQLInventoryData> | 60 | public class MSSQLInventoryTests : InventoryTests<SqlConnection, MSSQLInventoryData> |
72 | { | 61 | { |
73 | } | 62 | } |
74 | #endif | ||
75 | 63 | ||
76 | public class InventoryTests<TConn, TInvStore> : BasicDataServiceTest<TConn, TInvStore> | 64 | public class InventoryTests<TConn, TInvStore> : BasicDataServiceTest<TConn, TInvStore> |
77 | where TConn : DbConnection, new() | 65 | where TConn : DbConnection, new() |
diff --git a/OpenSim/Data/Tests/PropertyCompareConstraint.cs b/OpenSim/Data/Tests/PropertyCompareConstraint.cs index f3d41df..6c79bda 100644 --- a/OpenSim/Data/Tests/PropertyCompareConstraint.cs +++ b/OpenSim/Data/Tests/PropertyCompareConstraint.cs | |||
@@ -34,7 +34,6 @@ using System.Linq.Expressions; | |||
34 | using System.Reflection; | 34 | using System.Reflection; |
35 | using NUnit.Framework; | 35 | using NUnit.Framework; |
36 | using NUnit.Framework.Constraints; | 36 | using NUnit.Framework.Constraints; |
37 | using NUnit.Framework.SyntaxHelpers; | ||
38 | using OpenMetaverse; | 37 | using OpenMetaverse; |
39 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
40 | 39 | ||
diff --git a/OpenSim/Data/Tests/PropertyScrambler.cs b/OpenSim/Data/Tests/PropertyScrambler.cs index 132294a..c5d40c2 100644 --- a/OpenSim/Data/Tests/PropertyScrambler.cs +++ b/OpenSim/Data/Tests/PropertyScrambler.cs | |||
@@ -32,13 +32,11 @@ using System.Linq.Expressions; | |||
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Text; | 33 | using System.Text; |
34 | using NUnit.Framework; | 34 | using NUnit.Framework; |
35 | using NUnit.Framework.SyntaxHelpers; | ||
36 | using OpenMetaverse; | 35 | using OpenMetaverse; |
37 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
38 | 37 | ||
39 | namespace OpenSim.Data.Tests | 38 | namespace OpenSim.Data.Tests |
40 | { | 39 | { |
41 | |||
42 | //This is generic so that the lambda expressions will work right in IDEs. | 40 | //This is generic so that the lambda expressions will work right in IDEs. |
43 | public class PropertyScrambler<T> | 41 | public class PropertyScrambler<T> |
44 | { | 42 | { |
diff --git a/OpenSim/Data/Tests/RegionTests.cs b/OpenSim/Data/Tests/RegionTests.cs index 23d498d..9598716 100644 --- a/OpenSim/Data/Tests/RegionTests.cs +++ b/OpenSim/Data/Tests/RegionTests.cs | |||
@@ -31,7 +31,6 @@ using System.Drawing; | |||
31 | using System.Text; | 31 | using System.Text; |
32 | using log4net.Config; | 32 | using log4net.Config; |
33 | using NUnit.Framework; | 33 | using NUnit.Framework; |
34 | using NUnit.Framework.SyntaxHelpers; | ||
35 | using OpenMetaverse; | 34 | using OpenMetaverse; |
36 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
37 | using OpenSim.Region.Framework.Interfaces; | 36 | using OpenSim.Region.Framework.Interfaces; |
@@ -52,14 +51,6 @@ using OpenSim.Data.SQLite; | |||
52 | 51 | ||
53 | namespace OpenSim.Data.Tests | 52 | namespace OpenSim.Data.Tests |
54 | { | 53 | { |
55 | #if NUNIT25 | ||
56 | |||
57 | [TestFixture(typeof(SqliteConnection), typeof(SQLiteRegionData), Description = "Region store tests (SQLite)")] | ||
58 | [TestFixture(typeof(MySqlConnection), typeof(MySqlRegionData), Description = "Region store tests (MySQL)")] | ||
59 | [TestFixture(typeof(SqlConnection), typeof(MSSQLRegionData), Description = "Region store tests (MS SQL Server)")] | ||
60 | |||
61 | #else | ||
62 | |||
63 | [TestFixture(Description = "Region store tests (SQLite)")] | 54 | [TestFixture(Description = "Region store tests (SQLite)")] |
64 | public class SQLiteRegionTests : RegionTests<SqliteConnection, SQLiteSimulationData> | 55 | public class SQLiteRegionTests : RegionTests<SqliteConnection, SQLiteSimulationData> |
65 | { | 56 | { |
@@ -75,8 +66,6 @@ namespace OpenSim.Data.Tests | |||
75 | { | 66 | { |
76 | } | 67 | } |
77 | 68 | ||
78 | #endif | ||
79 | |||
80 | public class RegionTests<TConn, TRegStore> : BasicDataServiceTest<TConn, TRegStore> | 69 | public class RegionTests<TConn, TRegStore> : BasicDataServiceTest<TConn, TRegStore> |
81 | where TConn : DbConnection, new() | 70 | where TConn : DbConnection, new() |
82 | where TRegStore : class, ISimulationDataStore, new() | 71 | where TRegStore : class, ISimulationDataStore, new() |