public void LoadGame_UsesLoadMethod() { ISaveLoad saveLoad = Substitute.For <ISaveLoad>(); _gameManager.saveLoad = saveLoad; _gameManager.LoadGame("test"); saveLoad.Received().Load("test"); }
public void LoadBaseData_UsesLoadMethod() { ISaveLoad saveLoad = Substitute.For <ISaveLoad>(); _gameManager.saveLoad = saveLoad; _gameManager.LoadBaseData(); saveLoad.Received().LoadBaseData(); }
public void SaveGame_UsesSaveMethod() { ISaveLoad saveLoad = Substitute.For <ISaveLoad>(); _gameManager.saveLoad = saveLoad; _gameManager.GameData = _gameData; _gameManager.SaveGame(); saveLoad.Received().Save(_gameData); }