|
@@ -51,21 +51,21 @@ namespace OpenSim.Framework.Tests
|
|
|
[Test]
|
|
|
public void locationXYRegionHandle()
|
|
|
{
|
|
|
- Location TestLocation1 = new Location(256000,256000);
|
|
|
- Location TestLocation2 = new Location(1099511628032000);
|
|
|
+ Location TestLocation1 = new Location(255000,256000);
|
|
|
+ Location TestLocation2 = new Location(1095216660736000);
|
|
|
Assert.That(TestLocation1 == TestLocation2);
|
|
|
|
|
|
- Assert.That(TestLocation2.X == 256000 && TestLocation2.Y == 256000, "Test xy location doesn't match regionhandle provided");
|
|
|
+ Assert.That(TestLocation2.X == 255000 && TestLocation2.Y == 256000, "Test xy location doesn't match regionhandle provided");
|
|
|
|
|
|
- Assert.That(TestLocation2.RegionHandle == 1099511628032000,
|
|
|
+ Assert.That(TestLocation2.RegionHandle == 1095216660736000,
|
|
|
"Location RegionHandle Property didn't match regionhandle provided in constructor");
|
|
|
|
|
|
|
|
|
- TestLocation1 = new Location(256001, 256001);
|
|
|
- TestLocation2 = new Location(1099511628032000);
|
|
|
+ TestLocation1 = new Location(255001, 256001);
|
|
|
+ TestLocation2 = new Location(1095216660736000);
|
|
|
Assert.That(TestLocation1 != TestLocation2);
|
|
|
|
|
|
- Assert.That(TestLocation1.Equals(256001, 256001), "Equals(x,y) failed to match the position in the constructor");
|
|
|
+ Assert.That(TestLocation1.Equals(255001, 256001), "Equals(x,y) failed to match the position in the constructor");
|
|
|
|
|
|
Assert.That(TestLocation2.GetHashCode() == (TestLocation2.X.GetHashCode() ^ TestLocation2.Y.GetHashCode()), "GetHashCode failed to produce the expected hashcode");
|
|
|
|