C# Класс System.Collections.Tests.IList_NonGeneric_Tests

Contains tests that ensure the correctness of any class that implements the nongeneric IList interface
Наследование: ICollection_NonGeneric_Tests
Показать файл Открыть проект

Защищенные методы

Метод Описание
AddToCollection ( ICollection collection, int numberOfItemsToAdd ) : void
AddToCollection ( IList collection, int numberOfItemsToAdd ) : void
CreateT ( int seed ) : object

Creates an object that is dependent on the seed given. The object may be either a value type or a reference type, chosen based on the value of the seed.

NonGenericICollectionFactory ( ) : ICollection
NonGenericICollectionFactory ( int count ) : ICollection
NonGenericIListFactory ( ) : IList

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

NonGenericIListFactory ( int count ) : IList

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

Приватные методы

Метод Описание
IListNonGeneric_Remove_OnReadOnlyCollection_ThrowsNotSupportedException ( int count ) : void
IList_NonGeneric_Add_AfterCallingClear ( int count ) : void
IList_NonGeneric_Add_AfterRemoving ( int count ) : void
IList_NonGeneric_Add_AfterRemovingAllItems ( int count ) : void
IList_NonGeneric_Add_AfterRemovingAnyValue ( int count ) : void
IList_NonGeneric_Add_DuplicateValue ( int count ) : void
IList_NonGeneric_Add_InvalidValueToBeginningOfCollection ( int count ) : void
IList_NonGeneric_Add_InvalidValueToEndOfCollection ( int count ) : void
IList_NonGeneric_Add_InvalidValueToMiddleOfCollection ( int count ) : void
IList_NonGeneric_Add_Null ( int count ) : void
IList_NonGeneric_Add_ToReadOnlyCollection ( int count ) : void
IList_NonGeneric_Clear ( int count ) : void
IList_NonGeneric_Contains_InvalidValue_ThrowsArgumentException ( int count ) : void
IList_NonGeneric_Contains_NullOnCollectionContainingNull ( int count ) : void
IList_NonGeneric_Contains_NullOnCollectionNotContainingNull ( int count ) : void
IList_NonGeneric_Contains_ValidValueOnCollectionNotContainingThatValue ( int count ) : void
IList_NonGeneric_Contains_ValidValueThatExistsTwiceInTheCollection ( int count ) : void
IList_NonGeneric_IList_NonGeneric_Contains_ValidValueOnCollectionContainingThatValue ( int count ) : void
IList_NonGeneric_IndexOf_EachValueNoDuplicates ( int count ) : void
IList_NonGeneric_IndexOf_InvalidValue ( int count ) : void
IList_NonGeneric_IndexOf_NullContainedInList ( int count ) : void
IList_NonGeneric_IndexOf_NullNotContainedInList ( int count ) : void
IList_NonGeneric_IndexOf_ReturnsFirstMatchingValue ( int count ) : void
IList_NonGeneric_IndexOf_ValueInCollectionMultipleTimes ( int count ) : void
IList_NonGeneric_Insert_DuplicateValues ( int count ) : void
IList_NonGeneric_Insert_FirstItemToNonNull ( int count ) : void
IList_NonGeneric_Insert_FirstItemToNull ( int count ) : void
IList_NonGeneric_Insert_IndexGreaterThanListCount_Appends ( int count ) : void
IList_NonGeneric_Insert_InvalidValue ( int count ) : void
IList_NonGeneric_Insert_LastItemToNonNull ( int count ) : void
IList_NonGeneric_Insert_LastItemToNull ( int count ) : void
IList_NonGeneric_Insert_NegativeIndex_ThrowsException ( int count ) : void
IList_NonGeneric_Insert_ToReadOnlyList ( int count ) : void
IList_NonGeneric_IsFixedSize_Validity ( int count ) : void
IList_NonGeneric_IsReadOnly_Validity ( int count ) : void
IList_NonGeneric_ItemGet_IndexGreaterThanListCount_ThrowsException ( int count ) : void
IList_NonGeneric_ItemGet_NegativeIndex_ThrowsException ( int count ) : void
IList_NonGeneric_ItemGet_ValidGetWithinListBounds ( int count ) : void
IList_NonGeneric_ItemSet_DuplicateValues ( int count ) : void
IList_NonGeneric_ItemSet_FirstItemToNonNull ( int count ) : void
IList_NonGeneric_ItemSet_FirstItemToNull ( int count ) : void
IList_NonGeneric_ItemSet_IndexGreaterThanListCount_ThrowsException ( int count ) : void
IList_NonGeneric_ItemSet_InvalidValue ( int count ) : void
IList_NonGeneric_ItemSet_LastItemToNonNull ( int count ) : void
IList_NonGeneric_ItemSet_LastItemToNull ( int count ) : void
IList_NonGeneric_ItemSet_NegativeIndex_ThrowsException ( int count ) : void
IList_NonGeneric_ItemSet_OnReadOnlyList ( int count ) : void
IList_NonGeneric_RemoveAt_AllValidIndices ( int count ) : void
IList_NonGeneric_RemoveAt_IndexGreaterThanListCount_ThrowsException ( int count ) : void
IList_NonGeneric_RemoveAt_NegativeIndex_ThrowsException ( int count ) : void
IList_NonGeneric_RemoveAt_OnReadOnlyList ( int count ) : void
IList_NonGeneric_RemoveAt_ZeroMultipleTimes ( int count ) : void
IList_NonGeneric_Remove_EveryValue ( int count ) : void
IList_NonGeneric_Remove_InvalidValue_ThrowsArgumentException ( int count ) : void
IList_NonGeneric_Remove_NonNullContainedInCollection ( int count ) : void
IList_NonGeneric_Remove_NonNullNotContainedInCollection ( int count ) : void
IList_NonGeneric_Remove_NullContainedInCollection ( int count ) : void
IList_NonGeneric_Remove_NullNotContainedInCollection ( int count ) : void
IList_NonGeneric_Remove_ValueThatExistsTwiceInCollection ( int count ) : void

Описание методов

AddToCollection() защищенный Метод

protected AddToCollection ( ICollection collection, int numberOfItemsToAdd ) : void
collection ICollection
numberOfItemsToAdd int
Результат void

AddToCollection() защищенный Метод

protected AddToCollection ( IList collection, int numberOfItemsToAdd ) : void
collection IList
numberOfItemsToAdd int
Результат void

CreateT() защищенный Метод

Creates an object that is dependent on the seed given. The object may be either a value type or a reference type, chosen based on the value of the seed.
protected CreateT ( int seed ) : object
seed int
Результат object

NonGenericICollectionFactory() защищенный Метод

protected NonGenericICollectionFactory ( ) : ICollection
Результат ICollection

NonGenericICollectionFactory() защищенный Метод

protected NonGenericICollectionFactory ( int count ) : ICollection
count int
Результат ICollection

NonGenericIListFactory() защищенный абстрактный Метод

Creates an instance of an IList that can be used for testing.
protected abstract NonGenericIListFactory ( ) : IList
Результат IList

NonGenericIListFactory() защищенный Метод

Creates an instance of an IList that can be used for testing.
protected NonGenericIListFactory ( int count ) : IList
count int The number of unique items that the returned IList contains.
Результат IList