From 89632f3ea8c355e5e860eb787aa21f90e79762d8 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 14 Nov 2011 20:56:56 +0000 Subject: Add test for removing a friendship. --- OpenSim/Tests/Common/Mock/TestClient.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'OpenSim/Tests') diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 3ba9ed4..b83ef9b 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs @@ -57,8 +57,9 @@ 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; } + public List ReceivedOfflineNotifications { get; private set; } + public List ReceivedOnlineNotifications { get; private set; } + public List ReceivedFriendshipTerminations { get; private set; } // disable warning: public events, part of the public API #pragma warning disable 67 @@ -445,8 +446,9 @@ namespace OpenSim.Tests.Common.Mock m_scene = scene; CapsSeedUrl = agentData.CapsPath; - OfflineNotificationsReceived = new List(); - OnlineNotificationsReceived = new List(); + ReceivedOfflineNotifications = new List(); + ReceivedOnlineNotifications = new List(); + ReceivedFriendshipTerminations = new List(); } /// @@ -834,12 +836,12 @@ namespace OpenSim.Tests.Common.Mock public void SendAgentOffline(UUID[] agentIDs) { - OfflineNotificationsReceived.AddRange(agentIDs); + ReceivedOfflineNotifications.AddRange(agentIDs); } public void SendAgentOnline(UUID[] agentIDs) { - OnlineNotificationsReceived.AddRange(agentIDs); + ReceivedOnlineNotifications.AddRange(agentIDs); } public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, @@ -1109,6 +1111,7 @@ namespace OpenSim.Tests.Common.Mock public void SendTerminateFriend(UUID exFriendID) { + ReceivedFriendshipTerminations.Add(exFriendID); } public bool AddGenericPacketHandler(string MethodName, GenericMessage handler) -- cgit v1.1