extend TestLoadIarV0_1AbsentCreator() to check serialized object CreatorId as well

0.7.1-dev
Justin Clark-Casey (justincc) 2011-03-10 22:40:24 +00:00
parent ce4421497e
commit 66d2d35425
1 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
Assert.That(
foundItem1.CreatorIdAsUuid, Is.EqualTo(m_ua1.PrincipalID),
"Loaded item uuid creator doesn't match that of the loading user");
AssetBase asset1 = scene.AssetService.Get(foundItem1.AssetID.ToString());
string xmlData = Utils.BytesToString(asset1.Data);
SceneObjectGroup sog1 = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
Assert.That(sog1.RootPart.CreatorID, Is.EqualTo(m_ua1.PrincipalID));
}
}
}