diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs index 4cab32a..a82f9b1 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using NUnit.Framework; | 28 | using NUnit.Framework; |
29 | using NUnit.Framework.SyntaxHelpers; | ||
29 | using OpenMetaverse; | 30 | using OpenMetaverse; |
30 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
31 | using OpenSim.Region.Environment.Scenes; | 32 | using OpenSim.Region.Environment.Scenes; |
@@ -52,16 +53,18 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
52 | } | 53 | } |
53 | 54 | ||
54 | /// <summary> | 55 | /// <summary> |
55 | /// Test adding a root agent to a scene. Doesn't yet do what it says on the tin. | 56 | /// Test adding a root agent to a scene. Doesn't yet actually complete crossing the agent into the scene. |
56 | /// </summary> | 57 | /// </summary> |
57 | [Test] | 58 | [Test] |
58 | public void TestAddRootAgent() | 59 | public void TestAddRootAgent() |
59 | { | 60 | { |
60 | Scene scene = SceneTestUtils.SetupScene(); | 61 | Scene scene = SceneTestUtils.SetupScene(); |
62 | UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001"); | ||
63 | string firstName = "testfirstname"; | ||
61 | 64 | ||
62 | AgentCircuitData agent = new AgentCircuitData(); | 65 | AgentCircuitData agent = new AgentCircuitData(); |
63 | agent.AgentID = UUID.Zero; | 66 | agent.AgentID = agentId; |
64 | agent.firstname = "testfirstname"; | 67 | agent.firstname = firstName; |
65 | agent.lastname = "testlastname"; | 68 | agent.lastname = "testlastname"; |
66 | agent.SessionID = UUID.Zero; | 69 | agent.SessionID = UUID.Zero; |
67 | agent.SecureSessionID = UUID.Zero; | 70 | agent.SecureSessionID = UUID.Zero; |
@@ -72,8 +75,12 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
72 | agent.CapsPath = "http://wibble.com"; | 75 | agent.CapsPath = "http://wibble.com"; |
73 | 76 | ||
74 | scene.NewUserConnection(agent); | 77 | scene.NewUserConnection(agent); |
78 | scene.AddNewClient(new TestClient(agent), false); | ||
75 | 79 | ||
76 | // There are going to be more parts to this. | 80 | ScenePresence presence = scene.GetScenePresence(agentId); |
81 | |||
82 | Assert.That(presence, Is.Not.Null, "presence is null"); | ||
83 | Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same"); | ||
77 | } | 84 | } |
78 | } | 85 | } |
79 | } | 86 | } |