/// <summary> /// Initializes a new instance of the ICollection_Test. /// </summary> /// <param name="collection">The collection to run the tests on.</param> /// <param name="items">The items currently in the collection.</param> /// <param name="expectedIsSynchronized">The expected value of IsSynchronized</param> /// <param name="createNewCollection">Creates a new Collection. This is used to verify /// that SyncRoot returns different values from different collections.</param> public ICollection_Test(ICollection collection, Object[] items, bool expectedIsSynchronized, CreateNewICollection createNewCollection) : base(collection, items) { _collection = collection; _expectedIsSynchronized = expectedIsSynchronized; _createNewCollection = createNewCollection; _validArrayTypes = new Type[] { typeof(Object) }; _invalidArrayTypes = new Type[] { typeof(MyInvalidReferenceType), typeof(MyInvalidValueType) }; _copyToOnlySupportsZeroLowerBounds = false; }