public void TestGetRound16Score_ShouldReturnPointsPerCorrectWinner() { string bet = @"[stage-two] round-of-16 = [ ""Brasil"", ""Spania"", ""England"", ""Italia"", ""Nigeria"", ""Argentina"", ""Tyskland"", ""Portugal"",] "; string res = @"[stage-two] round-of-16 = [ ""Brasil"",] "; var user = new Results(bet.ParseAsToml()); var actual = new Results(res.ParseAsToml()); var s = new ScoringSystem(user, actual); s.GetRound16Score().ShouldBe(ScoringSystem.Points.Round16Winner); res = @"[stage-two] round-of-16 = [ ""Brasil"", ""Spania"", ] "; actual = new Results(res.ParseAsToml()); s = new ScoringSystem(user, actual); s.GetRound16Score().ShouldBe(2 * ScoringSystem.Points.Round16Winner); res = @"[stage-two] round-of-16 = [ ""NotATeam"", ""Spania"", ] "; actual = new Results(res.ParseAsToml()); s = new ScoringSystem(user, actual); s.GetRound16Score().ShouldBe(ScoringSystem.Points.Round16Winner); }
public void TestGetRound16Score_ShouldNotReturnPoints_WhenActualIsDash() { string res = @"[stage-two] round-of-16 = [ ""Tyskland"", ""-"", ] "; var actual = new Results(res.ParseAsToml()); var s = new ScoringSystem(actual, actual); s.GetRound16Score().ShouldBe(ScoringSystem.Points.Round16Winner); }