public void GetNumberOfPeaksTest(int inputArrayNumb, int expected) { int[,] actualArgument = GetInputArrayMock(inputArrayNumb); int actual = Arrays2D.GetNumberOfPeaks(actualArgument); Assert.AreEqual(expected, actual); }
public void TransposeTest(int inputArrayNumber, int ExpectedArrayNumber) { int[,] actualArgument = GetInputArrayMock(inputArrayNumber); int[,] actual = Arrays2D.Transpose(actualArgument); int[,] expected = GetExpectedArrayMock(ExpectedArrayNumber); Assert.AreEqual(expected, actual); }
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); }
public static void FindAmountOfElementsBiggerThanAllNearbyElementsTest(int arrN, int expected) { int[,] a = GetMockArray(arrN); int actual = Arrays2D.FindAmountOfElementsBiggerThanAllNearbyElements(a); Assert.AreEqual(expected, actual); }
public static void FindBiggestElementInArrayTest(int arrN, int expected) { int[,] a = GetMockArray(arrN); int actual = Arrays2D.FindBiggestElementInArray(a); Assert.AreEqual(expected, actual); }
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 } }); }
public void GetIndexOfMinimalTest(int inputArrayNumb, int[] expected) { int[,] actualArgument = GetInputArrayMock(inputArrayNumb); int[] actual = Arrays2D.GetIndexOfMinimal(actualArgument); Assert.AreEqual(expected, actual); }