Esempio n. 1
0
    public void DeleteFileStructureTest()
    {
        FileStructure.CreateGameDataPersistenceFileStructure();
        FileStructure.DeleteAllPersistenceFiles();

        Assert.That(Directory.Exists(FileStructure.PlayerReplayPersistencePath) &&
                    Directory.Exists(FileStructure.SettingPersistencePath) &&
                    Directory.Exists(FileStructure.PlayerScorePersistencePath), Is.False);
    }
Esempio n. 2
0
    public void CreateFileStructureTest()
    {
        FileStructure.CreateGameDataPersistenceFileStructure();
        Debug.Log(Application.persistentDataPath);

        Assert.IsTrue(Directory.Exists(FileStructure.PlayerReplayPersistencePath) &&
                      Directory.Exists(FileStructure.SettingPersistencePath) &&
                      Directory.Exists(FileStructure.PlayerScorePersistencePath));
    }
Esempio n. 3
0
 public void SetUp()
 {
     //Prepare persistence file structure by recreate it
     FileStructure.DeleteAllPersistenceFiles();
     FileStructure.CreateGameDataPersistenceFileStructure();
 }