public void Clear() { Assert.Throws <NotSupportedException>(() => _readOnly.Clear()); _array.Clear(); Assert.AreEqual(6, _array.Length); foreach (var item in _array) { Assert.AreEqual(null, item); } }
public void Clear() { Assert.Throws <NotSupportedException>(() => _readOnly.Clear()); _array.Clear(); Assert.AreEqual(6, _array.Length); foreach (var item in _array) { Assert.AreEqual(null, item); } }