mirror of
https://github.com/opensim/opensim.git
synced 2026-05-19 14:35:44 +08:00
Adding in Reflection-based testing, to ensure that all properties are covered.
This commit is contained in:
committed by
Teravus Ovares (Dan Olivares)
parent
58d2775ff2
commit
23d478f2fa
@@ -53,6 +53,7 @@ namespace OpenSim.Data.MySQL.Tests
|
||||
try
|
||||
{
|
||||
database = new MySQLManager(connect);
|
||||
DropTables();
|
||||
db = new MySQLInventoryData();
|
||||
db.Initialise(connect);
|
||||
}
|
||||
@@ -72,10 +73,15 @@ namespace OpenSim.Data.MySQL.Tests
|
||||
}
|
||||
if (database != null)
|
||||
{
|
||||
database.ExecuteSql("drop table inventoryitems");
|
||||
database.ExecuteSql("drop table inventoryfolders");
|
||||
database.ExecuteSql("drop table migrations");
|
||||
DropTables();
|
||||
}
|
||||
}
|
||||
|
||||
private void DropTables()
|
||||
{
|
||||
database.ExecuteSql("drop table IF EXISTS inventoryitems");
|
||||
database.ExecuteSql("drop table IF EXISTS inventoryfolders");
|
||||
database.ExecuteSql("drop table IF EXISTS migrations");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user