Arrays.Arrays.ArraysAreReferences C# (CSharp) Method

ArraysAreReferences() private method

private ArraysAreReferences ( ) : void
return void
        public void ArraysAreReferences()
        {
            int[] IntArray = new int[5]; // Int arrays are initialized on 0 by default
            modifyArray(IntArray);
            const int expectedVal = 1;
                //Since Arrays are references, by entering to the method, the value of the reference is modified

            Assert.AreEqual(IntArray[1], expectedVal);

        }