Exemplo n.º 1
0
        public static void TestChattelReader_Ctor_BasicCfg_Null_True_PurgesLocalStorage()
        {
            var config  = new ChattelConfiguration(LOCAL_STORAGE_DIR_INFO.FullName);
            var assetId = Guid.NewGuid();

            TestAssetStorageSimpleFolderTree.CreateLocalStorageEntry(LOCAL_STORAGE_DIR_INFO, new StratusAsset {
                Id = assetId,
            });

#pragma warning disable RECS0026 // Possible unassigned object created by 'new'
            new ChattelReader(config, null, true);
#pragma warning restore RECS0026 // Possible unassigned object created by 'new'

            Assert.False(TestAssetStorageSimpleFolderTree.LocalStorageEntryExists(LOCAL_STORAGE_DIR_INFO, assetId));
        }
Exemplo n.º 2
0
 public static void CleanupAfterEveryTest()
 {
     TestAssetStorageSimpleFolderTree.CleanLocalStorageFolder(LOCAL_STORAGE_DIR_INFO);
 }
Exemplo n.º 3
0
 public static void PrepareBeforeEveryTest()
 {
     TestAssetStorageSimpleFolderTree.CreateLocalStorageFolder(LOCAL_STORAGE_DIR_INFO);
 }
Exemplo n.º 4
0
 public static void Setup()
 {
     TestAssetStorageSimpleFolderTree.CleanLocalStorageFolder(LOCAL_STORAGE_DIR_INFO);
 }
Exemplo n.º 5
0
 public static void CleanupAfterEveryTest()
 {
     TestAssetStorageSimpleFolderTree.CleanLocalStorageFolder(LOCAL_STORAGE_DIR_INFO);
     TestWriteCache.CleanWriteCache(WRITE_CACHE_FILE_INFO);
 }