public GameHarness(TestGameSettings gameSettings, string?debugFilePath = null) { _gameClock = new TestGameClock(); _gameSettings = gameSettings; Game = new Game(_gameClock, _gameSettings); _now = DateTime.UtcNow; _createDebugFile = !string.IsNullOrWhiteSpace(debugFilePath); _debugFilePath = debugFilePath; if (_createDebugFile) { File.WriteAllText(debugFilePath, $"{DateTime.Now} - {debugFilePath}" + System.Environment.NewLine); } }
public AsciiTestSettingBuilder(TestGameSettings gameSettings) { _gameSettings = gameSettings; }