diff options
author | Justin Clark-Casey (justincc) | 2011-03-30 00:13:07 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-30 00:13:07 +0100 |
commit | 8b16f7d976dc60b06f6d08e9d9d853ae69de5fc9 (patch) | |
tree | 9cb7254d3731c28aca723a0c6745909319553c66 /OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | |
parent | Merge branch 'primcounts' (diff) | |
download | opensim-SC_OLD-8b16f7d976dc60b06f6d08e9d9d853ae69de5fc9.zip opensim-SC_OLD-8b16f7d976dc60b06f6d08e9d9d853ae69de5fc9.tar.gz opensim-SC_OLD-8b16f7d976dc60b06f6d08e9d9d853ae69de5fc9.tar.bz2 opensim-SC_OLD-8b16f7d976dc60b06f6d08e9d9d853ae69de5fc9.tar.xz |
(re)implement selected prim count.
This does not currently count objects that are sat upon (which the viewer ui implies should be included in this count)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs index 58bd841..5a60f22 100644 --- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs +++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | |||
@@ -79,6 +79,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
79 | Assert.That(pc.Group, Is.EqualTo(0)); | 79 | Assert.That(pc.Group, Is.EqualTo(0)); |
80 | Assert.That(pc.Others, Is.EqualTo(0)); | 80 | Assert.That(pc.Others, Is.EqualTo(0)); |
81 | Assert.That(pc.Total, Is.EqualTo(0)); | 81 | Assert.That(pc.Total, Is.EqualTo(0)); |
82 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
82 | Assert.That(pc.Users[m_userId], Is.EqualTo(0)); | 83 | Assert.That(pc.Users[m_userId], Is.EqualTo(0)); |
83 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 84 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
84 | Assert.That(pc.Simulator, Is.EqualTo(0)); | 85 | Assert.That(pc.Simulator, Is.EqualTo(0)); |
@@ -90,6 +91,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
90 | Assert.That(pc.Group, Is.EqualTo(0)); | 91 | Assert.That(pc.Group, Is.EqualTo(0)); |
91 | Assert.That(pc.Others, Is.EqualTo(0)); | 92 | Assert.That(pc.Others, Is.EqualTo(0)); |
92 | Assert.That(pc.Total, Is.EqualTo(3)); | 93 | Assert.That(pc.Total, Is.EqualTo(3)); |
94 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
93 | Assert.That(pc.Users[m_userId], Is.EqualTo(3)); | 95 | Assert.That(pc.Users[m_userId], Is.EqualTo(3)); |
94 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 96 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
95 | Assert.That(pc.Simulator, Is.EqualTo(3)); | 97 | Assert.That(pc.Simulator, Is.EqualTo(3)); |
@@ -102,6 +104,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
102 | Assert.That(pc.Group, Is.EqualTo(0)); | 104 | Assert.That(pc.Group, Is.EqualTo(0)); |
103 | Assert.That(pc.Others, Is.EqualTo(0)); | 105 | Assert.That(pc.Others, Is.EqualTo(0)); |
104 | Assert.That(pc.Total, Is.EqualTo(5)); | 106 | Assert.That(pc.Total, Is.EqualTo(5)); |
107 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
105 | Assert.That(pc.Users[m_userId], Is.EqualTo(5)); | 108 | Assert.That(pc.Users[m_userId], Is.EqualTo(5)); |
106 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 109 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
107 | Assert.That(pc.Simulator, Is.EqualTo(5)); | 110 | Assert.That(pc.Simulator, Is.EqualTo(5)); |
@@ -126,6 +129,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
126 | Assert.That(pc.Group, Is.EqualTo(0)); | 129 | Assert.That(pc.Group, Is.EqualTo(0)); |
127 | Assert.That(pc.Others, Is.EqualTo(0)); | 130 | Assert.That(pc.Others, Is.EqualTo(0)); |
128 | Assert.That(pc.Total, Is.EqualTo(6)); | 131 | Assert.That(pc.Total, Is.EqualTo(6)); |
132 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
129 | Assert.That(pc.Users[m_userId], Is.EqualTo(6)); | 133 | Assert.That(pc.Users[m_userId], Is.EqualTo(6)); |
130 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 134 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
131 | Assert.That(pc.Simulator, Is.EqualTo(6)); | 135 | Assert.That(pc.Simulator, Is.EqualTo(6)); |
@@ -151,6 +155,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
151 | Assert.That(pc.Group, Is.EqualTo(0)); | 155 | Assert.That(pc.Group, Is.EqualTo(0)); |
152 | Assert.That(pc.Others, Is.EqualTo(0)); | 156 | Assert.That(pc.Others, Is.EqualTo(0)); |
153 | Assert.That(pc.Total, Is.EqualTo(1)); | 157 | Assert.That(pc.Total, Is.EqualTo(1)); |
158 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
154 | Assert.That(pc.Users[m_userId], Is.EqualTo(1)); | 159 | Assert.That(pc.Users[m_userId], Is.EqualTo(1)); |
155 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 160 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
156 | Assert.That(pc.Simulator, Is.EqualTo(1)); | 161 | Assert.That(pc.Simulator, Is.EqualTo(1)); |
@@ -174,6 +179,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
174 | Assert.That(pc.Group, Is.EqualTo(0)); | 179 | Assert.That(pc.Group, Is.EqualTo(0)); |
175 | Assert.That(pc.Others, Is.EqualTo(0)); | 180 | Assert.That(pc.Others, Is.EqualTo(0)); |
176 | Assert.That(pc.Total, Is.EqualTo(3)); | 181 | Assert.That(pc.Total, Is.EqualTo(3)); |
182 | Assert.That(pc.Selected, Is.EqualTo(0)); | ||
177 | Assert.That(pc.Users[m_userId], Is.EqualTo(3)); | 183 | Assert.That(pc.Users[m_userId], Is.EqualTo(3)); |
178 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); | 184 | Assert.That(pc.Users[m_dummyUserId], Is.EqualTo(0)); |
179 | Assert.That(pc.Simulator, Is.EqualTo(3)); | 185 | Assert.That(pc.Simulator, Is.EqualTo(3)); |