Commit Graph
134 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Zoltan Varga fe3b21ae71 [corlib] Disable an OOM test which shouldn't fail on 64 bit machines. 2014-02-27 19:14:22 -05:00
Marek Safar 4ce0e7e848 Equality structural comparer needs to do recursive comparisons. Fixes #13110 2013-07-09 11:12:33 +02:00
Konrad M. Kruczynski f060b8055b Fix for the bug #4328. 2012-09-12 23:02:09 +02:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Marek Safar bf7d4d0e39 Convert some old unit tests 2012-04-05 15:46:25 +01:00
Marek Safar db7131d010 Change few Assertions to Asserts 2012-02-29 18:09:52 +00:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Miguel de Icaza 5685900d9e 2010-07-20 Miguel de Icaza <[email protected]>
* Array.cs: fast path for the case where the pivot is null;
	Fixes the crash on the build.

svn path=/trunk/mcs/; revision=160636
2010-07-20 21:33:20 +00:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
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
Jb Evain fbf9681366 fix test
svn path=/trunk/mcs/; revision=104044
2008-05-25 23:12:11 +00:00
Jb Evain 958ff1d20e get Miguel's patch back in, without cloning the serialization info
svn path=/trunk/mcs/; revision=103996
2008-05-24 22:29:11 +00:00
Jb Evain 12d69617f9 reverting, somehow this breaks the linker
svn path=/trunk/mcs/; revision=103936
2008-05-23 17:42:19 +00:00
Miguel de Icaza a37b274a57 2008-05-23 Miguel de Icaza <[email protected]>
* Hashtable.cs: Implement a faster clone that does not use an
	enumerator to iterate over the values, this doubles the speed of
	Clone.

	The use of an internal constructor that builds from a Hashtable is
	done to avoid populating a Hashtable and then updating every field
	and structure with new data. 


svn path=/trunk/mcs/; revision=103926
2008-05-23 16:27:58 +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
Eyal Alalouf 30c28c41d7 Mark tests as not working under TARGET_JVM
svn path=/trunk/mcs/; revision=74246
2007-03-14 10:47:05 +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 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +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
Gonzalo Paniagua Javier 0046d88b27 fix typo
svn path=/trunk/mcs/; revision=46466
2005-06-24 02:55:27 +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 1fb44fa8a9 line endings
svn path=/trunk/mcs/; revision=46460
2005-06-23 22:58:11 +00:00
Ben Maurer 0d91a6069b new test; changelog eol sanity.
svn path=/trunk/mcs/; revision=45067
2005-05-26 17:56:51 +00:00