public void BitInsert_15insertnegative56from20to33_exceptionreturned()
        {
            // Arrange.
            int number1 = 15, number2 = 56;
            int i = 20, j = 33;

            // Act.
            MathAlgorithm.BitInsert(number1, number2, i, j);
        }
        public void BitInsert_8insert15from0to0_9returned()
        {
            // Arrange.
            int number1 = 8, number2 = 15;
            int i = 0, j = 0;
            int expected = 9;

            // Act.
            int actual = MathAlgorithm.BitInsert(number1, number2, i, j);

            // Assert.
            Assert.AreEqual(expected, actual);
        }
        public void BitInsert_8insert15from3to8_120returned()
        {
            // Arrange.
            int number1 = 8, number2 = 15;
            int i = 3, j = 8;
            int expected = 120;

            // Act.
            int actual = MathAlgorithm.BitInsert(number1, number2, i, j);

            // Assert.
            Assert.AreEqual(expected, actual);
        }
 public int BitInsertTest(int number1, int number2, int startPosition, int endPosition)
 {
     return(MathAlgorithm.BitInsert(number1, number2, startPosition, endPosition));
 }