コード例 #1
0
        public void ShouldScoreArraySelfWinner()
        {
            ScoreArray scoreA = new ScoreArray(new List <int> {
                6, 6, 6
            });
            ScoreArray scoreB = new ScoreArray(new List <int> {
                3, 4, 5
            });

            string actual = scoreA.ScoreAgainstAnother(scoreB);

            actual.Should().Be("3 0");
        }
コード例 #2
0
        public void ShouldScoreArrayOtherWinnerWith2()
        {
            ScoreArray scoreA = new ScoreArray(new List <int> {
                24, 1, 0
            });
            ScoreArray scoreB = new ScoreArray(new List <int> {
                3, 4, 5
            });

            string actual = scoreA.ScoreAgainstAnother(scoreB);

            actual.Should().Be("1 2");
        }
コード例 #3
0
        public void ShouldScoreArrayTie()
        {
            ScoreArray scoreA = new ScoreArray(new List <int> {
                6, 6, 6
            });
            ScoreArray scoreB = new ScoreArray(new List <int> {
                6, 6, 6
            });

            string actual = scoreA.ScoreAgainstAnother(scoreB);

            actual.Should().Be("0 0");
        }