Add TestClearCache()

bulletsim
Justin Clark-Casey (justincc) 2011-07-04 23:05:31 +01:00
parent cb02fc44f5
commit af8773d6d0
1 changed files with 17 additions and 0 deletions

View File

@ -106,5 +106,22 @@ namespace OpenSim.Region.CoreModules.Asset.Tests
AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString()); AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString());
Assert.That(retrievedAsset, Is.Null); Assert.That(retrievedAsset, Is.Null);
} }
[Test]
public void TestClearCache()
{
TestHelper.InMethod();
// log4net.Config.XmlConfigurator.Configure();
AssetBase asset = AssetHelpers.CreateAsset();
asset.ID = TestHelper.ParseTail(0x2).ToString();
m_cache.Store(asset);
m_cache.Clear();
AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString());
Assert.That(retrievedAsset, Is.Null);
}
} }
} }