Commit Graph
17 Commits
Author SHA1 Message Date
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
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
Ivan Zlatev 18e9712b24 2008-02-26 Ivan N. Zlatev <[email protected]>
* PropertyDescriptor.cs: 
         - Implement CreateInstance and GetTypeFromName
         and refactor GetEditor and Converter use them.
         - Drop TypeDescriptor.GetTypeFromName as we also want to check the
         ComponentType assembly, which it doesn't do.
        * TypeDescriptor.cs: Make GetTypeFromName private as it is no longer
        used from the outside.
        * PropertyDescriptorTests.cs: Add Converter tests. Based on a 
        patch by Andy Hume <[email protected]> under the MIT/X11 
        license.
        * System_test.dll.sources: Add Consts.cs so that tests can use it
        (e.g for specifying assembly qualified type names in attributes).


svn path=/trunk/mcs/; revision=96687
2008-02-26 20:39:05 +00:00
Gert Driesen 15d9f261e9 * CharConverter.cs: Use trimmed value in FormatException.
* CharConverterTest.cs: Fixed test to pass on MS.
* PropertyDescriptorTest.cs: Added test for Attributes.

svn path=/trunk/mcs/; revision=96683
2008-02-26 19:27:46 +00:00
Gert Driesen 9150d90702 * MemberDescriptor.cs: Spaces to tabs, code formatting.
* PropertyDescriptor.cs: When adding or removing a new handler for an 
existing component, update the hashtable. In GetValueChangedHandler,
return null if component is null.
* PropertyDescriptorTests.cs: Added tests for AddValueChanged,
GetInvocationTarget, GetValueChangedHandler and RemoveValueChanged.

svn path=/trunk/mcs/; revision=89659
2007-11-15 09:25:50 +00:00
Ivan Zlatev 280c2da733 2007-08-19 Ivan N. Zlatev <[email protected]>
* ReflectionPropertyDescriptor.cs: For read-only properties,
        ShouldSerializeValue must also check for 
        DesignerSerializationVisibility.Content and if present return
true.
        * PropertyDescriptorTests.cs: Tests to verify the above.


svn path=/trunk/mcs/; revision=84402
2007-08-19 15:53:33 +00:00
Gert Driesen 44545ba137 * ReflectionPropertyDescriptor.cs: For read-only properties,
ShouldSerializeValue must only take into account the return value
of the ShouldSerialize method. Code formatting.
* PropertyDescriptorTests.cs: Added test for ShouldSerializeValue
behavior with read-only properties.

svn path=/trunk/mcs/; revision=82017
2007-07-16 07:08:02 +00:00
Gert Driesen e810236970 * PropertyDescriptorTests.cs: Added tests for Igor's fixes for
ShouldSerializeValue.

svn path=/trunk/mcs/; revision=81919
2007-07-13 03:11:17 +00:00
Rolf Bjarne Kvinge f08708a598 * PropertyDescriptorTests.cs: Added GetEditorTest.
svn path=/trunk/mcs/; revision=81880
2007-07-12 16:13:29 +00:00
Gert Driesen beb5f379a9 * MemberDescriptor.cs: On 2.0 profile, take the DisplayNameAttribute
into account for DisplayName. Fixes bug #80292.
* PropertyDescriptorTests.cs: Added test for bug #80292. Fixed
accessibility of NestedClass, not caugh due to bug #80338.

svn path=/trunk/mcs/; revision=69895
2006-12-21 20:13:27 +00:00
Chris Toshok 0ef497a233 In Test/System.ComponentModel:
2006-12-19  Chris Toshok  <[email protected]>

	* PropertyDescriptorTests.cs: add some tests here because we were
	generating an NRE for a missing type converter type.  MS doesn't -
	it instead falls back to the converter for the property type.

In System.ComponentModel:
2006-12-19  Chris Toshok  <[email protected]>

	* PropertyDescriptor.cs: stop crashing on a missing type
	converter.


svn path=/trunk/mcs/; revision=69769
2006-12-19 18:42:54 +00:00
Chris Toshok a65a389528 In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test to see if
	ShouldSerializeValue's return value affects CanResetValue.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: turns out if "ShouldSerialize*"
	is present and returns false, "CanReset*" also returns false.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69139
2006-12-06 23:22:18 +00:00
Chris Toshok c7269d1d3a In Test/System.ComponentModel:
* PropertyDescriptorTests.cs: add a test for ShouldSerializeValue
	and CanResetValue on a class without ShouldSerialize/Reset
	methods.

2006-12-06  Chris Toshok  <[email protected]>

In System.ComponentModel:
	* ReflectionPropertyDescriptor.cs: ShouldSerializeValue should
	return false if there's no ShouldSerialize method.

2006-12-06  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=69138
2006-12-06 22:40:48 +00:00
Chris Toshok 825e4be3c1 In Test/System.ComponentModel:
2006-12-06  Chris Toshok  <[email protected]>

	* PropertyDescriptorTests.cs: flesh out these tests more with some
	for ShouldSerialize and CanReset.

In System.ComponentModel:
2006-12-06  Chris Toshok  <[email protected]>

	* ReflectionPropertyDescriptor.cs: fixes for CanResetValue and
	ShouldSerializeValue - we need to find both public and nonpublic
	methods.


svn path=/trunk/mcs/; revision=69136
2006-12-06 22:12:28 +00:00
Chris Toshok ecac6c0b20 add some PropertyDescriptor tests for IsReadOnly
svn path=/trunk/mcs/; revision=67573
2006-11-09 05:02:42 +00:00