Exemplo n.º 1
0
        public void IsReported_NoMatchesReported_False()
        {
            var round = new Round();

            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));
            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));
            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));

            Assert.IsFalse(round.IsRoundReported());
        }
Exemplo n.º 2
0
        public void IsReported_AllMatchesReported_True()
        {
            var round = new Round();

            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));
            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));
            round.Matches.Add(new Match(new Player("asd"), new Player("ds")));

            round.Matches[0].Reported = true;
            round.Matches[1].Reported = true;
            round.Matches[2].Reported = true;

            Assert.IsTrue(round.IsRoundReported());
        }