Commit Graph
148 Commits
Author SHA1 Message Date
Miguel de Icaza c6ab899595 [System] Fix most warnings on the System test suite 2014-09-24 10:43:46 -04:00
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
Alexis Christoforides 5bdff7c7e9 Added test for bug #20672 (fixed in aeab5b5902) 2014-06-19 19:49:33 -04:00
scottmcarthur 7a5ab1d8c9 Test for bug 16902
Check insert of null item, in a BindingList<T> where T implements INotifyPropertyChanged does not cause NullReferenceException.
2013-12-22 18:08:16 +00:00
Zoltan Varga c94730c32f Disable some System tests which are expected to fail in the mobile profile. 2013-04-11 16:37:02 +02:00
Sebastien Pouliot 32c4b50508 Ensure the linker does not remove some types needed (thru reflection) for some test cases to work 2013-03-19 14:07:17 -04:00
Marek Safar 42d7bdbea4 Remove dependency on generated file 2013-03-12 15:43:13 +01:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Steven Robbins 7fcbd002a8 Added test for In32 IsValid 2013-02-12 14:59:50 +00:00
Sebastien Pouliot 0dd29ed721 Add test case from bug #8366 (it was fixed in master, not in 2-10) 2012-11-14 11:24:59 -05:00
Marek Safar e9a5306d5d Implement TypeConverter.ConvertTo cultureInfo support. Fixes #6322 2012-08-09 10:03:36 +01:00
Eberhard Beilharz c2ffae4732 Fix failing tests
Change-Id: Ia0969271d3bf7bdfd78fe17160e09dcb1c278eda
2012-05-21 15:16:27 +01:00
Marek Safar eadfd5181e Convert old unit tests 2012-04-16 17:36:00 +01:00
Neil Stalker e2b9054399 en-US culture returns PM not p.m. in both .NET and Mono 2012-03-24 16:30:47 +00:00
Atsushi Eno c838b12b2e Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:01:27 +09:00
Carlos Alberto Cortez fc01f5d598 Add a new test for TypeDescriptor.InterfaceType.
* TypeDescriptorTests.cs: New test for InterfaceType.
2010-09-14 10:14:34 +02:00
Carlos Alberto Cortez 949d7305bb Remove the NET_2_0 and ONLY_1_1 directives from TypeDescriptorTests.cs
* TypeDescriptorTests.cs: Remove the NET_2_0 and ONLY_1_1
	directives, as we don't need them anymore.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez 3d382ac842 Add new TypeDescriptionProviderTest.cs test file.
* TypeDescriptionProviderTest.cs: New test file.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez 06921d30c2 Add a test case for DateTimeOffsetConverter converting to InstanceDescriptor.
* DateTimeOffsetConverterTests.cs: New test for conversions to
	InstanceDescriptor.
2010-09-10 04:55:30 +02:00
Carlos Alberto Cortez 9fdb1b7f73 Add new DateTimeOffsetConverterTests.cs test file.
* DateTimeOffsetConverterTests.cs: New file.
2010-09-07 04:48:40 +02:00
Carlos Alberto Cortez 39cd458ad6 New test for CultureInfoConverter.GetCultureName.
* CultureInfoConverterTest.cs: New test for GetCultureName.
2010-09-05 05:53:24 +02:00
Carlos Alberto Cortez ea47a54561 Add new AttributeCollectionTest file.
* AttributeCollectionTest.cs: New test file.
2010-09-05 05:53:23 +02:00
Zoltan Varga 732fad3b05 Remove some hash code tests which can fail. 2010-08-09 18:22:55 +02: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
Marek Habersack 629cd06c70 2010-07-19 Marek Habersack <[email protected]>
* MultilineStringConverter.cs: implemented

svn path=/trunk/mcs/; revision=160566
2010-07-19 13:05:03 +00:00
Sebastien Pouliot 13b20e1330 2010-05-21 Sebastien Pouliot <[email protected]>
* DefaultValueAttributeTest.cs: Change test case to compare the 
	hash code of two DVA created with null (instead of comparing to 0)


svn path=/trunk/mcs/; revision=157697
2010-05-21 13:02:23 +00:00
Carlos Alberto Cortez cf374ed99a 2010-02-05 Carlos Alberto Cortez <[email protected]>
* MaskedTextProviderTest.cs: New tests for ToString and
	ToDisplayString, specifically when IsPassword is true. 


