public void Initialize()
        {
            _clock = MockSystemClock.Get();
            StorageFolder cacheDir = ApplicationData.Current.LocalCacheFolder;

            _directory = new DirectoryInfo(Path.Combine(cacheDir.Path, "sharded-disk-storage-test"));
            Assert.IsTrue(_directory.CreateEmpty());
            FileTree.DeleteContents(_directory);
            _clock.SetDateTime(DateTime.Now);
        }
Example #2
0
 /// <summary>
 /// Clear all contents of the storage.
 /// </summary>
 public void ClearAll()
 {
     FileTree.DeleteContents(_rootDirectory);
 }