From 858d8416b4a35858553cf6b4bf5b07a949a5594b Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 19 Sep 2008 20:00:09 +0000 Subject: add a region settings test --- OpenSim/Data/Tests/BasicRegionTest.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Data/Tests') diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index 05e3827..535ac74 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -65,7 +65,10 @@ namespace OpenSim.Data.Tests public void T001_LoadEmpty() { List objs = db.LoadObjects(region1); + List land = db.LoadLandObjects(region1); + Assert.That(objs.Count, Is.EqualTo(0)); + Assert.That(land.Count, Is.EqualTo(0)); } // SOG round trips @@ -130,6 +133,16 @@ namespace OpenSim.Data.Tests } [Test] + public void T100_DefaultRegionInfo() + { + RegionSettings r1 = db.LoadRegionSettings(region1); + Assert.That(r1.RegionUUID, Is.EqualTo(region1)); + + RegionSettings r2 = db.LoadRegionSettings(region2); + Assert.That(r2.RegionUUID, Is.EqualTo(region2)); + } + + [Test] public void T300_NoTerrain() { double[,] t1 = db.LoadTerrain(region1); -- cgit v1.1