Commit Graph
522 Commits
Author SHA1 Message Date
Hugh Bellamy 40fc2f2c81 Add TypeConverterAttribute tests and fix bugs (dotnet/corefx#35019)
Commit migrated from https://github.com/dotnet/corefx/commit/93ecfc6e1e5646328b85e113409de7797774fb97
2019-02-01 16:00:18 -08:00
Dan Moseley 439637f933 Remove syncroot fields from collections (dotnet/corefx#34198)
* Syncroot

* Fix typo in build-native

* Specialized

* Remove noise

* Revert non generic SortedList

* Test fixups

* CLR test fixes

* Revert "CLR test fixes"

This reverts commit dotnet/corefx@8db135c07b.

* Disable syncroot tests for NETFX

* Update QueueTests.cs

* Test fixes

* Typo


Commit migrated from https://github.com/dotnet/corefx/commit/1fd3717d73da3ae7440841e8fded4adbba5b0770
2018-12-21 16:22:14 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Eric StJohn c160716e9d Add TypeDescriptionProviders to XLinq (dotnet/corefx#33082)
* Bring over XComponentModel code from desktop

* Format code and add License.

* Add TypeDescriptionProviders to XLinq

This adds TypeDescriptionProviders to XAttribute and XElement

To do this without introducing a TypeConverter dependency in XML I had to push
TypeDescriptionProviderAttribute down.

This still causes TypeConverter to gain a dependency on XML, but right now that's the direction
we've been heading with TypeConverter.

I had to use the string overload of TypeDescriptionProviderAttribute in order to have a soft
dependency on TypeConverter.

* Format XComponentModel source for access / naming

* Remove TypeDescriptionProvider from reference assemblies

I decided to remove this from the reference assemblies.  None  of the usages I found would require
presense in the reference assemblies and it would expose too much internal surface which we might
want to change in the future (type name, and assembly).


Commit migrated from https://github.com/dotnet/corefx/commit/a01c44c78d37267c4e30cb1d647376e103557493
2018-10-29 16:35:00 -07:00
Eric StJohn a58e4fb648 Fix inconsistent attributes between ref and src (dotnet/corefx#32715)
Commit migrated from https://github.com/dotnet/corefx/commit/f42778ac1c71ed1646d07fb7293ccf11f18047f5
2018-10-11 15:19:17 +02:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Atsushi Kanamori c6fdf22f7a Bring back System.Reflection.ICustomTypeProvider (dotnet/corefx#30727)
Fix https://github.com/dotnet/corefx/issues/29958

Commit migrated from https://github.com/dotnet/corefx/commit/66567f218133234558098feb6d109bc9aa9f8273
2018-06-28 12:20:29 -04:00
Stephen Toub 4c9eb2ec25 Simplify built-in types across corefx tests (dotnet/corefx#30660)
Commit migrated from https://github.com/dotnet/corefx/commit/7ae1a252d7e68c5513d2658de7a401c37e9b0504
2018-06-25 22:42:04 -07:00
Stephen Toub 2fb9f847fc Simplify built-in types across corefx (dotnet/corefx#30656)
Commit migrated from https://github.com/dotnet/corefx/commit/e0ba7aa8026280ee3571179cc06431baf1dfaaac
2018-06-25 16:54:41 -07:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Eric StJohn 6b69691788 Object model attributes (dotnet/corefx#29639)
* Add ValueSerializerAttribute to System.ObjectModel

* Move TypeConverterAttribute down to System.ObjectModel

This enables types to plug into TypeConverter without taking a dependency on it.

One type in particular which requires this is ICommand in System.ObjectModel.

* Fix ValueSerializerAttribute formatting


Commit migrated from https://github.com/dotnet/corefx/commit/2db76263e64ab73c8d284060f597816158406810
2018-05-10 22:13:05 -04: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
Anipik e10dfb0173 changes
Commit migrated from https://github.com/dotnet/corefx/commit/c4ebdbe5f5fbf53ec73b2c2e16f610387945151f
2017-11-24 22:59:57 -08:00
Anipik 9668f64f87 key added to exception
Commit migrated from https://github.com/dotnet/corefx/commit/ad9da9366af171d885163447a8e6ec96018f2a77
2017-11-24 22:59:57 -08: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
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
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
Viktor Hofer 98af3dbbd2 Reenable additional tests
Commit migrated from https://github.com/dotnet/corefx/commit/9ff35cf9bda7a74c2f9877d3858f229b203e5188
2017-08-04 22:12:10 +02:00
Viktor Hofer 257f409d8a Reenable cloning of serializable object for uapaot
Commit migrated from https://github.com/dotnet/corefx/commit/db6afc72924b33e01c8202e59a0cc2b79474de7f
2017-08-04 22:12:10 +02:00
Jon Hanna 7816dc86f3 More thoroughly test System.ObjectModel collection debugger views. (dotnet/corefx#22859)
Have items in the instances tested against, and test contents are
reflected in debugger view objects.

Commit migrated from https://github.com/dotnet/corefx/commit/1fabf6a26a018a03778fe5ba9530b6df40e2e0b4
2017-08-02 11:42:24 -04:00
Viktor Hofer 2751d19f75 Cleanup casing of Culture=neutral
Commit migrated from https://github.com/dotnet/corefx/commit/0daa0eaead1784c02dda2a445fc65f38eee15c74
2017-07-09 14:30:39 +02: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
Viktor Hofer 65805739a9 Adding test to check if OnDeserialized doesn't throw if serialization… (dotnet/corefx#21357)
* Adding test to check if OnDeserialized doesn't throw if serialization fields aren't initialized yet. Relates to https://github.com/dotnet/corefx/pull/21322

* Skipping for netfx as this only tests core impl

* Update ObservableCollection_Serialization.cs


Commit migrated from https://github.com/dotnet/corefx/commit/ac9df95460b6edccbebdf4a33e7b910ae85c4676
2017-06-22 15:56:26 +02:00
Justin Van Patten 0495b6ff25 Allow Json.NET deserialization of ObservableCollection (dotnet/corefx#21322)
Json.NET serializes the collection by enumerating it, without taking
into account any of its fields like the binary serializer does, and
deserializes it by adding the items back to the collection, without
initializing the fields. However, it does still call the
`OnSerializing`/`OnSerialized`/`OnDeserializing`/`OnDeserialized`
methods.

When it calls `OnDeserialized`, a NullRef exception is thrown when we
try to access the `_monitor` field because the field has not been
initialized, unlike with binary deserialization, where the field would
have been initialized from the serialized binary data.

A workaround is to simply check `if (_monitor != null)` before accessing
it in `OnDeserialized`.

Commit migrated from https://github.com/dotnet/corefx/commit/a3b8dc33644933c74aa1e58fb07f69df18301e09
2017-06-21 22:51:18 -07:00
Viktor Hofer f3b55355d6 Cross framework serialization finish up (dotnet/corefx#20870)
* wip: add stubs for custom isEqual

* Updated blobs, small code refactoring, disabled CookieContainer test

* Fixed netfx471 detection

* add custom equals for graph with cycles

* fix few more comparers

* Merge

* fix few more test cases

* fix few more types, fix GetExtensionMethod to work with parameters with same type name but different generic params

* finish tests (2 comparisons are commented out: search for TODO)

* Adding TypeForward for DictionaryNode

* Updating blobs

* Update Cookie hashes, adding TypeForwards, removing unnecessary equality checks for CookieCollection

* Reenabling SortedDictionary test

* Update blobs

* make cookie.Timestamp to roundtrip correctly

* regenerate netfx and corefx blobs to account for Cookie.Timestamp change

* make regex fix the blob for ObjectWithArray

* fix ObjectWithArray netfx test failure

* Replacing Dictionary with Hashtable for desktop serialization support

* Update blobs

* Fixing a lot of TypeForwards, adding another hashtable test, other fixes

* Adding a few more TypeForwardedFrom attributes

* Updating the coreclr version, disabling CookieContainer test

* Update blobs

* Disabling CompareInfo test --> waiting for coreclr

* generate test cases

* update blobs, comment out not working cases

* fix null equality checks for new test cases and reenable them

* PR feedback addressed

* Fixed a typo...

* Updating used coreclr version, enabling compareinfo test again


Commit migrated from https://github.com/dotnet/corefx/commit/cdfb6ecf11cae3f43d35233852ef422cb12ef3d8
2017-06-15 01:18:01 +02: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
Justin Van Patten 95baf8a993 ObservableCollection: Avoid SimpleMonitor allocation (dotnet/corefx#20643)
* ObservableCollection: Avoid SimpleMonitor allocation

Brings back the optimization added in
dotnet/corefx@9e7cc5c99e (and subsequently reverted in
dotnet/corefx@6393248c7a),
but in terms of the existing private SimpleMonitor class to maintain
(de)serialization compatibility with desktop.

* Add TypeForwardedFrom


Commit migrated from https://github.com/dotnet/corefx/commit/89fea9553629433f84e247a862ea9815341c672f
2017-06-03 09:51:04 +02:00
Viktor Hofer 73a7635191 netfx hashes updated, keyedcollection fixed
Commit migrated from https://github.com/dotnet/corefx/commit/f68abb93106c03363bf0fe0e194c1c8aa9e43bd4
2017-05-30 22:43:07 +02:00
Viktor Hofer 69ffa20ae6 Partially revert ObservableCollection change dotnet/corefx@9e7cc5c99e
Commit migrated from https://github.com/dotnet/corefx/commit/6393248c7a986476f1e2d9dc4b1e5aff96459690
2017-05-30 22:43:06 +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
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 ab64ae7f70 Get System.ObjectModel.Tests passing on UWP AOT
Commit migrated from https://github.com/dotnet/corefx/commit/13d3059699b47a00d40d0198ebd7e1f32c03ab31
2017-04-26 09:35:51 -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
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
Alex Perovich fc4bb66b9f Fold or rename *.netstandard.cs files (dotnet/corefx#17697)
* Win32.Primitives

* System.Collections.Specialized

* System.Diagnostics.Process

* System.Globalization

* System.Globalization.Calendars

* System.IO

* System.IO.Compression

* System.IO.FileSystem

* System.IO.FileSystem.Watcher

* System.IO.Pipes

* System.Linq.Expressions

* System.Net.Primitives

* System.Net.Requests

* System.Net.Sockets

* System.Net.WebHeaderCollection

* System.ObjectModel

* System.Reflection

* System.Reflection.Emit

* System.Resources.ResourceManager

* System.Runtime

* System.Runtime.Extensions

* System.Runtime.Handles

* System.Runtime.InteropServices

* System.Security.Cryptography.X509Certificates

* System.Text.Encoding

* System.Text.Encoding.CodePages

* System.Threading

* System.Threading.Tasks

* System.Threading.Thread

* System.Threading.Timer

* System.ValueTuple


Commit migrated from https://github.com/dotnet/corefx/commit/023b6bdd6086271cbb6ca932c33d7783f8406062
2017-03-30 17:28:22 -05:00
Stephen Toub beb348e7c0 Merge pull request dotnet/corefx#16808 from Jiayili1/RemoveCoreCLRActiveIssue6423
Remove CoreCLR pull 7966 from SerializeDeserialize_Roundtrips() under System.Collections.ObjectModel.Tests

Commit migrated from https://github.com/dotnet/corefx/commit/d80bd81a1886e383d7d76bda28e1563e56da0363
2017-03-07 07:11:49 -05:00
v-lijiay 47ae66b3b2 Remove CoreCLR pull 6423, run msbuild System.ObjectModel.Tests.csproj /t:BuildAndTest, succeeded.
Commit migrated from https://github.com/dotnet/corefx/commit/637bc0f7afdfc29d4878f3a93a17ea5e1420e01e
2017-03-07 00:28:50 -08:00
Paul Harrington 79d26b7560 Fix typos: occurred/occurrence (dotnet/corefx#16459)
Commit migrated from https://github.com/dotnet/corefx/commit/94a4ddf3f8f04ef2dc0486afcb62ef873bec2530
2017-02-24 23:56:39 -08:00
Dan Moseley 44ac2dd747 Remove dead string resources (dotnet/corefx#16284)
Commit migrated from https://github.com/dotnet/corefx/commit/6b4423f47d5048b4c1437aaefe87859b258c89b7
2017-02-18 06:01:59 -08:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
Jan Kotas 9af9e339e2 Cleanup netstandard ifdefs and conditions (dotnet/corefx#16072)
* Cleanup netstandard conditions in csproj files
* Cleanup netstandard17 ifdefs
* Disable failing tests

Commit migrated from https://github.com/dotnet/corefx/commit/608267af43311b131d20e4111477ffb1109233a0
2017-02-11 21:40:35 -08:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
2017-02-08 15:32:53 -08:00
Jose Perez Rodriguez d9c497be12 Prepare uap package (dotnet/corefx#15866)
Prepare uap package

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
Tarek Mahmoud Sayed 77cad86b1e Remove versioned configuration from test projects (dotnet/corefx#15879)
The changes onclude some other minor clean up in the test project files

Commit migrated from https://github.com/dotnet/corefx/commit/62212cca900081173fce70991c3a0b30393994a3
2017-02-06 13:52:11 -08:00