Commit Graph
29 Commits
Author SHA1 Message Date
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Marek Safar eadfd5181e Convert old unit tests 2012-04-16 17:36:00 +01:00
Marek Habersack 0a6c794f1e [system] Part of fix for bug #683339. NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:09 +02:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
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
Robert Jordan b2b4ea5f30 2009-06-26 Robert Jordan <[email protected]>
* BitVector32Test.cs, NameValueCollectionTest.cs:
	Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136954
2009-06-26 12:49:57 +00:00
Scott Thomas 4a5ecae47f Fixed bug 417833 which allowed for the creation of illegal
BitVector32.Sections. Also added a unit test for the bug.


svn path=/trunk/mcs/; revision=111591
2008-08-26 01:51:50 +00:00
Juraj Skripsky cc663a9ef8 2008-01-07 Juraj Skripsky <[email protected]>
* NameObjectCollectionBase.cs: Add argument checking in CopyTo,
	replace use of enumerator by for-loop. Check IsReadOnly in BaseSet()
	only on the 2.0 profile.

2008-01-07  Gert Driesen  <[email protected]>

	* NameObjectCollectionBaseTest.cs: Add tests for argument checking in
	GetObjectData, Add, Clear, Remove, RemoveAt, Set and CopyTo. 


svn path=/trunk/mcs/; revision=92428
2008-01-08 06:50:05 +00:00
Atsushi Eno 851d970852 revert the regressing change.
http://mono.ximian.com/monobuild/builds/HEAD/sles-9-i586/mono/90438/logs/test-profiles.log


svn path=/trunk/mcs/; revision=90446
2007-11-29 17:26:38 +00:00
Konstantin Triger 7d2aa64ce0 fix default case-insensitive comparer for 2.0 profile
svn path=/trunk/mcs/; revision=90415
2007-11-29 08:03:45 +00:00
Roei Erez 4114bedb60 Bug fix for NameValueCollection constructors:
** NameValueCollection(IEqualityComparer) that gets null as an argument..
** NameValueCollection(NameValueCollection).
Two test cases added.

svn path=/trunk/mcs/; revision=78007
2007-05-27 13:02:10 +00:00
Ilya Kharmatsky 38978683b8 Proper exceptions throwing / handling under NET_2_0 target.
svn path=/trunk/mcs/; revision=76446
2007-04-29 09:08:22 +00:00
Konstantin Triger f2e320226b use IEqualityComparer for key comparison
svn path=/trunk/mcs/; revision=71254
2007-01-18 12:41:05 +00:00
Sebastien Pouliot ced1d4c988 2005-11-30 Sebastien Pouliot <[email protected]>
* BitVector32Cas.cs: New. CAS unit tests.
	* BitVector32Test.cs: More test cases to increase coverage.
	* CollectionsUtilCas.cs: New. CAS unit tests.
	* HybridDictionaryCas.cs: New. CAS unit tests.
	* HybridDictionaryTest.cs: More test cases to increase coverage.
	* ListDictionaryCas.cs: New. CAS unit tests.
	* ListDictionaryTest.cs: More test cases to increase coverage.
	* NameObjectCollectionBaseCas.cs: New. CAS unit tests.
	* NameObjectCollectionBaseTest.cs: New. Unit tests.
	* NameValueCollectionCas.cs: New. CAS unit tests.
	* NameValueCollectionTest.cs: More test cases to increase coverage.
	* OrderedDictionaryCas.cs: New. CAS unit tests.
	* OrderedDictionaryTest.cs: New. Unit tests.
	* StringCollectionCas.cs: New. CAS unit tests.
	* StringCollectionTest.cs: More test cases to increase coverage.
	* StringDictionaryCas.cs: New. CAS unit tests.
	* StringDictionaryTest.cs: New. Unit tests.


svn path=/trunk/mcs/; revision=53679
2005-11-30 13:55:40 +00:00
Jackson Harper c71481a2f6 * NameValueCollection.cs: Don't crash when we have empty
collections.


svn path=/trunk/mcs/; revision=49149
2005-08-30 19:48:30 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Sebastien Pouliot 0bae4d8bb1 2004-06-14 Sebastien Pouliot <[email protected]>
* NameValueCollectionTest.cs: Added test for remove (case insensitive).

svn path=/trunk/mcs/; revision=29545
2004-06-14 20:09:06 +00:00
Sebastien Pouliot 4c43e39933 2004-06-14 Sebastien Pouliot <[email protected]>
* HybridDictionaryTest.cs: Added cases with an non-empty dictionary.
	* NameValueCollectionTest.cs: Added tests for CopyTo(Array,int).

svn path=/trunk/mcs/; revision=29533
2004-06-14 19:06:10 +00:00
Sebastien Pouliot d497ff12cd 2004-06-05 Sebastien Pouliot <[email protected]>
* HybridDictionaryTest.cs: Added cases with an empty diectionary.
	* NameValueCollectionTest.cs: Added tests to add and replace (set)
	existing values in collection. Added tests for CopyTo.

svn path=/trunk/mcs/; revision=28890
2004-06-05 23:47:06 +00:00
Nick Drochak 802cc402a9 2004-01-01 Nick Drochak <[email protected]>
* BitVector32Test.cs: Test some more values less than 1.

Happy New Year!

svn path=/trunk/mcs/; revision=21564
2003-12-31 14:55:26 +00:00
Duncan Mak 4ac9cd9a40 Add Alon's name to the Authors.
svn path=/trunk/mcs/; revision=17886
2003-09-04 19:20:20 +00:00
Duncan Mak e61457e5ba Integrate the patches contributed by Alon Gazit <[email protected]>.
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.

* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.

* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.

* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=17885
2003-09-04 19:16:30 +00:00
Nick Drochak e09ec3d431 2002-06-24 Nick Drochak <[email protected]>
* BasicOperationsTest.cs: Make test pass on .NET 1.1.

svn path=/trunk/mcs/; revision=15602
2003-06-24 05:06:48 +00:00
Nick Drochak c019f1eb0b 2002-03-29 Nick Drochak <[email protected]>
* BasicOperationsTest.cs: Moved into proper subdir
	* system_linux_test.args: Change path to above file

svn path=/trunk/mcs/; revision=12907
2003-03-29 14:45:42 +00:00
Martin Willemoes Hansen 2320c1fddc * Removed: Old AllTests.cs files
* NUnit20ified the tests.

svn path=/trunk/mcs/; revision=12666
2003-03-18 21:45:41 +00:00
Miguel de Icaza 99ae181aae Flush
svn path=/trunk/mcs/; revision=5596
2002-07-04 20:48:42 +00:00
Lawrence Pit 21897fd452 WebHeaderCollection implemented
svn path=/trunk/mcs/; revision=4531
2002-05-11 15:30:44 +00:00
Lawrence Pit f31d7f7c44 * HybridDictionary.cs: implemented
* CollectionsUtil.cs: implemented
	* BitVector32.cs: implemeneted
	* Modified signature of method ListDictionary.GetEnumerator

svn path=/trunk/mcs/; revision=4458
2002-05-09 20:05:33 +00:00
Lawrence Pit b04cb804fe Moved StringCollectionTest.cs and NameValueCollectionTest to this dir
svn path=/trunk/mcs/; revision=4445
2002-05-09 13:28:33 +00:00