Esempio n. 1
0
        public void TestNameCreation()
        {
            var storage = new TempDirectoryStorage("TempDirectoryTest");

            try
            {
                Debug.Log("TestNameCreation - Location: " + storage.Container.FullName);
                Assert.IsTrue(storage.Container.Exists);
            }
            catch (Exception e)
            {
                Debug.Log(e.StackTrace);
                throw e;
            }
            finally
            {
                if (storage.Container.Exists)
                {
                    storage.Container.Delete(true);
                }
            }
        }
Esempio n. 2
0
        public void TestDirectoryCreation()
        {
            var dir     = new DirectoryInfo(Path.Combine(TestConstants.TestAssetPath, "Storages/TempDirectoryTest2"));
            var storage = new TempDirectoryStorage(dir);

            try
            {
                Debug.Log("TestDirectoryCreation - Location: " + storage.Container.FullName);
                Assert.IsTrue(storage.Container.Exists);
            }
            catch (Exception e)
            {
                Debug.Log(e.StackTrace);
                throw e;
            }
            finally
            {
                if (storage.Container.Exists)
                {
                    storage.Container.Delete(true);
                }
            }
        }