From 9664273df6d74e33aacaf1d4a38a287e218009d4 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 25 Apr 2014 23:34:30 +0100 Subject: Add basic regression test for creating a var region --- OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/Tests') diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs index 5ace6a3..eae61cd 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs @@ -59,6 +59,21 @@ namespace OpenSim.Region.Framework.Scenes.Tests new SceneHelpers().SetupScene(); } + [Test] + public void TestCreateVarScene() + { + TestHelpers.InMethod(); + UUID regionUuid = TestHelpers.ParseTail(0x1); + uint sizeX = 512; + uint sizeY = 512; + + Scene scene + = new SceneHelpers().SetupScene("scene", regionUuid, 1000, 1000, sizeX, sizeY, new IniConfigSource()); + + Assert.AreEqual(sizeX, scene.RegionInfo.RegionSizeX); + Assert.AreEqual(sizeY, scene.RegionInfo.RegionSizeY); + } + /// /// Very basic scene update test. Should become more elaborate with time. /// -- cgit v1.1