public void GetValueByIndexTest(int index) { var collection = new AvoidingLargeObjectHeapReadOnlyCollection <int>(_getEnumerable(50000)); Assert.Equal(index, collection[index]); }
public void GettingIndexOutOfRangeExceptionTest(int index) { var collection = new AvoidingLargeObjectHeapReadOnlyCollection <int>(_getEnumerable(50000)); Assert.Throws <IndexOutOfRangeException>(() => collection[index]); }
public void CountTest(int count) { var collection = new AvoidingLargeObjectHeapReadOnlyCollection <int>(_getEnumerable(count)); Assert.Equal(count, collection.Count); }