* minor: move common serialization test code into fixture setup
parent
fa04937a82
commit
9021bb231c
|
@ -119,18 +119,22 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
|||
<OtherParts />
|
||||
</SceneObjectGroup>";
|
||||
|
||||
protected SerialiserModule m_serialiserModule;
|
||||
|
||||
[TestFixtureSetUp]
|
||||
public void Init()
|
||||
{
|
||||
m_serialiserModule = new SerialiserModule();
|
||||
SceneSetupHelpers.SetupSceneModules(SceneSetupHelpers.SetupScene(false), m_serialiserModule);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLoadXml2()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
//log4net.Config.XmlConfigurator.Configure();
|
||||
|
||||
SerialiserModule serialiserModule = new SerialiserModule();
|
||||
|
||||
Scene scene = SceneSetupHelpers.SetupScene(false);
|
||||
SceneSetupHelpers.SetupSceneModules(scene, serialiserModule);
|
||||
|
||||
SceneObjectGroup so = serialiserModule.DeserializeGroupFromXml2(xml2);
|
||||
SceneObjectGroup so = m_serialiserModule.DeserializeGroupFromXml2(xml2);
|
||||
SceneObjectPart rootPart = so.RootPart;
|
||||
|
||||
Assert.That(rootPart.UUID, Is.EqualTo(new UUID("9be68fdd-f740-4a0f-9675-dfbbb536b946")));
|
||||
|
@ -139,5 +143,12 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
|||
|
||||
// TODO: Check other properties
|
||||
}
|
||||
|
||||
//[Test]
|
||||
public void TestSaveXml2()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
//log4net.Config.XmlConfigurator.Configure();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue