From 79299702579b314513652f23c2ec08b6bf687dcd Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 25 May 2009 10:40:09 +0000 Subject: letting TestClient implement IClientCore as well to fix test case failure due to new NAT code --- OpenSim/Tests/Common/Mock/TestClient.cs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'OpenSim/Tests/Common/Mock') diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 00f7bb1..a028abe 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs @@ -36,10 +36,11 @@ using OpenMetaverse.Packets; using OpenSim.Framework; using OpenSim.Region.Framework.Interfaces; using OpenSim.Region.Framework.Scenes; +using OpenSim.Framework.Client; namespace OpenSim.Tests.Common.Mock { - public class TestClient : IClientAPI + public class TestClient : IClientAPI, IClientCore { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -1131,5 +1132,25 @@ namespace OpenSim.Tests.Common.Mock public void SendPickInfoReply(UUID pickID,UUID creatorID, bool topPick, UUID parcelID, string name, string desc, UUID snapshotID, string user, string originalName, string simName, Vector3 posGlobal, int sortOrder, bool enabled) { } + + public bool TryGet(out T iface) + { + iface = default(T); + return false; + } + + public T Get() + { + return default(T); + } + + public void Disconnect(string reason) + { + } + + public void Disconnect() + { + } + } } -- cgit v1.1