diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs index 9fcd478..443201a 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs | |||
@@ -25,11 +25,12 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using Nini.Config; | ||
29 | using System; | 28 | using System; |
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
31 | using System.Text; | 31 | using System.Text; |
32 | using System.Threading; | 32 | using System.Threading; |
33 | using Nini.Config; | ||
33 | using NUnit.Framework; | 34 | using NUnit.Framework; |
34 | using NUnit.Framework.SyntaxHelpers; | 35 | using NUnit.Framework.SyntaxHelpers; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
@@ -96,6 +97,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
96 | [Test] | 97 | [Test] |
97 | public void T010_TestAddRootAgent() | 98 | public void T010_TestAddRootAgent() |
98 | { | 99 | { |
100 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
101 | |||
99 | string firstName = "testfirstname"; | 102 | string firstName = "testfirstname"; |
100 | 103 | ||
101 | AgentCircuitData agent = new AgentCircuitData(); | 104 | AgentCircuitData agent = new AgentCircuitData(); |
@@ -127,6 +130,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
127 | [Test] | 130 | [Test] |
128 | public void T011_TestRemoveRootAgent() | 131 | public void T011_TestRemoveRootAgent() |
129 | { | 132 | { |
133 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
134 | |||
130 | scene.RemoveClient(agent1); | 135 | scene.RemoveClient(agent1); |
131 | 136 | ||
132 | ScenePresence presence = scene.GetScenePresence(agent1); | 137 | ScenePresence presence = scene.GetScenePresence(agent1); |
@@ -137,6 +142,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
137 | [Test] | 142 | [Test] |
138 | public void T012_TestAddNeighbourRegion() | 143 | public void T012_TestAddNeighbourRegion() |
139 | { | 144 | { |
145 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
146 | |||
140 | scene.NewUserConnection(acd1); | 147 | scene.NewUserConnection(acd1); |
141 | scene.AddNewClient(testclient); | 148 | scene.AddNewClient(testclient); |
142 | 149 | ||
@@ -156,6 +163,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
156 | [Test] | 163 | [Test] |
157 | public void T013_TestRemoveNeighbourRegion() | 164 | public void T013_TestRemoveNeighbourRegion() |
158 | { | 165 | { |
166 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
167 | |||
159 | ScenePresence presence = scene.GetScenePresence(agent1); | 168 | ScenePresence presence = scene.GetScenePresence(agent1); |
160 | presence.RemoveNeighbourRegion(region3); | 169 | presence.RemoveNeighbourRegion(region3); |
161 | 170 | ||
@@ -171,6 +180,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
171 | [Test] | 180 | [Test] |
172 | public void T020_TestMakeRootAgent() | 181 | public void T020_TestMakeRootAgent() |
173 | { | 182 | { |
183 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
184 | |||
174 | ScenePresence presence = scene.GetScenePresence(agent1); | 185 | ScenePresence presence = scene.GetScenePresence(agent1); |
175 | Assert.That(presence.IsChildAgent, Is.False, "Starts out as a root agent"); | 186 | Assert.That(presence.IsChildAgent, Is.False, "Starts out as a root agent"); |
176 | 187 | ||
@@ -187,6 +198,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
187 | [Test] | 198 | [Test] |
188 | public void T021_TestCrossToNewRegion() | 199 | public void T021_TestCrossToNewRegion() |
189 | { | 200 | { |
201 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
202 | |||
190 | // Adding child agent to region 1001 | 203 | // Adding child agent to region 1001 |
191 | scene2.NewUserConnection(acd1); | 204 | scene2.NewUserConnection(acd1); |
192 | scene2.AddNewClient(testclient); | 205 | scene2.AddNewClient(testclient); |
@@ -240,6 +253,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
240 | [Test] | 253 | [Test] |
241 | public void T030_TestAddAttachments() | 254 | public void T030_TestAddAttachments() |
242 | { | 255 | { |
256 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
257 | |||
243 | ScenePresence presence = scene.GetScenePresence(agent1); | 258 | ScenePresence presence = scene.GetScenePresence(agent1); |
244 | 259 | ||
245 | presence.AddAttachment(sog1); | 260 | presence.AddAttachment(sog1); |
@@ -253,6 +268,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
253 | [Test] | 268 | [Test] |
254 | public void T031_RemoveAttachments() | 269 | public void T031_RemoveAttachments() |
255 | { | 270 | { |
271 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
272 | |||
256 | ScenePresence presence = scene.GetScenePresence(agent1); | 273 | ScenePresence presence = scene.GetScenePresence(agent1); |
257 | presence.RemoveAttachment(sog1); | 274 | presence.RemoveAttachment(sog1); |
258 | presence.RemoveAttachment(sog2); | 275 | presence.RemoveAttachment(sog2); |
@@ -263,6 +280,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
263 | [Test] | 280 | [Test] |
264 | public void T032_CrossAttachments() | 281 | public void T032_CrossAttachments() |
265 | { | 282 | { |
283 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
284 | |||
266 | ScenePresence presence = scene.GetScenePresence(agent1); | 285 | ScenePresence presence = scene.GetScenePresence(agent1); |
267 | ScenePresence presence2 = scene2.GetScenePresence(agent1); | 286 | ScenePresence presence2 = scene2.GetScenePresence(agent1); |
268 | presence2.AddAttachment(sog1); | 287 | presence2.AddAttachment(sog1); |
@@ -281,6 +300,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
281 | 300 | ||
282 | public static string GetRandomCapsObjectPath() | 301 | public static string GetRandomCapsObjectPath() |
283 | { | 302 | { |
303 | Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod()); | ||
304 | |||
284 | UUID caps = UUID.Random(); | 305 | UUID caps = UUID.Random(); |
285 | string capsPath = caps.ToString(); | 306 | string capsPath = caps.ToString(); |
286 | capsPath = capsPath.Remove(capsPath.Length - 4, 4); | 307 | capsPath = capsPath.Remove(capsPath.Length - 4, 4); |