예제 #1
0
        public void SibalaGameTest_6623_MaxValue3()
        {
            var actual = new SibalaGame(new List <int> {
                6, 6, 2, 3
            }).MaxDice;

            Assert.AreEqual(3, actual);
        }
예제 #2
0
 public int GetResult(SibalaGame x, SibalaGame y)
 {
     if (x.Point == y.Point)
     {
         return(x.MaxDice - y.MaxDice);
     }
     else
     {
         return(x.Point - y.Point);
     }
 }
예제 #3
0
        public void NormalPoint_1133_Should_Smaller_than_NormalPoint_1124()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                1, 1, 3, 3
            });
            _inputResult2 = new SibalaGame(new List <int> {
                1, 1, 2, 4
            });

            AssertInputIsSmaller();
        }
예제 #4
0
        public void SamePoint_4_Should_Bigger_than_SamePoint_6()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                4, 4, 4, 4
            });
            _inputResult2 = new SibalaGame(new List <int> {
                6, 6, 6, 6
            });

            AssertInput1IsBigger();
        }
예제 #5
0
        public void NormalPoint_10_Should_Bigger_than_NormalPoint_6()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                3, 3, 5, 5
            });
            _inputResult2 = new SibalaGame(new List <int> {
                1, 1, 3, 3
            });

            AssertInput1IsBigger();
        }
예제 #6
0
        public void SamePoint_Should_Bigger_than_NoPoint()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                1, 1, 1, 1
            });
            _inputResult2 = new SibalaGame(new List <int> {
                1, 5, 2, 3
            });

            AssertInput1IsBigger();
        }
예제 #7
0
        public void NormalPoint_1123_Should_Equal_NormalPoint_1123()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                1, 1, 2, 3
            });
            _inputResult2 = new SibalaGame(new List <int> {
                1, 1, 2, 3
            });

            AssertInputIsEqual();
        }
예제 #8
0
        public void SamePoint_1111_Should_Equal_SamePoint_1111()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                1, 1, 1, 1
            });
            _inputResult2 = new SibalaGame(new List <int> {
                1, 1, 1, 1
            });

            AssertInputIsEqual();
        }
예제 #9
0
        public void NoPoint_1234_Should_Equal_NoPoint_2345()
        {
            _inputResult1 = new SibalaGame(new List <int> {
                1, 2, 3, 4
            });
            _inputResult2 = new SibalaGame(new List <int> {
                2, 3, 4, 5
            });

            AssertInputIsEqual();
        }
예제 #10
0
        private static void Test(List <int> input, string output)
        {
            var actual = new SibalaGame(input).Output;

            Assert.AreEqual(output, actual);
        }
예제 #11
0
 public NoPointResultHandler(SibalaGame sibalaGame)
 {
     _sibalaGame = sibalaGame;
 }
예제 #12
0
 public int GetResult(SibalaGame sibalaGame, SibalaGame sibalaGame1)
 {
     return(0);
 }