diff options
* optimized usings.
Diffstat (limited to 'OpenSim/Framework/Communications/Tests/LoginServiceTests.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs index ffa3c5f..57ed0f5 100644 --- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs | |||
@@ -29,8 +29,6 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Text.RegularExpressions; | 31 | using System.Text.RegularExpressions; |
32 | using System.Xml; | ||
33 | using Nini; | ||
34 | using NUnit.Framework; | 32 | using NUnit.Framework; |
35 | using NUnit.Framework.SyntaxHelpers; | 33 | using NUnit.Framework.SyntaxHelpers; |
36 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
@@ -61,7 +59,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
61 | IPEndPoint capsEndPoint = new IPEndPoint(IPAddress.Loopback, 9123); | 59 | IPEndPoint capsEndPoint = new IPEndPoint(IPAddress.Loopback, 9123); |
62 | 60 | ||
63 | CommunicationsManager commsManager | 61 | CommunicationsManager commsManager |
64 | = new TestCommunicationsManager(new OpenSim.Framework.NetworkServersInfo(42, 43)); | 62 | = new TestCommunicationsManager(new NetworkServersInfo(42, 43)); |
65 | 63 | ||
66 | commsManager.GridService.RegisterRegion( | 64 | commsManager.GridService.RegisterRegion( |
67 | new RegionInfo(42, 43, capsEndPoint, regionExternalName)); | 65 | new RegionInfo(42, 43, capsEndPoint, regionExternalName)); |
@@ -89,7 +87,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
89 | Assert.That(responseData["first_name"], Is.EqualTo(firstName)); | 87 | Assert.That(responseData["first_name"], Is.EqualTo(firstName)); |
90 | Assert.That(responseData["last_name"], Is.EqualTo(lastName)); | 88 | Assert.That(responseData["last_name"], Is.EqualTo(lastName)); |
91 | Assert.That( | 89 | Assert.That( |
92 | responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(System.Int32.MaxValue)); | 90 | responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(Int32.MaxValue)); |
93 | 91 | ||
94 | Regex capsSeedPattern | 92 | Regex capsSeedPattern |
95 | = new Regex("^http://" | 93 | = new Regex("^http://" |
@@ -108,7 +106,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
108 | IPEndPoint capsEndPoint = new IPEndPoint(IPAddress.Loopback, 9123); | 106 | IPEndPoint capsEndPoint = new IPEndPoint(IPAddress.Loopback, 9123); |
109 | 107 | ||
110 | CommunicationsManager commsManager | 108 | CommunicationsManager commsManager |
111 | = new TestCommunicationsManager(new OpenSim.Framework.NetworkServersInfo(42, 43)); | 109 | = new TestCommunicationsManager(new NetworkServersInfo(42, 43)); |
112 | 110 | ||
113 | commsManager.GridService.RegisterRegion( | 111 | commsManager.GridService.RegisterRegion( |
114 | new RegionInfo(42, 43, capsEndPoint, regionExternalName)); | 112 | new RegionInfo(42, 43, capsEndPoint, regionExternalName)); |
@@ -159,7 +157,7 @@ namespace OpenSim.Framework.Communications.Tests | |||
159 | Hashtable invlibroothash = (Hashtable) invlibroot[0]; | 157 | Hashtable invlibroothash = (Hashtable) invlibroot[0]; |
160 | Assert.That(invlibroothash["folder_id"],Is.EqualTo("00000112-000f-0000-0000-000100bba000")); | 158 | Assert.That(invlibroothash["folder_id"],Is.EqualTo("00000112-000f-0000-0000-000100bba000")); |
161 | Assert.That( | 159 | Assert.That( |
162 | responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(System.Int32.MaxValue)); | 160 | responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(Int32.MaxValue)); |
163 | Assert.That(responseData["message"], Is.EqualTo("Hello folks")); | 161 | Assert.That(responseData["message"], Is.EqualTo("Hello folks")); |
164 | Assert.That(responseData["buddy-list"], Is.Empty); | 162 | Assert.That(responseData["buddy-list"], Is.Empty); |
165 | Assert.That(responseData["start_location"], Is.EqualTo("last")); | 163 | Assert.That(responseData["start_location"], Is.EqualTo("last")); |