Exemple #1
0
        public void GetNumberOfPeaksTest(int inputArrayNumb, int expected)
        {
            int[,] actualArgument = GetInputArrayMock(inputArrayNumb);
            int actual = Arrays2D.GetNumberOfPeaks(actualArgument);

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
 public void TransposeTest(int inputArrayNumber, int ExpectedArrayNumber)
 {
     int[,] actualArgument = GetInputArrayMock(inputArrayNumber);
     int[,] actual         = Arrays2D.Transpose(actualArgument);
     int[,] expected       = GetExpectedArrayMock(ExpectedArrayNumber);
     Assert.AreEqual(expected, actual);
 }
Exemple #3
0
 public static void TransposeArrayTest(int arrN, int expN)
 {
     int[,] a        = GetMockArray(arrN);
     int[,] expected = GetExpectedTransposedMockArray(expN);
     int[,] actual   = Arrays2D.TransposeArray(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #4
0
        public static void FindAmountOfElementsBiggerThanAllNearbyElementsTest(int arrN, int expected)
        {
            int[,] a = GetMockArray(arrN);
            int actual = Arrays2D.FindAmountOfElementsBiggerThanAllNearbyElements(a);

            Assert.AreEqual(expected, actual);
        }
Exemple #5
0
        public static void FindBiggestElementInArrayTest(int arrN, int expected)
        {
            int[,] a = GetMockArray(arrN);
            int actual = Arrays2D.FindBiggestElementInArray(a);

            Assert.AreEqual(expected, actual);
        }
Exemple #6
0
        static void Main(string[] args)
        {
            Console.WriteLine(Conditions.GetWitingOfNumber(25));
            double a = Variables.SolveExpression(3, 7);

            int[] ab = Arrays2D.GetIndexOfMaximum(new int[, ]
            {
                { 4, 43, 234, 23, 43, 32, 3 },
                { 435, 4, 87, 657, 34, 65, 678 },
                { 456, 34, 564, 324, 45, 23, 45 }
            });
        }
Exemple #7
0
 public void GetIndexOfMinimalTest(int inputArrayNumb, int[] expected)
 {
     int[,] actualArgument = GetInputArrayMock(inputArrayNumb);
     int[] actual = Arrays2D.GetIndexOfMinimal(actualArgument);
     Assert.AreEqual(expected, actual);
 }