Re-enable TestSaveIarV0_1()

Implement more parts of TestAssetService
arthursv
Justin Clark-Casey (justincc) 2009-08-14 20:07:13 +01:00
parent 3e94eecc5c
commit ff28ecee1b
2 changed files with 12 additions and 4 deletions

View File

@ -74,7 +74,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
/// <summary>
/// Test saving a V0.1 OpenSim Inventory Archive (subject to change since there is no fixed format yet).
/// </summary>
//[Test]
[Test]
public void TestSaveIarV0_1()
{
TestHelper.InMethod();

View File

@ -45,7 +45,13 @@ namespace OpenSim.Tests.Common.Mock
public AssetBase Get(string id)
{
return Assets[ id ];
AssetBase asset;
if (Assets.ContainsKey(id))
asset = Assets[id];
else
asset = null;
return asset;
}
public AssetMetadata GetMetadata(string id)
@ -60,7 +66,9 @@ namespace OpenSim.Tests.Common.Mock
public bool Get(string id, object sender, AssetRetrieved handler)
{
throw new NotImplementedException();
handler(id, sender, Get(id));
return true;
}
public string Store(AssetBase asset)