Пример #1
0
        public void When_Play_Round_Then_Save_Score()
        {
            // Arrange
            Game game   = new Game();
            int  score1 = 5;
            int  score2 = 3;

            // Act
            var result = game.PlayRound(score1, score2);

            // Assert
            game.frameScores[1][HitEnum.One].Should().Be(5);
            game.frameScores[1][HitEnum.Two].Should().Be(3);
        }
Пример #2
0
        public void When_Play_Round_Then_Return_Result()
        {
            // Arrange
            Game game   = new Game();
            int  score1 = 5;
            int  score2 = 3;

            // Act
            var result = game.PlayRound(score1, score2);

            // Assert
            result[HitEnum.One].Should().Be(5);
            result[HitEnum.Two].Should().Be(3);
        }