示例#1
0
        public void GetResult_input_1_2_3_4_should_be_no_points()
        {
            input = new List <int> {
                1, 2, 3, 4
            };
            var target   = new Sibala();
            var actual   = target.GetResult(input);
            var expected = "no points";

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void GetResult_input_1_1_1_1_Should_Be_Same_Color()
        {
            //arrange
            input = new List <int> {
                1, 1, 1, 1
            };
            var target   = new Sibala();
            var expected = "same color";

            //act
            var actual = target.GetResult(input);

            //assert
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void GetResult_input_1_6_1_6_Should_Be_Sibala()
        {
            //arrange
            input = new List <int> {
                1, 6, 1, 6
            };
            var target   = new Sibala();
            var expected = "Sibala";

            //act
            var actual = target.GetResult(input);

            //assert
            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void GetResult_input_5_1_5_2_Should_Be_BG()
        {
            //arrange
            input = new List <int> {
                5, 1, 5, 2
            };
            var target   = new Sibala();
            var expected = "BG";

            //act
            var actual = target.GetResult(input);

            //assert
            Assert.AreEqual(expected, actual);
        }
示例#5
0
        public void GetResult_input_1_2_3_1_Should_Be_5_points()
        {
            //arrange
            input = new List <int> {
                1, 2, 3, 1
            };
            var target   = new Sibala();
            var expected = "5 points";

            //act
            var actual = target.GetResult(input);

            //assert
            Assert.AreEqual(expected, actual);
        }