aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/BasicEstateTest.cs
diff options
context:
space:
mode:
authorKunnis2009-08-09 02:01:21 -0500
committerTeravus Ovares (Dan Olivares)2009-08-16 13:35:44 -0400
commit23d478f2fa06d1dedabfb24cf6ff763b586173ce (patch)
tree072fdcfe343d84cf01b0881045fc96fb8403c324 /OpenSim/Data/Tests/BasicEstateTest.cs
parentAdd copyright header. Formatting cleanup. (diff)
downloadopensim-SC_OLD-23d478f2fa06d1dedabfb24cf6ff763b586173ce.zip
opensim-SC_OLD-23d478f2fa06d1dedabfb24cf6ff763b586173ce.tar.gz
opensim-SC_OLD-23d478f2fa06d1dedabfb24cf6ff763b586173ce.tar.bz2
opensim-SC_OLD-23d478f2fa06d1dedabfb24cf6ff763b586173ce.tar.xz
Adding in Reflection-based testing, to ensure that all properties are covered.
Diffstat (limited to 'OpenSim/Data/Tests/BasicEstateTest.cs')
-rw-r--r--OpenSim/Data/Tests/BasicEstateTest.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/BasicEstateTest.cs b/OpenSim/Data/Tests/BasicEstateTest.cs
index a0266b3..b702e2a 100644
--- a/OpenSim/Data/Tests/BasicEstateTest.cs
+++ b/OpenSim/Data/Tests/BasicEstateTest.cs
@@ -163,6 +163,24 @@ namespace OpenSim.Data.Tests
163 } 163 }
164 164
165 [Test] 165 [Test]
166 private void T012_EstateSettingsRandomStorage()
167 {
168
169 // Letting estate store generate rows to database for us
170 EstateSettings originalSettings = db.LoadEstateSettings(REGION_ID);
171 ScrambleForTesting.Scramble(originalSettings);
172
173 // Saving settings.
174 db.StoreEstateSettings(originalSettings);
175
176 // Loading settings to another instance variable.
177 EstateSettings loadedSettings = db.LoadEstateSettings(REGION_ID);
178
179 // Checking that loaded values are correct.
180 Assert.That(loadedSettings, Constraints.PropertyCompareConstraint(originalSettings));
181 }
182
183 [Test]
166 public void T020_EstateSettingsManagerList() 184 public void T020_EstateSettingsManagerList()
167 { 185 {
168 // Letting estate store generate rows to database for us 186 // Letting estate store generate rows to database for us