It was set by xamarin-macios when they were still taking the raw .cs source files
but since we switched to prebuilt binaries we need to replace it with
some define we're actually setting in Mono.
Most cases can be replaced by just XAMMAC_4_5 since MOBILE is defined on the xammac profile.
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
* 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-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
* 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
* 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
* 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
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
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-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
* 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
* 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 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