Commit Graph
93 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 56f3fa4091 2009-07-14 Gonzalo Paniagua Javier <[email protected]>
* SortedListTest.cs: new tests by Kevin Fitzgerald.


svn path=/trunk/mcs/; revision=137921
2009-07-15 01:09:20 +00:00
Zoltan Varga f123286285 2009-06-30 Zoltan Varga <[email protected]>
* ReadOnlyCollectionBaseTest.cs NewArrayListTest.cs: Convert all tests
	to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=137132
2009-06-30 02:57:09 +00:00
Robert Jordan a471f312c4 2009-06-26 Robert Jordan <[email protected]>
* BitArrayTest.cs: Upgrade to new NUnit style. Enable
	16 tests that were disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136935
2009-06-26 08:36:55 +00:00
Robert Jordan d377f08546 typo
svn path=/trunk/mcs/; revision=136772
2009-06-24 15:38:01 +00:00
Robert Jordan 29e1464833 2009-06-24 Robert Jordan <[email protected]>
* ArrayListTest.cs, CollectionBaseTest.cs, DictionaryEntryTest.cs,
	HashtableTest.cs: Convert all tests to new-style nunit methods.

	* QueueTest.cs: likewise. Convertion revealed 25 test that were
	disabled after the NUnit 2.4 update.

	* StackTest.cs: likewise. Convertion revealed 24 test that were
	disabled after the NUnit 2.4 update.


svn path=/trunk/mcs/; revision=136771
2009-06-24 14:58:20 +00:00
Zoltan Varga b3c31f5da1 2008-08-31 Zoltan Varga <[email protected]>
* BitArrayTest.cs: Add a test for #421803.

svn path=/trunk/mcs/; revision=111995
2008-08-31 19:45:12 +00:00
Robert Jordan a9f497010c In System.Collections:
2008-05-08  Robert Jordan  <[email protected]>

	* DictionaryEntry.cs: Rename fields for serialization
	compatibility with MS. Accept null keys on 2.0 profile.
	Fixes #381922.

In Test/System.Collections:
2008-05-08  Robert Jordan  <[email protected]>

	* DictionaryEntryTest.cs: Add tests for key's argument validation.


svn path=/trunk/mcs/; revision=102831
2008-05-08 20:57:15 +00:00
Gert Driesen 91a23bb998 * DictionaryBase.cs: Restore previous behavior of indexer for the
1.0 profile. On 2.0 profile, do nothing in IDictionary.Remove if
the key is not present in the hashtable. On 2.0 profile, we also need 
to add entry back to hashtable when an exception is thrown in 
OnRemoveComplete.
* DictionaryBaseTest.cs: Improved existing tests, and use Assert class
instead of deriving from deprecated Assertion class. Code formatting.

svn path=/trunk/mcs/; revision=98844
2008-03-24 07:59:16 +00:00
Sebastien Pouliot 3289f3dae4 2008-03-21 Sebastien Pouliot <[email protected]>
* DictionaryBaseTest.cs: Add test case to see when and how OnGet 
	is being called.


svn path=/trunk/mcs/; revision=98766
2008-03-21 19:04:22 +00:00
Jb Evain 232d3340e1 in System.Collections:
2007-11-06  Jb Evain  <[email protected]>

	* Hashtable.cs: Don't compare user keys against the special removed
	key. Fix #324761.

in Test/System.Collections:
2007-11-06  Jb Evain  <[email protected]>

	* HashtableTest.cs: Add test case for #324761.

svn path=/trunk/mcs/; revision=89004
2007-11-06 16:48:36 +00:00
Sebastien Pouliot 2c7c482a78 2007-11-05 Sebastien Pouliot <[email protected]>
* QueueTest.cs: Test cases for #321657. Based on the test case 
	supplied by Benjamin Lutz.


svn path=/trunk/mcs/; revision=88914
2007-11-05 20:48:19 +00:00
Gert Driesen c9a68abe7d * SortedListTest.cs: Fixed deserialization test to pass on MS.
svn path=/trunk/mcs/; revision=88307
2007-10-27 15:32:07 +00:00
Gert Driesen 53136a526c * SortedListTest.cs: No longer derive from deprecated Assertion class.
Added serialization tests, and a (NotWorking) deserialization test.

