Beispiel #1
0
        public void CreateFileAndReadFileTest()
        {
            const string path = "~/b/a.txt";
            const string text = "Test";

            AppDataFolder.CreateFile(path, text);
            Assert.AreEqual(text, AppDataFolder.ReadFile(path));
        }
Beispiel #2
0
        public void StoreFileTest()
        {
            const string path1 = "~/b/b.txt";
            const string path2 = "~/b/c.txt";
            const string text  = "Test";

            AppDataFolder.CreateFile(path1, text);
            AppDataFolder.StoreFile(AppDataFolder.MapPath(path1), path2);
            Assert.AreEqual(text, AppDataFolder.ReadFile(path2));

            AppDataFolder.DeleteFile(path1);
            AppDataFolder.DeleteFile(path2);
        }