예제 #1
0
        public void Load_GameState_From_JSON()
        {
            var s = new Store(SAVE_GAME_FILE_NAME, _saveFolder);
            s.SaveGame(_gameState);

            var gs = s.LoadGame(Path.Combine(_saveFolder, SAVE_GAME_FILE_NAME));

            Assert.IsNotNull(gs);
        }
예제 #2
0
 public void Save_GameState_To_JSON()
 {
     var s = new Store(SAVE_GAME_FILE_NAME, _saveFolder);
     s.SaveGame(_gameState);
 }
예제 #3
0
        public void Load_GameState_From_JSON()
        {
            var s = new Store("TestGameFile", _saveFolder);
            s.SaveGame(_gameState);

            var gs = s.LoadGame(Path.Combine(_saveFolder, "TestGameFile"));

            Assert.IsNotNull(gs);
        }
예제 #4
0
 public void Save_Throws_Without_GameName()
 {
     var s = new Store("", _saveFolder);
 }
예제 #5
0
 public void Save_GameState_To_JSON()
 {
     var s = new Store("TestGameFile", _saveFolder);
     s.SaveGame(_gameState);
 }