diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs b/OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs index a5bb1a7..c9e3141 100644 --- a/OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs +++ b/OpenSim/Region/CoreModules/World/Serialiser/Tests/SerialiserTests.cs | |||
@@ -43,7 +43,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
43 | [TestFixture] | 43 | [TestFixture] |
44 | public class SerialiserTests : OpenSimTestCase | 44 | public class SerialiserTests : OpenSimTestCase |
45 | { | 45 | { |
46 | private const string ObjectRootPartStubXml = | 46 | private const string ObjectRootPartStubXml = |
47 | @"<SceneObjectGroup> | 47 | @"<SceneObjectGroup> |
48 | <RootPart> | 48 | <RootPart> |
49 | <SceneObjectPart xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""> | 49 | <SceneObjectPart xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""> |
@@ -149,9 +149,9 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
149 | <llsd> | 149 | <llsd> |
150 | <map> | 150 | <map> |
151 | <key>MyNamespace</key> | 151 | <key>MyNamespace</key> |
152 | <map> | 152 | <map> |
153 | <key>MyStore</key> | 153 | <key>MyStore</key> |
154 | <map> | 154 | <map> |
155 | <key>the answer</key> | 155 | <key>the answer</key> |
156 | <integer>42</integer> | 156 | <integer>42</integer> |
157 | </map> | 157 | </map> |
@@ -162,12 +162,12 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
162 | </SceneObjectPart> | 162 | </SceneObjectPart> |
163 | </RootPart>"; | 163 | </RootPart>"; |
164 | 164 | ||
165 | private const string ObjectWithNoOtherPartsXml = ObjectRootPartStubXml + | 165 | private const string ObjectWithNoOtherPartsXml = ObjectRootPartStubXml + |
166 | @" | 166 | @" |
167 | <OtherParts /> | 167 | <OtherParts /> |
168 | </SceneObjectGroup>"; | 168 | </SceneObjectGroup>"; |
169 | 169 | ||
170 | private const string ObjectWithOtherPartsXml = ObjectRootPartStubXml + | 170 | private const string ObjectWithOtherPartsXml = ObjectRootPartStubXml + |
171 | @" | 171 | @" |
172 | <OtherParts> | 172 | <OtherParts> |
173 | <Part> | 173 | <Part> |
@@ -574,9 +574,9 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
574 | <llsd> | 574 | <llsd> |
575 | <map> | 575 | <map> |
576 | <key>MyNamespace</key> | 576 | <key>MyNamespace</key> |
577 | <map> | 577 | <map> |
578 | <key>MyStore</key> | 578 | <key>MyStore</key> |
579 | <map> | 579 | <map> |
580 | <key>last words</key> | 580 | <key>last words</key> |
581 | <string>Rosebud</string> | 581 | <string>Rosebud</string> |
582 | </map> | 582 | </map> |
@@ -636,7 +636,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
636 | Assert.That(part.Name, Is.EqualTo("PrimMyRide")); | 636 | Assert.That(part.Name, Is.EqualTo("PrimMyRide")); |
637 | OSDMap store = part.DynAttrs.GetStore("MyNamespace", "MyStore"); | 637 | OSDMap store = part.DynAttrs.GetStore("MyNamespace", "MyStore"); |
638 | Assert.AreEqual(42, store["the answer"].AsInteger()); | 638 | Assert.AreEqual(42, store["the answer"].AsInteger()); |
639 | } | 639 | } |
640 | 640 | ||
641 | { | 641 | { |
642 | SceneObjectPart part = parts[1]; | 642 | SceneObjectPart part = parts[1]; |
@@ -723,7 +723,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
723 | xtr.ReadStartElement("SceneObjectGroup"); | 723 | xtr.ReadStartElement("SceneObjectGroup"); |
724 | xtr.ReadStartElement("RootPart"); | 724 | xtr.ReadStartElement("RootPart"); |
725 | xtr.ReadStartElement("SceneObjectPart"); | 725 | xtr.ReadStartElement("SceneObjectPart"); |
726 | 726 | ||
727 | UUID uuid = UUID.Zero; | 727 | UUID uuid = UUID.Zero; |
728 | string name = null; | 728 | string name = null; |
729 | UUID creatorId = UUID.Zero; | 729 | UUID creatorId = UUID.Zero; |
@@ -733,7 +733,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
733 | { | 733 | { |
734 | if (xtr.NodeType != XmlNodeType.Element) | 734 | if (xtr.NodeType != XmlNodeType.Element) |
735 | continue; | 735 | continue; |
736 | 736 | ||
737 | switch (xtr.Name) | 737 | switch (xtr.Name) |
738 | { | 738 | { |
739 | case "UUID": | 739 | case "UUID": |
@@ -833,7 +833,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
833 | XmlTextReader xtr = new XmlTextReader(new StringReader(xml2)); | 833 | XmlTextReader xtr = new XmlTextReader(new StringReader(xml2)); |
834 | xtr.ReadStartElement("SceneObjectGroup"); | 834 | xtr.ReadStartElement("SceneObjectGroup"); |
835 | xtr.ReadStartElement("SceneObjectPart"); | 835 | xtr.ReadStartElement("SceneObjectPart"); |
836 | 836 | ||
837 | UUID uuid = UUID.Zero; | 837 | UUID uuid = UUID.Zero; |
838 | string name = null; | 838 | string name = null; |
839 | UUID creatorId = UUID.Zero; | 839 | UUID creatorId = UUID.Zero; |
@@ -843,7 +843,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests | |||
843 | { | 843 | { |
844 | if (xtr.NodeType != XmlNodeType.Element) | 844 | if (xtr.NodeType != XmlNodeType.Element) |
845 | continue; | 845 | continue; |
846 | 846 | ||
847 | switch (xtr.Name) | 847 | switch (xtr.Name) |
848 | { | 848 | { |
849 | case "UUID": | 849 | case "UUID": |