public void ArrayIndexOf() { int[] intArray = {1, 2, 3, 4, 5}; const int expectedVal = 2; //Since Arrays are zero based, we expect the integer 3 to be at position 2 Assert.AreEqual(Array.IndexOf(intArray, 3), expectedVal); } }