svn path=/trunk/mcs/; revision=88021
2007-10-23 19:20:40 +00:00
Gert Driesen 3ca0829cb5 * CaseInsensitiveHashCodeProvider.cs: Lazy init Default instance and
reconstruct it if CurrentCulture changes.
* CaseInsensitiveHashCodeProviderTest.cs: Reworked test for Default
instance to pass on both Mono and MS. Added separate tests that
verify the specific Mono and MS behavior.

svn path=/trunk/mcs/; revision=81412
2007-07-05 17:39:44 +00:00
Gert Driesen 82a943e21a * CaseInsensitiveHashCodeProvider.cs: In default ctor, do not save
TextInfo if current culture is invariant. Remoted private ctor.
In Default, always construct new instance since the current culture
may change. 
* CaseInsensitiveHashCodeProviderTest.cs: Improved test for
Default property to show the a new intance is constructed. Added test
for DefaultInvariant. Improved serialization tests. Added ctor test
for null CultureInfo. Code formatting.
* CultureInfoTest.cs: Fixed UseUserOverride tests to pass on systems
where invariant culture is default locale.

svn path=/trunk/mcs/; revision=81408
2007-07-05 16:40:03 +00:00
Gert Driesen 11e6429229 * ArrayListTest.cs: Code formatting (indenting, spaces to tabs). Added
tests for bugs fixed in .NET 2.0.

svn path=/trunk/mcs/; revision=75920
2007-04-19 11:18:07 +00:00
Boris Kirzner f1e198d195 Test ifdefs for TARGET_JVM.
svn path=/trunk/mcs/; revision=72762
2007-02-13 12:35:19 +00:00
Gert Driesen d92bb1edab * CaseInsensitiveComparerTest.cs: Added tests for bug #80082 and bug #80076.
Improved existing tests.

svn path=/trunk/mcs/; revision=68618
2006-11-28 21:00:21 +00:00
Kornél Pál 2d604bc51e Converted ChangeLogs to UTF-8 and recovered incorrectly encoded characters.
svn path=/trunk/mcs/; revision=63835
2006-08-16 19:42:08 +00:00
Duncan Mak 0f76af7a36 2006-08-08 Duncan Mak <[email protected]>
* ReadOnlyCollectionBase.cs (Count): Mark as virtual in
	NET_2_0. Fixes #79033.

	* ReadOnlyCollectionBaseTest.cs (TestZeroCountOnNew): Add test for
	overriding Count in NET_2_0 for #79033.

svn path=/trunk/mcs/; revision=63516
2006-08-09 04:37:51 +00:00
Atsushi Eno c959126d4c 2006-04-25 Atsushi Enomoto <[email protected]>
* QueueTest.cs, SortedListTest.cs : many capacity-related tests are
	  written under improper assumption. As a result they don't pass when
	  we run make PROFILE=net_2_0 run-test-ondotnet, so got rid of them.


svn path=/trunk/mcs/; revision=59835
2006-04-25 06:48:23 +00:00
Sebastien Pouliot 87a7a9c639 2006-01-04 Sebastien Pouliot <[email protected]>
* HashtableTest.cs: Added test case to check if all subclasses are 
	serializable.


