public IEnumerable<GameInfo> Read(TextReader reader) { var parser = new GameInfoParser(); while (reader.Peek() != -1) { var game = parser.Parse(reader); yield return game; } }
public IEnumerable <GameInfo> Read(TextReader reader) { var parser = new GameInfoParser(); while (reader.Peek() != -1) { var game = parser.Parse(reader); yield return(game); } }
public void BeforeFirstTest() { _parser = new GameInfoParser(); }