diff options
author | dr scofield (aka dirk husemann) | 2009-10-01 10:30:43 +0200 |
---|---|---|
committer | dr scofield (aka dirk husemann) | 2009-10-01 10:30:43 +0200 |
commit | 18416ec518d75d1929c657ea53c7867b4b691638 (patch) | |
tree | 28c0c6f93a3cdb6b2ed6e900aa34436cda4d10a5 | |
parent | Merge branch 'oar-parcel' into x-opensim (diff) | |
parent | adding meat to the LandDataSerializerTest cases. (diff) | |
download | opensim-SC-18416ec518d75d1929c657ea53c7867b4b691638.zip opensim-SC-18416ec518d75d1929c657ea53c7867b4b691638.tar.gz opensim-SC-18416ec518d75d1929c657ea53c7867b4b691638.tar.bz2 opensim-SC-18416ec518d75d1929c657ea53c7867b4b691638.tar.xz |
Merge branch 'oar-parcel' into x-opensim
-rw-r--r-- | OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs b/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs index f1881a1..d0e3fc8 100644 --- a/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs +++ b/OpenSim/Framework/Serialization/Tests/LandDataSerializerTests.cs | |||
@@ -25,6 +25,7 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
29 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
30 | using OpenSim.Framework.Serialization.External; | 31 | using OpenSim.Framework.Serialization.External; |
@@ -38,6 +39,7 @@ namespace OpenSim.Framework.Serialization.Tests | |||
38 | public class LandDataSerializerTest | 39 | public class LandDataSerializerTest |
39 | { | 40 | { |
40 | private LandData land; | 41 | private LandData land; |
42 | private string preSerialized = "<?xml version=\"1.0\" encoding=\"utf-16\"?>\n<LandData>\n <Area>128</Area>\n <AuctionID>0</AuctionID>\n <AuthBuyerID>00000000-0000-0000-0000-000000000000</AuthBuyerID>\n <Category>Residential</Category>\n <ClaimDate>0</ClaimDate>\n <ClaimPrice>0</ClaimPrice>\n <GlobalID>54ff9641-dd40-4a2c-b1f1-47dd3af24e50</GlobalID>\n <GroupID>d740204e-bbbf-44aa-949d-02c7d739f6a5</GroupID>\n <IsGroupOwned>False</IsGroupOwned>\n <Bitmap>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</Bitmap>\n <Description>land data to test LandDataSerializer</Description>\n <Flags>536870944</Flags>\n <LandingType>2</LandingType>\n <Name>LandDataSerializerTest Land</Name>\n <Status>Leased</Status>\n <LocalID>0</LocalID>\n <MediaAutoScale>1</MediaAutoScale>\n <MediaID>d4452578-2f25-4b97-a81b-819af559cfd7</MediaID>\n <MediaURL>http://videos.opensimulator.org/bumblebee.mp4</MediaURL>\n <MusicURL />\n <OwnerID>1b8eedf9-6d15-448b-8015-24286f1756bf</OwnerID>\n <ParcelAccessList />\n <PassHours>0</PassHours>\n <PassPrice>0</PassPrice>\n <SalePrice>0</SalePrice>\n <SnapshotID>00000000-0000-0000-0000-000000000000</SnapshotID>\n <UserLocation><0, 0, 0></UserLocation>\n <UserLookAt><0, 0, 0></UserLookAt>\n <Dwell>0</Dwell>\n <OtherCleanTime>0</OtherCleanTime>\n</LandData>"; | ||
41 | 43 | ||
42 | [SetUp] | 44 | [SetUp] |
43 | public void setup() | 45 | public void setup() |
@@ -70,10 +72,11 @@ namespace OpenSim.Framework.Serialization.Tests | |||
70 | /// <summary> | 72 | /// <summary> |
71 | /// </summary> | 73 | /// </summary> |
72 | [Test] | 74 | [Test] |
73 | public void TestLandDataSerializerSerializeTest() | 75 | public void LandDataSerializerSerializeTest() |
74 | { | 76 | { |
75 | string serialized = LandDataSerializer.Serialize(this.land); | 77 | string serialized = LandDataSerializer.Serialize(this.land); |
76 | Assert.That(serialized.Length > 0); | 78 | Assert.That(serialized.Length > 0); |
79 | Assert.That(serialized == this.preSerialized); | ||
77 | } | 80 | } |
78 | 81 | ||
79 | /// <summary> | 82 | /// <summary> |