Example #1
0
        public void TestValidateGetArithmeticLenght()
        {
            // Arrange
            int sumLenght        = 0;
            int arithmeticLenght = 0;

            // Act
            breakpoints.GetArrayAllBreakpoints(GAME_LOCATION);
            breakpoints.GetCoutPairs(COUNT_BREAKPOINTS);

            sumLenght        = breakpoints.GetArrayLeghtPairsKT(COUNT_PAIRS_BREAKPOINTS, ID_PLAYER);
            arithmeticLenght = Convert.ToInt32(Math.Ceiling(Convert.ToDouble(sumLenght / COUNT_PAIRS_BREAKPOINTS)));

            // Assert
            Assert.AreEqual(ARITHMETIC_LENGTH, arithmeticLenght);
        }