diff options
author | Justin Clark-Casey (justincc) | 2011-11-14 17:18:51 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-14 17:18:51 +0000 |
commit | de895ee54a14f21ee0609e6a3636a31407495aa3 (patch) | |
tree | c6449e7ef1da31980644d36689f7fa158d5d6d0f /OpenSim/Tests/Common | |
parent | If a friends identifier which is too short is given to HGFriendsModule.GetOnl... (diff) | |
download | opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.zip opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.gz opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.bz2 opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.xz |
Add very simple FriendsModuleTests.TestNoFriends()
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestClient.cs | 11 |
1 files changed, 9 insertions, 2 deletions
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 | |||
56 | 56 | ||
57 | private IScene m_scene; | 57 | private IScene m_scene; |
58 | 58 | ||
59 | // Properties so that we can get at received data for test purposes | ||
60 | public List<UUID> OfflineNotificationsReceived { get; private set; } | ||
61 | public List<UUID> OnlineNotificationsReceived { get; private set; } | ||
62 | |||
59 | // disable warning: public events, part of the public API | 63 | // disable warning: public events, part of the public API |
60 | #pragma warning disable 67 | 64 | #pragma warning disable 67 |
61 | 65 | ||
@@ -440,6 +444,9 @@ namespace OpenSim.Tests.Common.Mock | |||
440 | m_circuitCode = agentData.circuitcode; | 444 | m_circuitCode = agentData.circuitcode; |
441 | m_scene = scene; | 445 | m_scene = scene; |
442 | CapsSeedUrl = agentData.CapsPath; | 446 | CapsSeedUrl = agentData.CapsPath; |
447 | |||
448 | OfflineNotificationsReceived = new List<UUID>(); | ||
449 | OnlineNotificationsReceived = new List<UUID>(); | ||
443 | } | 450 | } |
444 | 451 | ||
445 | /// <summary> | 452 | /// <summary> |
@@ -827,12 +834,12 @@ namespace OpenSim.Tests.Common.Mock | |||
827 | 834 | ||
828 | public void SendAgentOffline(UUID[] agentIDs) | 835 | public void SendAgentOffline(UUID[] agentIDs) |
829 | { | 836 | { |
830 | 837 | OfflineNotificationsReceived.AddRange(agentIDs); | |
831 | } | 838 | } |
832 | 839 | ||
833 | public void SendAgentOnline(UUID[] agentIDs) | 840 | public void SendAgentOnline(UUID[] agentIDs) |
834 | { | 841 | { |
835 | 842 | OnlineNotificationsReceived.AddRange(agentIDs); | |
836 | } | 843 | } |
837 | 844 | ||
838 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, | 845 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, |