Пример #1
0
        public void ShouldScoreBothSides()
        {
            //arrange
            int             a0 = 1;
            int             a1 = 3;
            int             a2 = 5;
            int             b0 = 4;
            int             b1 = 3;
            int             b2 = 1;
            string          expectedOutcome = "1 1";
            CompareTriplets compare         = new CompareTriplets(a0, a1, a2, b0, b1, b2);

            //act
            string score = compare.Outcome();

            //assert
            score.Should().Be(expectedOutcome);
        }
Пример #2
0
        public void ShouldScoreBothTied()
        {
            //arrange
            int             a0 = 0;
            int             a1 = 0;
            int             a2 = 0;
            int             b0 = 0;
            int             b1 = 0;
            int             b2 = 0;
            string          expectedOutcome = "0 0";
            CompareTriplets compare         = new CompareTriplets(a0, a1, a2, b0, b1, b2);

            //act
            string score = compare.Outcome();

            //assert
            score.Should().Be(expectedOutcome);
        }
Пример #3
0
        public void ShouldScoreWinnerB()
        {
            //arrange
            int             a0 = 1;
            int             a1 = 2;
            int             a2 = 3;
            int             b0 = 4;
            int             b1 = 5;
            int             b2 = 6;
            string          expectedOutcome = "0 3";
            CompareTriplets compare         = new CompareTriplets(a0, a1, a2, b0, b1, b2);

            //act
            string score = compare.Outcome();

            //assert
            score.Should().Be(expectedOutcome);
        }