Example #1
0
        public void Saves_Data()
        {
            SetupTest();
            SetTestData(true);

            data.Save();

            foreach (string path in data.GetPaths())
            {
                Assert.True(System.IO.File.Exists(path));
            }
        }
Example #2
0
        public void DeleteFiles_Deletes_When_No_Data_In_Memory()
        {
            SetupTest();

            SetTestData(true);

            data.Save();

            data = new VirtualFolder(GAME_NAME, SLOT_NAME, LEVEL_NAME);

            data.DeleteFolder();

            Assert.True(data.GetPaths().Count == 0);
        }