C# Class System.Collections.Tests.ICollection_NonGeneric_Tests

Contains tests that ensure the correctness of any class that implements the nongeneric ICollection interface
Mostra file Open project: dotnet/corefx

Protected Methods

Method Description
AddToCollection ( ICollection collection, int numberOfItemsToAdd ) : void
NonGenericICollectionFactory ( ) : ICollection

Creates an instance of an ICollection that can be used for testing.

NonGenericICollectionFactory ( int count ) : ICollection

Creates an instance of an ICollection that can be used for testing.

NonGenericIEnumerableFactory ( int count ) : IEnumerable

Private Methods

Method Description
ICollection_NonGeneric_CopyTo_ArrayIsLargerThanCollection ( int count ) : void
ICollection_NonGeneric_CopyTo_ArrayOfEnumType ( int count ) : void
ICollection_NonGeneric_CopyTo_ArrayOfIncorrectReferenceType ( int count ) : void
ICollection_NonGeneric_CopyTo_ArrayOfIncorrectValueType ( int count ) : void
ICollection_NonGeneric_CopyTo_ExactlyEnoughSpaceInArray ( int count ) : void
ICollection_NonGeneric_CopyTo_IndexEqualToArrayCount_ThrowsArgumentException ( int count ) : void
ICollection_NonGeneric_CopyTo_IndexLargerThanArrayCount_ThrowsAnyArgumentException ( int count ) : void
ICollection_NonGeneric_CopyTo_NegativeIndex_ThrowsArgumentOutOfRangeException ( int count ) : void
ICollection_NonGeneric_CopyTo_NonZeroLowerBound ( int count ) : void
ICollection_NonGeneric_CopyTo_NotEnoughSpaceInOffsettedArray_ThrowsArgumentException ( int count ) : void
ICollection_NonGeneric_CopyTo_NullArray_ThrowsArgumentNullException ( int count ) : void
ICollection_NonGeneric_CopyTo_TwoDimensionArray_ThrowsException ( int count ) : void
ICollection_NonGeneric_Count_Validity ( int count ) : void
ICollection_NonGeneric_IsSynchronized ( int count ) : void
ICollection_NonGeneric_SyncRoot ( int count ) : void
ICollection_NonGeneric_SyncRootUnique ( int count ) : void

Method Details

AddToCollection() protected abstract method

protected abstract AddToCollection ( ICollection collection, int numberOfItemsToAdd ) : void
collection ICollection
numberOfItemsToAdd int
return void

NonGenericICollectionFactory() protected abstract method

Creates an instance of an ICollection that can be used for testing.
protected abstract NonGenericICollectionFactory ( ) : ICollection
return ICollection

NonGenericICollectionFactory() protected method

Creates an instance of an ICollection that can be used for testing.
protected NonGenericICollectionFactory ( int count ) : ICollection
count int The number of unique items that the returned ICollection contains.
return ICollection

NonGenericIEnumerableFactory() protected method

protected NonGenericIEnumerableFactory ( int count ) : IEnumerable
count int
return IEnumerable