svn path=/trunk/mcs/; revision=55082
2006-01-04 21:28:39 +00:00
Sebastien Pouliot 128f87ac09 2005-12-19 Sebastien Pouliot <[email protected]>
* ArrayListTest.cs: Added test cases for a binary search with an empty
	list (bug #77030). Fixed other test cases so they execute without 
	failures under MS 2.0.


svn path=/trunk/mcs/; revision=54610
2005-12-19 16:01:17 +00:00
Sebastien Pouliot 136d52afda 2005-12-07 Sebastien Pouliot <[email protected]>
* SortedTestList.cs: Added more test for the constructor accepting an
	IComparer and to avoid regression of bug #76750.


svn path=/trunk/mcs/; revision=54066
2005-12-07 21:20:05 +00:00
Sebastien Pouliot 90810ba0af 2005-12-06 Sebastien Pouliot <[email protected]>
* CaseInsensitiveHashCodeProviderTest: Added test cases for the 
	default ctor, roudtripping serialization and deserializing data
	generated on MS 1.1 and 2.0.


svn path=/trunk/mcs/; revision=54017
2005-12-07 02:01:01 +00:00
Sebastien Pouliot 24d1d1d308 2005-12-05 Sebastien Pouliot <[email protected]>
* ComparerTest.cs: Removed "NotWorking" from "Invariant" test case 
	(it's now working). Added new test cases for ISerializable (added in
	SP1 and present in 2.0) and completed coverage with tests for ctor.


svn path=/trunk/mcs/; revision=53940
2005-12-05 18:44:39 +00:00
Atsushi Eno 87d77899f2 2005-09-01 Atsushi Enomoto <[email protected]>
* Hashtable.cs : SyncHashtable.GetEnumerator() returned keys instead
	  of entries (DictionaryEntry). Fixed bug #75790.

	* HashtableTest.cs : testcase for #75790.


svn path=/trunk/mcs/; revision=49248
2005-09-01 06:24:42 +00:00
Atsushi Eno c531fe7453 2005-09-01 Atsushi Enomoto <[email protected]>
* SortedList.cs : Even though the key/value pair being set are
	  identical to the existing one, it causes snapshot out of sync.
	  Fixed bug #59694.

	* SortedListTest.cs : testcase for #59694.


svn path=/trunk/mcs/; revision=49241
2005-09-01 02:55:35 +00:00
Ben Maurer 5c4dd971ae 2005-07-19 Ben Maurer <[email protected]>
* ArrayListTest.cs: The patch below was not committed with the
	same text as the patch on the bug. There was an s/1/3. Doing the
	patch as specified on the bug makes buildbot work and the test
	work on msft


svn path=/trunk/mcs/; revision=47452
2005-07-20 00:44:30 +00:00
Florian Gross e7f6647056 Test for #75545
svn path=/trunk/mcs/; revision=47364
2005-07-17 13:34:46 +00:00
Ben Maurer 851d9deb35 In System.Collections:
2005-06-23  Ben Maurer  <[email protected]>

	* Queue.cs: Use the enumerator rather than copy to in the
	ctor. This makes us more compat with msft, for example, when
	passing a bit array

	* Stack.cs: ditto

In Test/System.Collections:
2005-06-23  Ben Maurer  <[email protected]>

	* QueueTest.cs, StackTest.cs: Test for #75369.


svn path=/trunk/mcs/; revision=46461
2005-06-23 23:09:04 +00:00
Ben Maurer 0d91a6069b new test; changelog eol sanity.
svn path=/trunk/mcs/; revision=45067
2005-05-26 17:56:51 +00:00
Atsushi Eno 7bb2d5b190 2005-05-09 Atsushi Enomoto <[email protected]>
* Stack.cs : empty_stack.CopyTo(empty_array, 0) should be allowed.

	* StackTest.cs : test for CopyTo() on an empty stack.


svn path=/trunk/mcs/; revision=44253
2005-05-09 09:21:17 +00:00
Nick Drochak 9c3373703c 2005-01-05 Nick Drochak <[email protected]>
* ComparerTest.cs: Modernize and fix line endings. Test is failing with
	mono, see if this change has any effect.

svn path=/trunk/mcs/; revision=38337
2005-01-04 23:31:56 +00:00
Lluis Sanchez 5ee585148a 2004-12-16 Lluis Sanchez Gual <[email protected]>
* HashtableTest.cs: Added test for bug #70570.


svn path=/trunk/mcs/; revision=37873
2004-12-17 11:59:28 +00:00
Nick Drochak 836a0c3bd9 2004-08-24 Nick Drochak <[email protected]>
* ComparerTest.cs: On MS.NET 1.1 Compare("a", "A") returns < 0.

svn path=/trunk/mcs/; revision=32731
2004-08-23 21:14:11 +00:00
Dick Porter b05f184a53 2004-07-28 Dick Porter <[email protected]>
* ComparerTest.cs: Test for invariant compares (bug 61458.)

svn path=/trunk/mcs/; revision=31553
2004-07-28 12:46:34 +00:00
Sebastien Pouliot 80ccb2b7d0 2004-06-14 Sebastien Pouliot <[email protected]>
* HashtableTest.cs: Added new case to CopyTo(Array,int) an empty
	hashtable.

svn path=/trunk/mcs/; revision=29536
2004-06-14 19:30:21 +00:00
Sebastien Pouliot 683dc0b3bb 2004-06-14 Sebastien Pouliot <[email protected]>
* SortedListTest.cs: Un-ignored TestCapacity4 test case as it now
	works correctly under Mono.

svn path=/trunk/mcs/; revision=29522
2004-06-14 16:33:13 +00:00
Sebastien Pouliot a2d18abb30 2004-06-01 Sebastien Pouliot <[email protected]>
* SortedListTest.cs: Added new test when initial capacity is set to 0
	(so it never returns to default, 16, when Capacity is set to 0) unless
	Clear is called. Cleaned up unused SetUp/TearDown.

svn path=/trunk/mcs/; revision=28622
2004-06-01 12:05:49 +00:00
Sebastien Pouliot 585d7ffd41 2004-05-31 Sebastien Pouliot <[email protected]>
* ArrayListTest.cs: Added new test for null in BinarySearch.
	* HashtableTest.cs: Added null checking fro GetObjectData.

svn path=/trunk/mcs/; revision=28600
2004-06-01 00:20:08 +00:00
Sebastien Pouliot 847faa71a9 2004-05-27 Sebastien Pouliot <[email protected]>
* SortedListTest.cs: Test that setting Capacity	to zero return the
	capacity to it's initial default (16).

svn path=/trunk/mcs/; revision=28307
2004-05-27 19:42:57 +00:00
Sebastien Pouliot 953e7056d6 2004-05-27 Sebastien Pouliot <[email protected]>
* QueueTest.cs: Test for synchronized clones.
	* SortedListTest.cs: Added cases for synchronized capacity and testing
	the interface from the internal enumerator.

svn path=/trunk/mcs/; revision=28302
2004-05-27 19:11:14 +00:00
Sebastien Pouliot fd3cc90c78 2004-05-27 Sebastien Pouliot <[email protected]>
* HashtableTest.cs: Added case where a cloned hashtable must also be
	synchronized (if the original was).

svn path=/trunk/mcs/; revision=28272
2004-05-27 14:33:38 +00:00
Sebastien Pouliot 5639cebe40 2004-05-27 Sebastien Pouliot <[email protected]>
* QueueTest.cs: Added case to ensure that MoveNext always return
	false (after the first time).

svn path=/trunk/mcs/; revision=28271
2004-05-27 14:20:49 +00:00
Sebastien Pouliot 28d5f93fcf 2004-05-27 Sebastien Pouliot <[email protected]>
* QueueTest.cs: Added case where we try to get Current after the last
	MoveNext.

svn path=/trunk/mcs/; revision=28267
2004-05-27 13:59:34 +00:00
Sebastien Pouliot 1d4370ad9a 2004-05-26 Sebastien Pouliot <[email protected]>
* ArrayListTest.cs: Added tests for integer overflows.

svn path=/trunk/mcs/; revision=28197
2004-05-26 20:03:34 +00:00
Gonzalo Paniagua Javier 40e1dae650 2003-12-01 Gonzalo Paniagua Javier <[email protected]>
* QueueTest.cs: added more tests. Patch from Carlos Barcenilla.

svn path=/trunk/mcs/; revision=20645
2003-12-01 00:49:41 +00:00
Zoltan Varga 39e84eb478 2003-11-10 Zoltan Varga <[email protected]>
* StackTest.cs: Applied patch from Carlos A. Barcenilla to fix minor
	bugs (#50755).

svn path=/trunk/mcs/; revision=19784
2003-11-10 11:37:34 +00:00
Gonzalo Paniagua Javier 153b8e21fb 2003-10-10 Gonzalo Paniagua Javier <[email protected]>
* System.Collections/Hashtable.cs:
	* Test/System.Collections/HashtableTest.cs: patch from Carlos A.
	Barcenilla ([email protected]) that includes some fixes for
	Hashtable + NUnit2 tests.

svn path=/trunk/mcs/; revision=18845
2003-10-10 03:24:41 +00:00