Commit Graph
642 Commits
Author SHA1 Message Date
k0st1x c20670cec7 PropertyDescriptor - MemberDescriptor.Attributes (iteration 2) (dotnet/corefx#26756)
* PropertyDescriptor - MemberDescriptor.Attributes returns base attribute instead of ancestor's attribute dotnet/corefx#26600

* PropertyDescriptor - MemberDescriptor.Attributes returns base attribute instead of ancestor's attribute dotnet/corefx#26600


Commit migrated from https://github.com/dotnet/corefx/commit/a4ab230cd2fe61b3af283b19dda7709891d83ddd
2018-02-08 08:28:31 -05:00
Jan Kotas e6c28ba3b1 Cleanup CodeContracts annotations (dotnet/corefx#26324)
Commit migrated from https://github.com/dotnet/corefx/commit/a3e4e241c7b7c33750258082969287b9cf45d757
2018-01-14 14:19:41 -05:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Marco Rossignoli ff831e6fcc "Don't directly throw Exception" System.ComponentModel.TypeConverter (dotnet/corefx#26050)
* Don't directly throw Exception

* Don't directly throw Exception


Commit migrated from https://github.com/dotnet/corefx/commit/0101324f1ac8555c910bbbfb46c511bb86f0fbe4
2017-12-28 12:30:46 -06:00
Stephen Toub 09612a41dd Update ref assemblies with readonly changes
Commit migrated from https://github.com/dotnet/corefx/commit/45b724f6b6391910edea8a70f3f22a4a7996696d
2017-11-03 09:48:47 -04:00
Stephen Toub 54c1d578d8 Mark applicable structs as readonly
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Viktor Hofer fcc00e81f3 Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors


Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
2017-10-27 18:00:52 +02:00
Anirudh Agnihotry 75fe28fc99 CultureInfoConverter added (dotnet/corefx#24855)
* Culture Converter added

* space formatting

* Expected and actual argument reordered

* Removed to string

* Reference Converter and its test added

* fixing reference Converter

* Skipping test on framework

* CultureInfo added with others

* Removed Reference Connverter


Commit migrated from https://github.com/dotnet/corefx/commit/c6115c50849d1524a26b2aa4c44e905a31570870
2017-10-26 15:06:44 -07:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Santiago Fernandez Madero 6f5491813e Add build Configurations.props to performance tests (dotnet/corefx#24493)
Commit migrated from https://github.com/dotnet/corefx/commit/907e2a5ebf0904551ee2c6a90607ae2b133b5b10
2017-10-07 12:22:14 -07:00
Brian Chavez 232a1dfac0 Grammar check - "a [a,e]" rule. (dotnet/corefx#23697)
* Grammar check - "a [a,e]" rule.

* Corrected "a attributes" to "an attribute"


Commit migrated from https://github.com/dotnet/corefx/commit/be75987c628347e1d44bba15c5272ade3dcfa65c
2017-08-31 09:29:39 -04:00
Brian Chavez 1135713030 Miscellaneous typo corrections. (dotnet/corefx#23698)
Commit migrated from https://github.com/dotnet/corefx/commit/e3b2c5491ac38efdfec5f017f72223b7d8c10f5d
2017-08-31 00:26:17 -04:00
Brian Chavez 3d09f92467 String literal spelling corrections - A through Z (dotnet/corefx#23674)
Commit migrated from https://github.com/dotnet/corefx/commit/dd2428300b982775f9ede37104ef8ccbb0350ec2
2017-08-29 22:33:36 -07:00
Brian Chavez 88875187b0 XML doc spelling corrections - D through H. 🚿 (dotnet/corefx#23638)
Commit migrated from https://github.com/dotnet/corefx/commit/a27929935d2782cdc3e7be21653e8c4530274c6f
2017-08-29 17:10:01 -07:00
Brian Chavez f866987b74 XML doc spelling corrections - I through P. 🚿 (dotnet/corefx#23651)
Commit migrated from https://github.com/dotnet/corefx/commit/b09fab5799bb1ca4bea4b4bb086d2c9870dd5191
2017-08-29 15:42:23 -07:00
Brian Chavez caeee5a506 XML doc spelling corrections - Q through Z. (dotnet/corefx#23655)
Commit migrated from https://github.com/dotnet/corefx/commit/723c7feed515abbeece068e05fdf2f918a74ca85
2017-08-29 15:40:48 -07:00
Brian Chavez ba2326f831 XML doc spelling corrections - A through C. (dotnet/corefx#23634)
Commit migrated from https://github.com/dotnet/corefx/commit/afcbd9a5b9e4ecde2db3a69afd093631f1db91c5
2017-08-28 23:42:20 -07:00
Hugh Bellamy 96b69c6c5a Add DesignerOptionService tests (dotnet/corefx#23013)
* Add DesignerOptionService tests

* Use assert extensions

* Fix typo


Commit migrated from https://github.com/dotnet/corefx/commit/5d357030caf3c81489245df82b226e0294239d8d
2017-08-21 22:53:32 -07:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly

The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.

* Fix Linux BB

* Update the xunit package reference

* Fix wrong condition on one of the tests

* Update the ConditionalFact/Theory to use Type as a parameter


Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
2017-08-10 22:37:36 -07:00
Santiago Fernandez Madero 3753ce13e3 Update buildtools and UAP runners version to merge resources into pri file for UAP tests (dotnet/corefx#22418)
* Update buildtools and UAP runners version to merge resources into pri file for UAP tests

* Fix CI and Add new separator to ComponentResourceManager

* Fix Typo in comment

* Fix NETFX Ci failures


Commit migrated from https://github.com/dotnet/corefx/commit/b65507e2e548503766ef891a5744df014ee8f103
2017-07-20 09:52:50 -07:00
Hugh Bellamy e7449960e1 Add BindingList tests and fix a debug assertion (dotnet/corefx#22197)
* Add BindingList tests and remove a faulty Debug assertion

* Slight code cleanup to BindingList

* Address PR feedback

* Make const


Commit migrated from https://github.com/dotnet/corefx/commit/71e076f77c56294906653c8cc50f66a27f244185
2017-07-15 09:12:30 -04:00
Hugh Bellamy 81a878a5f6 Add Container tests and fix a debug assertion (dotnet/corefx#22073)
* Add Container tests and fix a Debug assertion

* Cleanup Container.cs a tad

* Revert early exit change


Commit migrated from https://github.com/dotnet/corefx/commit/b5fd3acbde6fe9230424e54eb0df6c31a3597001
2017-07-14 17:32:19 -04:00
Hugh Bellamy ae4fecef7b Add ComponentResourceManager tests (dotnet/corefx#22138)
* Add ComponentResourceManager tests

* Baseline netfx failures for dotnet/corefx#22145


Commit migrated from https://github.com/dotnet/corefx/commit/1f0334d5066001231cb6d8955f848f33c1257c0b
2017-07-12 18:52:07 -04:00
Atsushi Kanamori 739563482a Fix invalid rd.xml. (dotnet/corefx#22118)
Fixes https://github.com/dotnet/corefx/issues/22113

Commit migrated from https://github.com/dotnet/corefx/commit/3335847e11bdd833fa4d1a8ecfbe85023dd6fb8e
2017-07-11 16:10:53 -07:00
Hugh Bellamy a0138ce75f Add AmbientValueAttribute tests and fix a debug assertion (dotnet/corefx#22027)
* Add AmbientValueAttribute tests and fix a debug assertion

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/9430efeb8ee5b722bde59b45de2e5f4551764ad1
2017-07-10 23:29:22 -04:00
Hugh Bellamy 241ddc0f56 Remove dead internal abstract class from number converters (dotnet/corefx#22028)
Commit migrated from https://github.com/dotnet/corefx/commit/4ed124534014bc6ed4d5bd7f63be5634fba3d737
2017-07-09 23:18:42 -04:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Hugh Bellamy 7cdcaf5fc5 Convert Assert.Throws<ArgumentException> to AssertExtensions (dotnet/corefx#21491)
Commit migrated from https://github.com/dotnet/corefx/commit/868f123881e520285ab09600380e38abdd457a06
2017-06-27 21:13:26 -07:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Krzysztof Wicher 61b76d68c7 Fix TypeConverter tests on UAP (dotnet/corefx#21331)
* make CultureInfoConverter not change UI culture

* make flaky (on UAP) TypeConverter tests resilient to changing culture


Commit migrated from https://github.com/dotnet/corefx/commit/9b4a7535e4b80aeb0f244744f48fbdf93851b2c0
2017-06-21 17:36:25 -07:00
Eric Mellino cb9a34fbbc Merge pull request dotnet/corefx#20894 from hughbe/colortranslator-tests
Add ColorTranslator tests

Commit migrated from https://github.com/dotnet/corefx/commit/e6d7e4e9184ecd705c162b3375261757010a8e22
2017-06-13 10:19:27 -07:00
Hugh Bellamy f50e5685d6 Add type formard in TypeConverter ref
Commit migrated from https://github.com/dotnet/corefx/commit/c6a157715e7a7778cfab4f553f0709ecc91d34ec
2017-06-13 08:44:44 +07:00
Hugh Bellamy 4ba111ffe2 Move InvalidEnumArgumentException to System.ComponentModel.Primitives
Commit migrated from https://github.com/dotnet/corefx/commit/88a1319869297ebb35d9e34fe59934b74b8e8c86
2017-06-12 16:30:34 +07:00
Hugh Bellamy e8042f5257 Remove dead code from ColorTranslator and friends
- We don't need to check for if the oleColor is a system color before
the switch statement as the switch statement covers all possibilities
- Pass the culture directly to ColorConverterCommon.ConvertFromString.
In System.Drawing.Common we already pass CultureInfo.CurrentCulture so
this deletes that dead code, but since it is in Common we need to update
it elsewhere, which is in a single place.


Commit migrated from https://github.com/dotnet/corefx/commit/486da818e0e65ee21a4000db4670481d91b0b9df
2017-06-10 19:06:34 +07:00
Wes Haggard 6223b29eae Manually build mscorlib shim to allow for internal type forwards & Adding TypeForwardFrom to serialiazable types (dotnet/corefx#20697)
* Manually build mscorlib shim to allow for internal type forwards

* prepare tests for netfx->core deserialization changes

* update netfx serialized data

* change hash updater so it doesn't use hard-coded path

* Code cleanup for binary serialization

* Changed ListT to ArrayList in CookieCoolection for cross serialization

* Merge

* Changed observablecollection typeforwards that already had typeforwards on netfx

* Adding ValueTuple blobs for netfx471

* Add internal types which need to be forwarded

* Pull mscorlib shim in along with windows.winmd

To build UAP refs and libs we need an mscorlib shim. So for the build
we pull one in from packages and it will get overwritten when we build
the final one as part of our shim builds

* Removed not needed typeforward and added description

* Remved typeforwards from nested types

* Fixed generic type syntax

* Updated coreclr version, ifdefed imports for netcoreapp

* disable netfx serialization for now

* Merge error fixed

* Update blobs after coreclr changes

* Adding ValueTuple manual typeforwards

* Renamed serialization variables for SortedSet

* Disabling TreeSet<,> serialization support (for now)

* Exception internal data storage typeforward added

* Fix type conflict for mscorlib shim in uapaot configuration

* Split the runtime and ref mscorlib shim

We need to build the ref mscorlib shim only against the reference
assemblies so we still build in shims.proj. However the runtime
mscorlib shim needs to have access to internals so we build it against
the runtime implementation using a manual project.


Commit migrated from https://github.com/dotnet/corefx/commit/ca49bfbfd64351fddba56f2141b90841b8561eb7
2017-06-07 18:14:13 -07:00
Eric Mellino 07b1b3a223 Merge pull request dotnet/corefx#20593 from mellinoe/system.drawing.netfx-port
Add support for System.Drawing on Windows.

Commit migrated from https://github.com/dotnet/corefx/commit/e15746e75068eb21b6dfaa5cad1799b1ad2069ba
2017-06-05 13:23:05 -07:00
Stephen Toub ff2a0aa779 Merge pull request dotnet/corefx#20585 from norek/master
Remove dead code from System.ComonentModel.TypeConverter for issue dotnet/corefx#1…

Commit migrated from https://github.com/dotnet/corefx/commit/2ad407337d3c1dc11c13a87a5447a2872ea31105
2017-06-01 17:52:56 -04:00
Eric Mellino 05e65650d9 Add support for System.Drawing on Windows.
This change adds a new library, System.Drawing.Common, which supports a
large subset of the System.Drawing API. It is a direct port of the code
from the .NET Framework codebase. The code has been cleaned, formatted,
and sanitized to match the code style of corefx, but is otherwise very
similar to the .NET Framework version. There are a few key differences:

* TypeConverter's have been omitted for now. If we want to add these to
  .NET Core, we should add them to the TypeConverter library, rather than
  System.Drawing.Common itself.
* Some parts of the library do not respond to "System Events", because
  they are not yet implemented in .NET Core. This means that fonts and
  colors will not automatically update when the system defaults change,
  as they do in .NET Framework. The code is still there, but behind the
  feature flag "FEATURE_SYSTEM_EVENTS".
* Various attributes have been removed from the codebase, because they are
  no longer applicable. Examples:
  * Designer-related attributes (DefaultProperty, DefaultEvent, Editor,
    etc.)
  * CAS-related attributes. CAS-related method calls (Security demands and
    asserts) have also been removed.

There is still further cleanup that can be done in order to match the
style and structure of corefx. For example, the Interop code should be
reorganized to match other BCL libraries.

NOTE: This implementation will only work on Windows, and not in UWP. This
is a strictly compatibility-driven feature. Any changes made to it should
not significantly diverge from the .NET Framework implementation.
Libraries should only take a dependency on System.Drawing.Common if they
are relying on legacy components from .NET Framework; newly-written code
and features should rely on modern alternatives.


Commit migrated from https://github.com/dotnet/corefx/commit/4d34be89f3812919306f1003fa6c035c9caf8970
2017-06-01 13:08:44 -07:00
INSOLUTIONS\NorbertR c43da53dee Remove dead code from System.ComonentModel.TypeConverter for issue dotnet/corefx#17905
Commit migrated from https://github.com/dotnet/corefx/commit/d067d8de57d817fe7e9f2e17cd9d776b187502f3
2017-06-01 20:41:48 +02:00
Viktor Hofer da60796167 Renamed coretype serialized variables to support reflection based serialization
Commit migrated from https://github.com/dotnet/corefx/commit/4bfcf03724fcde488de90eb78247610ce622b819
2017-05-30 22:43:05 +02:00
Santiago Fernandez Madero e8c0db60b4 Update buildtools and extensions and do tests cleanup for new attributes behavior (dotnet/corefx#20333)
* Update buildtools and extensions and do tests cleanup for new attributes behavior


Commit migrated from https://github.com/dotnet/corefx/commit/bc73a9b7ca2a644efd9fc3cb51dde3bc3726ecd7
2017-05-26 02:13:52 -05:00
Morgan Brown c748507f03 ISerializable cleanup (dotnet/corefx#20220)
* Changes to throw PlatformNotSupportedException from ISerializable.GetObjectData and serialization constructors on non-serializable types. Also removes private serialization constructors and some unneeded code that was used to support serializing non-serializable types. A few tests testing GetObjectData implementations are also removed.

* Address code review comments.

* Change exceptions' GetObjectData to just call base rather than throw. This makes them behave consistently with exceptions that didn't override GetObjectData.


Commit migrated from https://github.com/dotnet/corefx/commit/a82f54bd51e22ec3eb14eb5d8f572f022becb8e3
2017-05-25 12:38:09 -07:00
Gaurav Khanna f167b0de93 Merge pull request dotnet/corefx#19842 from ericstj/incrementVersions
Increment versions post 2.0

Commit migrated from https://github.com/dotnet/corefx/commit/45d30e6bdf44d4a0e55df5a6064e8275cdf14d25
2017-05-17 12:03:29 -07:00
Morgan Brown 975ad3c685 Scale back [Serializable] CoreFX types (dotnet/corefx#19742)
* Remove SerializableAttribute from many CoreFX types that will not be serializable.

* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.

* Remove unneeded pragmas

* Update based on review comments


Commit migrated from https://github.com/dotnet/corefx/commit/6dd451f51451a7d0ceea6104b51bd17005e9a0e6
2017-05-16 18:16:29 -04:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Atsushi Kanamori 4622ed4064 Fix all System.ComponentObject.TypeConverter.Test failures on ILC
The usual reasons...


Commit migrated from https://github.com/dotnet/corefx/commit/534c3a1ee90b9a0fe84f7de24cb38bd912d15d5b
2017-05-11 12:46:59 -07:00
Atsushi Kanamori b33e670655 Fix 79 System.Data.Common.Test failures on ILC
These tests were null-referencing inside a IsReadOnly
property that looked up ReadOnlyAttributes in a collection
and invoked it without null-checking the lookup result.

The reason it's allowed to do that that is this
collection has some magic in it that lazily auto-populates
itself with the "default" value of the attribute
if the attribute itself isn't found on a lookup.
So as long a default exists, a lookup of this attribute
type never returns null.

Unfortunately, the "default" is discovered by reflecting
for a static field named "Default" on the attribute
type.




Commit migrated from https://github.com/dotnet/corefx/commit/1bb768c31c53a47ab892285b36ccedf892bb7ccc
2017-05-11 09:51:08 -07:00
Stephen Toub ed5e12a621 Fix EnumConverter porting bug around ArrayList (dotnet/corefx#19475)
EnumConverter.GetStandardValues switched from using `ArrayList` to `List<object>` when it was ported to .NET Core.  But it performs sorting using the non-generic IComparer, which `List<object>` doesn't have APIs for.  Rather than trying to work around the difference, it makes sense to just revert to using ArrayList.

Commit migrated from https://github.com/dotnet/corefx/commit/adf6473ff41cc797d1b7f9b41e815173bffe6d98
2017-05-08 09:51:39 -07:00
Jiayi Li ab9698db27 Disable failed tests for 6 issues. (dotnet/corefx#19464)
Commit migrated from https://github.com/dotnet/corefx/commit/5efe9f60ffe252496ca6cf98cb94e29b7d088b49
2017-05-08 02:43:56 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00