public void CopyTo_NegativeIndex_ThrowsArgumentOutOfRangeException() { using (var entry = new DirectoryEntry()) { PropertyCollection properties = entry.Properties; AssertExtensions.Throws <ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", null, () => properties.CopyTo(new PropertyValueCollection[0], -1)); AssertExtensions.Throws <ArgumentOutOfRangeException>("Number was less than the array's lower bound in the first dimension.", null, () => ((ICollection)properties).CopyTo(new PropertyValueCollection[0], -1)); } }