C# Class System.Collections.Tests.ICollection_NonGeneric_Tests

Contains tests that ensure the correctness of any class that implements the nongeneric ICollection interface
Afficher le fichier Open project: dotnet/corefx

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected abstract AddToCollection ( ICollection collection, int numberOfItemsToAdd ) : void
collection ICollection
numberOfItemsToAdd int
Résultat void

NonGenericICollectionFactory() protected abstract méthode

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

NonGenericICollectionFactory() protected méthode

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.
Résultat ICollection

NonGenericIEnumerableFactory() protected méthode

protected NonGenericIEnumerableFactory ( int count ) : IEnumerable
count int
Résultat IEnumerable