From 97107961e0c92fc26ae70fc8d01b79014c894f38 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 29 Sep 2008 21:55:59 +0000 Subject: add a test for updating region settings and fix a bug in uuid translation in sqlite uncovered by this test. --- OpenSim/Data/Tests/BasicRegionTest.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'OpenSim/Data/Tests/BasicRegionTest.cs') 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 } [Test] + public void T101_UpdateRegionInfo() + { + bool blockfly = true; + double sunpos = 0.5; + UUID cov = UUID.Random(); + + RegionSettings r1 = db.LoadRegionSettings(region1); + r1.BlockFly = blockfly; + r1.SunPosition = sunpos; + r1.Covenant = cov; + db.StoreRegionSettings(r1); + + RegionSettings r2 = db.LoadRegionSettings(region1); + Assert.That(r2.RegionUUID, Is.EqualTo(region1)); + Assert.That(r2.SunPosition, Is.EqualTo(sunpos)); + Assert.That(r2.BlockFly, Is.EqualTo(blockfly)); + Assert.That(r2.Covenant, Is.EqualTo(cov)); + } + + [Test] public void T300_NoTerrain() { db.LoadTerrain(region1); -- cgit v1.1