aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Tests
diff options
context:
space:
mode:
authorTeravus Ovares2008-11-28 20:37:21 +0000
committerTeravus Ovares2008-11-28 20:37:21 +0000
commitc9a5215d6d1376260df22571482dc77bfe7aeb2d (patch)
treee2baa4a7963ab2a5d18092c29494bda5cf31083a /OpenSim/Framework/Tests
parent* simplify AddNewClient since making this root without using MakeRootAgent() ... (diff)
downloadopensim-SC_OLD-c9a5215d6d1376260df22571482dc77bfe7aeb2d.zip
opensim-SC_OLD-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.gz
opensim-SC_OLD-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.bz2
opensim-SC_OLD-c9a5215d6d1376260df22571482dc77bfe7aeb2d.tar.xz
* Fixes Location == Location, and Location != Location
Diffstat (limited to 'OpenSim/Framework/Tests')
-rw-r--r--OpenSim/Framework/Tests/LocationTest.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Framework/Tests/LocationTest.cs b/OpenSim/Framework/Tests/LocationTest.cs
index 1c10a39..118ec94 100644
--- a/OpenSim/Framework/Tests/LocationTest.cs
+++ b/OpenSim/Framework/Tests/LocationTest.cs
@@ -45,6 +45,22 @@ namespace OpenSim.Framework.Tests
45 Location TestLocation1 = new Location(1099511628032000); 45 Location TestLocation1 = new Location(1099511628032000);
46 Location TestLocation2 = new Location(1099511628032000); 46 Location TestLocation2 = new Location(1099511628032000);
47 Assert.That(TestLocation1 == TestLocation2); 47 Assert.That(TestLocation1 == TestLocation2);
48
49 TestLocation1 = new Location(1099511628032001);
50 TestLocation2 = new Location(1099511628032000);
51 Assert.That(TestLocation1 != TestLocation2);
52 }
53
54 [Test]
55 public void locationXYRegionHandle()
56 {
57 Location TestLocation1 = new Location(256000,256000);
58 Location TestLocation2 = new Location(1099511628032000);
59 Assert.That(TestLocation1 == TestLocation2);
60
61 TestLocation1 = new Location(256001, 256001);
62 TestLocation2 = new Location(1099511628032000);
63 Assert.That(TestLocation1 != TestLocation2);
48 } 64 }
49 65
50 } 66 }