Commit Graph
453 Commits
Author SHA1 Message Date
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
Wes Haggard f2fd0ea78a Update Solution files to use windows path slashes.
Commit migrated from https://github.com/dotnet/corefx/commit/f8ba7c412d06d8e4d4e6278502d4dd771a0f10bb
2017-02-03 16:31:48 -08:00
Eric St. John c2dc83e56a Sync BuildConfiguration with project PropertyGroups
Commit migrated from https://github.com/dotnet/corefx/commit/758a0e16e8c5af8741d14043f4bef1d15a79a377
2017-02-03 08:34:24 -08:00
Wes Haggard c4e17cd362 Update all solution files using solution generation tool
Commit migrated from https://github.com/dotnet/corefx/commit/a822a266821cf79df96cdd77d2a3d44f1510d9a0
2017-02-02 15:44:45 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Eric St. John c61e84f6ec Clean up desktop Configurations
Remove all cruft from projects related to building desktop configs which
now build in standard repo.


Commit migrated from https://github.com/dotnet/corefx/commit/93b36cc273391a40552613800b6fdaa8685179ae
2017-01-31 19:25:30 -08:00
Eric St. John a39501e3ae Remove desktop config when in NETStandard.Library
Exceptions for types missing from netstandard facade:
- System.Data.Common - DbColumn, DbDataReaderExtensions, IDbColumnSchemaGenerator
- System.Diagnostics.StackTrace - StackFrameExtensions
- System.Numerics.Vectors - Vector, Vector<T>
- System.Runtime.Serialization.Primitives - ISerializationSurrogateProvider
- System.Runtime.Serialization.Xml - DataContractSerializerExtensions
- System.Security.Cryptography.Cng - AesCng, TripleDESCng <link>
- System.Threading.Overlapped - PreAllocatedOverlapped, ThreadPoolBoundHandle
- System.Xml.XPath.XDocument - XDocumentExtensions


Commit migrated from https://github.com/dotnet/corefx/commit/83b3046e1f63c752ee0d69e8b847d633724d90b1
2017-01-31 18:32:00 -08:00
Jose Perez Rodriguez a840e703dd Updating VS Configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8e7497f825856eddfd84f81fc4afc0104fb917b0
2017-01-31 15:10:43 -08:00
Jose Perez Rodriguez f7c237e4e2 Adding missing Configurations for uap
Commit migrated from https://github.com/dotnet/corefx/commit/16ceba583604b00f12a173a8f3d218584ec2b0ee
2017-01-31 15:08:05 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Jose Perez Rodriguez f9d4e6795d Removing netstandard configurations for things that are bellow netstandard (dotnet/corefx#15373)
Removing netstandard configurations for things that are bellow netstandard

Commit migrated from https://github.com/dotnet/corefx/commit/c656446f01db4b902b0c06b19551cc30d9dd9c6b
2017-01-24 09:40:19 -08:00
Jose Perez Rodriguez dd708b105d Adding missing Configurations.props for refs and fixing the existing ones (dotnet/corefx#15291)
Adding missing Configurations.props for refs and fixing the existing ones

Commit migrated from https://github.com/dotnet/corefx/commit/2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b
2017-01-19 16:38:55 -08:00
Eric St. John d75a59e7a1 Remove packages from NETStandard.Library 1.6
With one exception: System.Runtime.InteropServices.RuntimeInformation.

For the rest we will no longer ship packages.

Instead the types will be supported as follows:
1. In a netstandard2.0+ project via NETStandard.Library package's
    netstandard.dll
2. In a netstandard1.x project via NETStandard.Library package and
    closure which ship from servicing branches.
3. In a framework specific project via the framework's targeting pack
    or framework package.


Commit migrated from https://github.com/dotnet/corefx/commit/d6bd0c5889c604bda6afcba4cd7848b7cb0fa6d3
2017-01-18 15:08:35 -08:00
Karthik Rajasekaran 4bbdadd88a Update project configuration and sln files (dotnet/corefx#15182)
* Add ValidateVSConfigurations

* Update project config and sln files.


Commit migrated from https://github.com/dotnet/corefx/commit/f6ab339f446e37505f93ef9f430801fa1dcc05b8
2017-01-17 14:31:23 -08:00
Jose Perez Rodriguez 24a5aef91d Merge master into dev/eng
Commit migrated from https://github.com/dotnet/corefx/commit/a9dd06b73bdd71038217bb263decf2b7285fb8db
2017-01-12 10:09:09 -08:00
Tarek Mahmoud Sayed c41fdd41c2 Fix System.ObjectModel test to run on desktop
Commit migrated from https://github.com/dotnet/corefx/commit/8e72ff3d2429a164571168513ca8fb735e6e2bb0
2017-01-11 11:02:50 -08:00
dotnet bot fd2b99ee2a Update CoreClr, CoreFx, ProjectNTfs to beta-24911-02, beta-24911-02, beta-24911-00, respectively (dotnet/corefx#15071)
Commit migrated from https://github.com/dotnet/corefx/commit/f4dbd9ba2d8ae56b5960a5030a2bf0328fa37b3f
2017-01-11 09:11:26 -08:00
Alex Perovich ae1810f29c Automated rename of tfm specific files
Commit migrated from https://github.com/dotnet/corefx/commit/ca330455c9b884ffcca5b8b98d28a129e2248fe6
2017-01-10 16:20:59 -08:00
Alex Perovich 573869c47f Automated update of ns1.7->ns2.0 and nca1.1->nca2.0
Commit migrated from https://github.com/dotnet/corefx/commit/1f8b5264a8156f91c48b2dc344d5410ee6f574cb
2017-01-10 16:20:42 -08:00
Alex Perovich c3087a2ed5 Manual changes for ns2.0 rename
Commit migrated from https://github.com/dotnet/corefx/commit/7bba15c1d2518d3f0bb85c40ed87322edfdf87eb
2017-01-10 16:20:29 -08:00