public void TournamentSpeedIsParsedTest(string handHistoryFile, TournamentSpeed tournamentSpeed) { var handHistory = ParseHandHistory(handHistoryFile); Assert.That(handHistory.GameDescription.Tournament.Speed, Is.EqualTo(tournamentSpeed)); }
public void ParseTournamentSummaryTest(string handHistoryFile, GameType gameType, string tournamentId, string tournamentName, decimal tournamentBuyIn, decimal tournamentRake, TournamentSpeed speed, int finishPosition, decimal wonAmount, string culture) { var cultureInfo = new CultureInfo(culture); Thread.CurrentThread.CurrentCulture = cultureInfo; var handHistory = ParseHandHistory(handHistoryFile); Assert.IsTrue(handHistory.GameDescription.IsTournament); Assert.AreEqual(tournamentId, handHistory.GameDescription.Tournament.TournamentId, "Tournament id must match."); Assert.AreEqual(tournamentName, handHistory.GameDescription.Tournament.TournamentName, "TournamentName must match."); Assert.AreEqual(gameType, handHistory.GameDescription.GameType, "GameType must match."); Assert.AreEqual(speed, handHistory.GameDescription.Tournament.Speed, "Speed must match."); Assert.AreEqual(tournamentBuyIn, handHistory.GameDescription.Tournament.BuyIn.PrizePoolValue, "PrizePoolValue must match."); Assert.AreEqual(tournamentRake, handHistory.GameDescription.Tournament.BuyIn.Rake, "Rake must match."); Assert.AreEqual(finishPosition, handHistory.GameDescription.Tournament.FinishPosition, "FinishPosition must match."); Assert.AreEqual(wonAmount, handHistory.GameDescription.Tournament.Winning, "Winning must match."); }