diff options
Diffstat (limited to 'OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs')
-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 | ||