aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-04-25 23:34:30 +0100
committerJustin Clark-Casey (justincc)2014-04-25 23:34:30 +0100
commit9664273df6d74e33aacaf1d4a38a287e218009d4 (patch)
tree034adc453327ed80274d9d5ebbab8d95055b54a5 /OpenSim/Region
parentAdd basic sanity regression test for creating a scene. (diff)
downloadopensim-SC_OLD-9664273df6d74e33aacaf1d4a38a287e218009d4.zip
opensim-SC_OLD-9664273df6d74e33aacaf1d4a38a287e218009d4.tar.gz
opensim-SC_OLD-9664273df6d74e33aacaf1d4a38a287e218009d4.tar.bz2
opensim-SC_OLD-9664273df6d74e33aacaf1d4a38a287e218009d4.tar.xz
Add basic regression test for creating a var region
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs15
1 files changed, 15 insertions, 0 deletions
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
59 new SceneHelpers().SetupScene(); 59 new SceneHelpers().SetupScene();
60 } 60 }
61 61
62 [Test]
63 public void TestCreateVarScene()
64 {
65 TestHelpers.InMethod();
66 UUID regionUuid = TestHelpers.ParseTail(0x1);
67 uint sizeX = 512;
68 uint sizeY = 512;
69
70 Scene scene
71 = new SceneHelpers().SetupScene("scene", regionUuid, 1000, 1000, sizeX, sizeY, new IniConfigSource());
72
73 Assert.AreEqual(sizeX, scene.RegionInfo.RegionSizeX);
74 Assert.AreEqual(sizeY, scene.RegionInfo.RegionSizeY);
75 }
76
62 /// <summary> 77 /// <summary>
63 /// Very basic scene update test. Should become more elaborate with time. 78 /// Very basic scene update test. Should become more elaborate with time.
64 /// </summary> 79 /// </summary>