diff options
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r-- | OpenSim/Data/Tests/BasicRegionTest.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index f9c5565..9c3b651 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs | |||
@@ -143,6 +143,26 @@ namespace OpenSim.Data.Tests | |||
143 | } | 143 | } |
144 | 144 | ||
145 | [Test] | 145 | [Test] |
146 | public void T101_UpdateRegionInfo() | ||
147 | { | ||
148 | bool blockfly = true; | ||
149 | double sunpos = 0.5; | ||
150 | UUID cov = UUID.Random(); | ||
151 | |||
152 | RegionSettings r1 = db.LoadRegionSettings(region1); | ||
153 | r1.BlockFly = blockfly; | ||
154 | r1.SunPosition = sunpos; | ||
155 | r1.Covenant = cov; | ||
156 | db.StoreRegionSettings(r1); | ||
157 | |||
158 | RegionSettings r2 = db.LoadRegionSettings(region1); | ||
159 | Assert.That(r2.RegionUUID, Is.EqualTo(region1)); | ||
160 | Assert.That(r2.SunPosition, Is.EqualTo(sunpos)); | ||
161 | Assert.That(r2.BlockFly, Is.EqualTo(blockfly)); | ||
162 | Assert.That(r2.Covenant, Is.EqualTo(cov)); | ||
163 | } | ||
164 | |||
165 | [Test] | ||
146 | public void T300_NoTerrain() | 166 | public void T300_NoTerrain() |
147 | { | 167 | { |
148 | db.LoadTerrain(region1); | 168 | db.LoadTerrain(region1); |