Пример #1
0
        public void should_return000vs000_atMatchStart()
        {
            // given
            ScoreKeeper scoreKeeper = new ScorersTable();

            // when
            string score = scoreKeeper.getScore();

            // then
            score.Should().Be("000:000");
        }
Пример #2
0
        public void should_return003vs000_whenTeamAScoreThreePoints()
        {
            // given
            ScoreKeeper scoreKeeper = new ScorersTable();

            // when
            scoreKeeper.scoreTeamA3();
            string score = scoreKeeper.getScore();

            // then
            score.Should().Be("003:000");
        }
Пример #3
0
        public void should_return002vs001_whenTeamAScoreTwoPointsAndTeamBScoreOnePoint()
        {
            // given
            ScoreKeeper scoreKeeper = new ScorersTable();

            // when
            scoreKeeper.scoreTeamA2();
            scoreKeeper.scoreTeamB1();
            string score = scoreKeeper.getScore();

            // then
            score.Should().Be("002:001");
        }