예제 #1
0
        public void SquareArray_GivenSortedArrayOptimal_AllElementsSquaredInNewArray(int[] arr, int[] expected)
        {
            var squaredArr = SortedSquaredArray.SquareArray2(arr);

            Assert.That(squaredArr, Is.EquivalentTo(expected));
        }
        public void Test_GetSortedSquaredArray(int[] input, int[] expected)
        {
            var actual = SortedSquaredArray.GetSortedSquaredArray(input);

            Assert.That(actual, Is.EqualTo(expected));
        }