public void ElementAtOrDefaultShouldReturnNullForIndexOutOfRange( int index ) { // arrange var list = new ArrayList() { new object(), new object(), new object() }; // act var actual = list.ElementAtOrDefault( index ); // assert Assert.Null( actual ); }