Commit Graph
6 Commits
Author SHA1 Message Date
Jonathan Pryor 79e8435e20 * System.Collections.ObjectModel/KeyedCollection.cs: Make
KeyedCollection.InsertItem() exception safe, so that if the index is 
	  invalid (negative or too large) we don't add the entry to the 
	  underlying Dictionary.
	* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify 
	  exception safety of Insert().

svn path=/trunk/mcs/; revision=158748
2010-06-09 20:19:58 +00:00
Juraj Skripsky fd0d02b77b 2008-01-20 Juraj Skripsky <[email protected]>
* ReadOnlyCollection.cs: Fix the getters for ICollection.IsSynchronized,
	ICollection.SyncRoot and IList.IsFixedSize to match MS.NET.

2008-01-20  Juraj Skripsky  <[email protected]>

	* ReadOnlyCollectionTest.cs: Add test to verify that ReadOnlyCollection
	is indeed only a simple wrapper for a given IList.
	Add tests for ICollection.IsSynchronized, IList.IsFixedSize and
	IList.IsReadOnly.


svn path=/trunk/mcs/; revision=93357
2008-01-20 20:44:34 +00:00
Gert Driesen d1c1f16c5c * corlib_test.dll.sources: added ReadOnlyCollectionTest.cs.
* CollectionTest.cs: Added test for ICollection.CopyTo.
* ReadOnlyCollectionTest.cs: Added ctor tests, and test for
ICollection.CopyTo.

svn path=/trunk/mcs/; revision=92814
2008-01-13 18:51:59 +00:00
Atsushi Eno b5b6edd5d5 2005-10-25 Carlo Kok <[email protected]>
* Collection.cs :
	  Added virtual ClearItems, InsertItem, RemoveItem, SetITem.
	* KeyedCollection.cs : Implemented.

2005-10-25  Atsushi Enomoto  <[email protected]>

	* corlib_test.dll.sources : added System.Collections.ObjectModel/KeyedCollectionTest.cs.

	* KeyedCollectionTest.cs : new file by Carlo Kok ([email protected]).


svn path=/trunk/mcs/; revision=52203
2005-10-25 19:41:00 +00:00
Raja R Harinath dad7efcaa7 * CollectionTest.cs (IEnumerable.GetEnumerator): Don't prefix with
System.Collections, since it resolves to the MonoTests namespace.

svn path=/trunk/mcs/; revision=46305
2005-06-21 13:11:55 +00:00
David Waite f6853a4e5e 2005-06-21 David Waite <[email protected]>
* Collection.cs ReadonlyCollection.cs: Implement all methods
	* CollectionTest.cs : added
	* corlib_test.dll.sources: Added System.Collections.ObjectModel.Collection test

svn path=/trunk/mcs/; revision=46281
2005-06-21 06:39:00 +00:00