svn path=/trunk/mcs/; revision=150927
2010-02-05 13:44:00 +00:00
Atsushi Eno 41edb8afe0 2010-01-25 Atsushi Enomoto <[email protected]>
some number ConvertTo() compatibility fixes (that are reported as
!CanConvertTo()), patch by Alexandre Gomes.

svn path=/trunk/mcs/; revision=150100
2010-01-25 03:38:42 +00:00
Alan McGovern 7d1d8cfeec 2009-09-29 Alan McGovern <[email protected]>
* CategoryAttributeTest.cs: Added new test file.
	  

svn path=/trunk/mcs/; revision=142874
2009-09-29 14:55:33 +00:00
Ivan Zlatev eac09e707f 2009-09-24 Ivan Zlatev <[email protected]>
* EnumConverter.cs: Fix conversion of 0 flag values.
	* EnumConverterTests.cs: Add a test to verify behaviour when converting
	 a 0 flag value.
	[Fixes bug #541402]

svn path=/trunk/mcs/; revision=142534
2009-09-23 23:56:06 +00:00
Gert Driesen 3b2ca87f4f * Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

svn path=/trunk/mcs/; revision=138328
2009-07-21 19:12:18 +00:00
Gert Driesen c58d431a74 * Container.cs: Avoid NRE in Remove and RemoveWithoutUnsiting.
* ContainerTest.cs: Added tests for Remove and RemoveWithoutUnsiting.

svn path=/trunk/mcs/; revision=138175
2009-07-18 09:56:51 +00:00
Gert Driesen 506ae3239b * ContainerTest.cs: Added tests for Add, Dispose, ValidateName and
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.

svn path=/trunk/mcs/; revision=138174
2009-07-18 08:20:49 +00:00
Robert Jordan 6fc23e40bc 2009-06-26 Robert Jordan <[email protected]>
* EventHandlerListTests.cs, LicenseManagerTests.cs:
	Upgrade to new NUnit style. Standalone tests (#if !NUNIT)
	removed.


svn path=/trunk/mcs/; revision=136952
2009-06-26 12:43:22 +00:00
Marek Habersack 1821e106c7 2009-06-22 Marek Habersack <[email protected]>
* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
	by TypeDescriptor for storage of type description providers.

	* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
	with adding/removing/getting type description providers.

	* AttributeCollection.cs: do not throw NREX when attrList is
	null in Count.

2009-06-22  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
	with adding/removing/getting type description providers.

svn path=/trunk/mcs/; revision=136634
2009-06-22 18:24:19 +00:00
Jonathan Pryor e6b5bca321 * ListChangedEventArgsTest.cs: Fix .NET 1.1 compile error.
svn path=/trunk/mcs/; revision=134175
2009-05-15 01:18:56 +00:00
Jonathan Pryor 2d87668646 * System_test.dll.sources: Add ListChangedEventArgsTest.cs.
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
	  problems (discovered from trying to run the System.Data.Linq 
	  unit tests).
	* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
	  for ListChangedEventArgs.

svn path=/trunk/mcs/; revision=134138
2009-05-14 15:08:47 +00:00
Marek Habersack f876f962ec 2009-02-19 Marek Habersack <[email protected]>
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
	attrList is null.

	* TypeDescriptor.cs: GetConverter (Type) must throw
	ArgumentNullException if the passed parameter is null.
	FindDefaultConverterType should gracefully cope with type being
	null.

2009-02-19  Marek Habersack  <[email protected]>

	* TypeDescriptorTests.cs: added a test for
	TypeDescriptor.GetConverter (null) case.

svn path=/trunk/mcs/; revision=127343
2009-02-18 23:08:26 +00:00
Ivan Zlatev 3993c9ddeb 2008-12-22 Ivan N. Zlatev <[email protected]>
* ReferenceConverter.cs: Implemented.
	* ReferenceConverterTest.cs: Added.
	[Fixes bug #381435]

svn path=/trunk/mcs/; revision=121997
2008-12-22 19:17:58 +00:00
Ivan Zlatev e074114716 2008-12-06 Ivan N. Zlatev <[email protected]>
* TypeDescriptor.cs: Added support for NullableConverter.
	* TypeDescriptorTests.cs: Added a test for the NullableConverter support.

svn path=/trunk/mcs/; revision=120946
2008-12-06 16:35:57 +00:00
Ivan Zlatev bd41dbef49 2008-12-06 Ivan N. Zlatev <[email protected]>
* NullableConverter.cs: Implemented.
	* NullableConverterTest.cs: Added.
	* System_test.dll.sources: Addded NullableConverterTest.cs

svn path=/trunk/mcs/; revision=120945
2008-12-06 16:35:51 +00:00
Gert Driesen 0ef99c99a7 * TypeDescriptorTests.cs:
* PropertyDescriptorTests.cs: Define alias for S.C.DescriptionAttribute
to avoid ambiguous reference error using more recent versions of
NUnit (which also contains a DescriptionAttribute).

svn path=/trunk/mcs/; revision=116351
2008-10-18 08:03:37 +00:00
Rodrigo Kumpera 892f1f1e2f In Test/System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* PropertyDescriptorTest.cs: Tests for Get/Set Value of partial
	overrides of virtual properties.

In System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
	the MethodInfo for accessors in parent types in case of partial
	overrides of virtual properties.


svn path=/trunk/mcs/; revision=112052
2008-09-01 23:52:37 +00:00
Sebastien Pouliot 578f5b6f90 2008-08-07 Sebastien Pouliot <[email protected]>
* DefaultValueAttributeTest.cs: New. A few unit tests for 
	DefaultValueAttribute - showing problems in Equals and GetHashCode.


svn path=/trunk/mcs/; revision=109854
2008-08-07 13:36:58 +00:00
Ivan Zlatev 66c54b0696 2008-07-16 Ivan N. Zlatev <[email protected]>
* TypeDescriptor.cs:
	 - Fix GetConverter (Type) overload to have same logic as the
	 object one.
	 - Object-ReferenceConverter should be the last entry in the predefined
	 converters table, so that when we look up we don't end up with the wrong
	 converter for derived types.
	* TypeDescriptorTests.cs: Add a test that both GetConverter
	overloads return the same converter.

svn path=/trunk/mcs/; revision=108087
2008-07-16 21:09:41 +00:00
Jonathan Pobst c2c1e06c8c 2008-07-16 Jonathan Pobst <[email protected]>
Apply patch from Achille Fouilleul (achille.fouilleul at gadz dot org)

	* BackgroundWorker.cs: Ensure the async object is set to null before
	calling RunWorkerCompleted, as IsBusy is based off the async object.
	[Fixes bug #394365]

2008-07-16  Jonathan Pobst  <[email protected]>

	* BackgroundWorkerTest.cs: Add some asserts for bug #364365.

svn path=/trunk/mcs/; revision=108053
2008-07-16 16:24:58 +00:00
Jonathan Pobst 7f29c4c77e 2008-07-16 Jonathan Pobst <[email protected]>
Apply patches from Jordan Callicoat (MonkeeSage at gmail dot com)

	* AsyncCompleteEventArgs.cs: RaiseExceptionIfNecessary should throw
	TargetInvocationException if there was an exception, and IOE if
	the operation was cancelled.
	* BackgroundWorker.cs: Do not call RunWorkerCompleted from CancelAsync,
	setting cancel_pending to true is enough.
	* RunWorkerCompletedEventArgs.cs: Raise exceptions when user tries
	to access the Result if there are any exceptions.
	[Fixes bugs #328830 and 373153]

2008-07-16  Jonathan Pobst  <[email protected]>

	* BackgroundWorkerTest.cs: Add tests for bugs 328830 and 373153.

svn path=/trunk/mcs/; revision=108039
2008-07-16 15:00:10 +00:00
Gert Driesen 92c3a34c32 * PropertyDescriptorCollectionTests.cs: Allow tests for pass on MS.
* TypeDescriptorTests.cs: Added GetProperties and GetEvents asserts
for interfaces.

svn path=/trunk/mcs/; revision=107139
2008-07-03 09:31:06 +00:00
Atsushi Eno 293fb62d31 too silly to document.
svn path=/trunk/mcs/; revision=106777
2008-06-27 20:56:26 +00:00
Gert Driesen f1f33477a9 * EventDescriptorCollectionTests.cs: Enabled tests for Empty, Find and
IList. Added test for String indexer.
* PropertyDescriptorCollectionTests.cs: Improved test for Find and
merged CultureInsensitiveFindTest. Improved test for Find with null 
name/key. Added test for String indexer.
* EventDescriptorCollection.cs: Fixed Empty to return read-only
collection. In a read-only collection, throw NotSupportedException
instead of InvalidOperationException when attempting to modify the
collection. Fixed find to use ordinal comparison on 2.0 profile.
Fixed IList's IsFixedSize and IsReadOnly.
* PropertyDescriptorCollection.cs (Find): Use key as argument name
when name is null. Silly compatiblity fix.

svn path=/trunk/mcs/; revision=106736
2008-06-27 13:26:19 +00:00