diff options
author | Melanie | 2010-05-06 16:08:24 +0100 |
---|---|---|
committer | Melanie | 2010-05-06 16:08:24 +0100 |
commit | 533bd1bd9b25f6c754493beb11e38777570db728 (patch) | |
tree | 96680eacb7bb1eb224536f12cb624a3a7f453839 /OpenSim/Framework | |
parent | Ensure the show in search flag is cleared on ownership change. Also, when (diff) | |
parent | * Fixes Library bugs in grid mode. Partly a missing check and partly a missin... (diff) | |
download | opensim-SC-533bd1bd9b25f6c754493beb11e38777570db728.zip opensim-SC-533bd1bd9b25f6c754493beb11e38777570db728.tar.gz opensim-SC-533bd1bd9b25f6c754493beb11e38777570db728.tar.bz2 opensim-SC-533bd1bd9b25f6c754493beb11e38777570db728.tar.xz |
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs b/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs index 14e0462..70e87b3 100644 --- a/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs +++ b/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs | |||
@@ -96,15 +96,19 @@ namespace OpenSim.Framework.Serialization.Tests | |||
96 | [Test] | 96 | [Test] |
97 | public void LandDataSerializerSerializeTest() | 97 | public void LandDataSerializerSerializeTest() |
98 | { | 98 | { |
99 | string serialized = LandDataSerializer.Serialize(this.land); | 99 | string serialized = LandDataSerializer.Serialize(this.land).Replace("\r\n", "\n"); |
100 | Assert.That(serialized.Length > 0, "Serialize(LandData) returned empty string"); | 100 | Assert.That(serialized.Length > 0, "Serialize(LandData) returned empty string"); |
101 | Assert.That(serialized == LandDataSerializerTest.preSerialized, | ||
102 | "result of Serialize(LandData) does not match expected result"); | ||
103 | 101 | ||
104 | string serializedWithParcelAccessList = LandDataSerializer.Serialize(this.landWithParcelAccessList); | 102 | // adding a simple boolean variable because resharper nUnit integration doesn't like this |
105 | Assert.That(serializedWithParcelAccessList.Length > 0, | 103 | // XML data in the Assert.That statement. Not sure why. |
104 | bool result = (serialized == preSerialized); | ||
105 | Assert.That(result, "result of Serialize LandData does not match expected result"); | ||
106 | |||
107 | string serializedWithParcelAccessList = LandDataSerializer.Serialize(this.landWithParcelAccessList).Replace("\r\n", "\n"); | ||
108 | Assert.That(serializedWithParcelAccessList.Length > 0, | ||
106 | "Serialize(LandData) returned empty string for LandData object with ParcelAccessList"); | 109 | "Serialize(LandData) returned empty string for LandData object with ParcelAccessList"); |
107 | Assert.That(serializedWithParcelAccessList == LandDataSerializerTest.preSerializedWithParcelAccessList, | 110 | result = (serializedWithParcelAccessList == preSerializedWithParcelAccessList); |
111 | Assert.That(result, | ||
108 | "result of Serialize(LandData) does not match expected result (pre-serialized with parcel access list"); | 112 | "result of Serialize(LandData) does not match expected result (pre-serialized with parcel access list"); |
109 | } | 113 | } |
110 | 114 | ||