public void FibonacciSeries_Test()
        {
            int input = 25;

            int value1 = RecursionAlgorithms.FibonacciSeries(input);

            Assert.True(value1 == 75025);
        }
        public void Power_Test()
        {
            int input = 3;

            int value1 = RecursionAlgorithms.Power(input, input);

            Assert.True(value1 == 27);
        }
        public void MinMaxArraySwap_Test()
        {
            int input = 15896;

            int value1 = RecursionAlgorithms.SumDigits(input);

            Assert.True(value1 == 29);
        }
        public void BinarySearchRecursive_Test()
        {
            int[] input = new int[] { 10, 45, 232, 4, 565, 22, 234, 34 };

            Array.Sort(input);

            int value1 = RecursionAlgorithms.BinarySearchRecursive(input, 22, 0, input.Length);

            Assert.True(value1 == 3);
        }
        public void QuickSortRecursive_Test()
        {
            int[] input = new int[] { 10, 45, 232, 4, 565, 22, 234, 34 };

            RecursionAlgorithms.QuickSortRecursive(input, 0, input.Length - 1);

            int[] expectedOutput = new int[] { 4, 10, 22, 34, 45, 232, 234, 565 };

            bool isEqual = Enumerable.SequenceEqual(expectedOutput, input);

            Assert.True(isEqual);
        }
        public void ConvertDecimalToBinary_Test()
        {
            int input = 325;

            List <string> result = new List <string>();

            int value1 = RecursionAlgorithms.ConvertDecimalToBinary(input, result);

            string binary = string.Join("", result);

            Assert.True(binary == "101000101");
        }
 public void RecursionAlgorithms_GenerateBinaryStrings_Length3_Test()
 {
     RecursionAlgorithms.GenerateBinaryStrings(3);
 }
 public void RecursionAlgorithms_Tower_Of_Hanoi_Test()
 {
     RecursionAlgorithms.TowerOfHanoi(3, 'A', 'B', 'C');
 }
        public void RecursionAlgorithms_Power_N_1_Should_Return_X()
        {
            var result = RecursionAlgorithms.Power(3, 1);

            Assert.AreEqual(3, result);
        }
        public void RecursionAlgorithms_Power_N_0_Should_Return_1()
        {
            var result = RecursionAlgorithms.Power(3, 0);

            Assert.AreEqual(1, result);
        }
        public void RecursionAlgorithms_Power_Test()
        {
            var result = RecursionAlgorithms.Power(3, 4);

            Assert.AreEqual(81, result);
        }
        public void LCMRecursive_Test()
        {
            int result = RecursionAlgorithms.LCMRecursive(10, 135);

            Assert.True(result == 270);
        }
        public void GCDRecursive_Test()
        {
            int result = RecursionAlgorithms.GCDRecursive(10, 135);

            Assert.True(result == 5);
        }