public void GetIndexOfMaxElement_WhenArray_ShouldGetIndexOfMaxElement(int arrayNumb, int expectedI, int expectedJ) { Tuple <int, int> actual = TwoDimensionalArrays.GetIndexOfMaxElement(TwoDimensionalArraysMock.GetMock(arrayNumb)); int actualI = actual.Item1; int actualJ = actual.Item2; Assert.AreEqual(expectedI, actualI); Assert.AreEqual(expectedJ, actualJ); }
public void GetMinElement_WhenArray_ShouldGetMinElement(int arrayNumb, int expected) { int actual = TwoDimensionalArrays.GetMinElement(TwoDimensionalArraysMock.GetMock(arrayNumb)); Assert.AreEqual(expected, actual); }
public void GetTranspositionArrayTest(int arrayNumb, int expectedArrayNumb) { int[,] actual = TwoDimensionalArrays.GetTranspositionArray(TwoDimensionalArraysMock.GetMock(arrayNumb)); Assert.AreEqual(TwoDimensionalArraysMock.GetMock(expectedArrayNumb), actual); }
public void CountElementsBiggerThanNeighborsTest(int arrayNumb, int expected) { int actual = TwoDimensionalArrays.CountElementsBiggerThanNeighbors(TwoDimensionalArraysMock.GetMock(arrayNumb)); Assert.AreEqual(expected, actual); }