public CountUpModeScreen(CountUp countUp) : base(countUp) { GuiComponents.Add(new PointsPerDartComponent(countUp)); GuiComponents.Add(new BigScoreComponent(countUp)); GuiComponents.Add(new RoundScoresComponent(countUp)); }
public void TestNextPlayer() { var countUp = new CountUp(3); Assert.AreEqual(0, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(1, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(2, countUp.CurrentPlayerIndex); Assert.AreEqual(0, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(0, countUp.CurrentPlayerIndex); Assert.AreEqual(1, countUp.CurrentRoundIndex); countUp.NextPlayer(); Assert.AreEqual(1, countUp.CurrentPlayerIndex); Assert.AreEqual(1, countUp.CurrentRoundIndex); }