public void FindIndexMaxElement_WhenArrayPassed_ShouldResult(int mockNumber, int expected) { int[] arr = ArrayTests.GetArrayMock(mockNumber); int actual = Array.FindIndexMaxElement(arr); Assert.AreEqual(expected, actual); }
public void GetCountOfOddElements_WhenArrayPassed_ShouldResult(int mockNumber, int expected) { int[] arr = ArrayTests.GetArrayMock(mockNumber); int actual = Array.GetCountOfOddElements(arr); Assert.AreEqual(expected, actual); }
public void SummElemWithOddIndex_WhenArrayPassed_ShouldResult(int mockNumber, int expected) { int[] arr = ArrayTests.GetArrayMock(mockNumber); int actual = Array.SummElemWithOddIndex(arr); Assert.AreEqual(expected, actual); }
public void GetSwapedHalves_WhenArrayPassed_ShouldResult(int mockNumber, int[] expected) { int[] arr = ArrayTests.GetArrayMock(mockNumber); int[] actual = Array.GetSwapedHalves(arr); Assert.AreEqual(expected, actual); }