From de895ee54a14f21ee0609e6a3636a31407495aa3 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 14 Nov 2011 17:18:51 +0000 Subject: Add very simple FriendsModuleTests.TestNoFriends() --- OpenSim/Tests/Common/Mock/TestClient.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'OpenSim/Tests') diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 4636961..3ba9ed4 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs @@ -56,6 +56,10 @@ namespace OpenSim.Tests.Common.Mock private IScene m_scene; + // Properties so that we can get at received data for test purposes + public List OfflineNotificationsReceived { get; private set; } + public List OnlineNotificationsReceived { get; private set; } + // disable warning: public events, part of the public API #pragma warning disable 67 @@ -440,6 +444,9 @@ namespace OpenSim.Tests.Common.Mock m_circuitCode = agentData.circuitcode; m_scene = scene; CapsSeedUrl = agentData.CapsPath; + + OfflineNotificationsReceived = new List(); + OnlineNotificationsReceived = new List(); } /// @@ -827,12 +834,12 @@ namespace OpenSim.Tests.Common.Mock public void SendAgentOffline(UUID[] agentIDs) { - + OfflineNotificationsReceived.AddRange(agentIDs); } public void SendAgentOnline(UUID[] agentIDs) { - + OnlineNotificationsReceived.AddRange(agentIDs); } public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, -- cgit v1.1