public void TestTextFileAddRemove()
{
using (var fc = FileCacheStore.Load("clcachetest_text"))
{
fc.WaitOne();
try
{
fc.AddTextFileContent("aa12345", "test.txt", "hello");
Assert.IsTrue(File.Exists(fc.MakePath("aa12345", "test.txt")));
fc.Remove("aa12345");
Assert.IsFalse(File.Exists(fc.MakePath("aa12345", "test.txt")));
Assert.IsTrue(Directory.Exists(Path.Combine(fc.FolderPath, "aa")));
}
finally
{
fc.ReleaseMutex();
}
}
}