* Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties.

This commit is contained in:
Kunnis
2009-08-16 03:35:31 -05:00
committed by Teravus Ovares (Dan Olivares)
parent 5dde4a4cfa
commit dd78c250ae
9 changed files with 229 additions and 224 deletions

View File

@@ -40,7 +40,6 @@ namespace OpenSim.Data.Tests
{
public class BasicEstateTest
{
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public IEstateDataStore db;
public IRegionDataStore regionDb;
@@ -57,14 +56,7 @@ namespace OpenSim.Data.Tests
public void SuperInit()
{
try
{
XmlConfigurator.Configure();
}
catch (Exception)
{
// I don't care, just leave log4net off
}
OpenSim.Tests.Common.TestLogging.LogToConsole();
}
#region 0Tests
@@ -168,7 +160,7 @@ namespace OpenSim.Data.Tests
// Letting estate store generate rows to database for us
EstateSettings originalSettings = db.LoadEstateSettings(REGION_ID);
ScrambleForTesting.Scramble(originalSettings);
new PropertyScrambler<EstateSettings>().Scramble(originalSettings);
// Saving settings.
db.StoreEstateSettings(originalSettings);