From 9d7a9d346141fda6c300844a6e397826a3ca5730 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 1 Oct 2008 21:10:08 +0000 Subject: [PATCH] stick a TODO in here about land tests, which really can't be done in the current state as the Land Object has all these live references back to Scene. --- OpenSim/Data/Tests/BasicRegionTest.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index 6cdedd6f7e..6fd0191ecf 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -33,6 +33,7 @@ using OpenSim.Framework; using OpenSim.Data; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; +using OpenSim.Region.Environment.Modules.World.Land; using OpenMetaverse; namespace OpenSim.Data.Tests @@ -304,8 +305,13 @@ namespace OpenSim.Data.Tests Assert.That(db.LoadLandObjects(region2).Count, Is.EqualTo(0)); Assert.That(db.LoadLandObjects(UUID.Random()).Count, Is.EqualTo(0)); } - + // TODO: we should have real land tests, but Land is so + // intermingled with scene that you can't test it without a + // valid scene. That requires some disagregation. + + + //************************************************************************************// // Extra private methods private double[,] GenTerrain(double value)