public void Clear() { var list = new LightweightList <int>(); for (int i = 0; i < 10; i++) { list.Add(i); } list.Clear(); Assert.Equal(16, list.Capacity); Assert.Equal(16, list.GetInternalArray().Length); Assert.Equal(0, list.Count); Assert.Equal(0, list.AsSpan().Length); }