Commit Graph
30 Commits
Author SHA1 Message Date
Morgan Brown 127e939922 Fixes to unblock BinaryFormatter tests on UAPAOT (dotnet/corefx#20760)
Commit migrated from https://github.com/dotnet/corefx/commit/93c0a34cd24e0915598f79046a0ce9be23030c42
2017-06-06 20:42:27 -07:00
Viktor Hofer f296c1dee8 Initial
Commit migrated from https://github.com/dotnet/corefx/commit/4c49f2727399665ed6b9c828fdcaeaaca30e72fd
2017-05-30 22:31:22 +02:00
Dan Moseley a139bc0b0f Skip verifying stack on full framework (dotnet/corefx#19182)
* Skip test on netfx

* Fix build

* build2

* build3


Commit migrated from https://github.com/dotnet/corefx/commit/a3c6ed02c6baf04019b73f56068a9687ea51702f
2017-05-01 14:23: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
Hugh Bellamy ad1f8fdd2c Add tests for FormatterServices.GetUninitializedObject (dotnet/corefx#17717)
* Add tests for FormatterServices.GetUninitializedObject

- non runtime types
- array, pointer, ref types
- abstract/interface types
- open generic types
- byref like types
- shared generic instantiations
- COM objects
- nullable types
- default constructor
- static constructor (non beforefieldinit)
- static field (beforefieldinit)
- static constructor throwing

as

* Address PR feedback

- Remove now uneeded netcoreapp configuration and definition to use a
simpler non RuntimeType
- Update test that relies on System.__Canon to be coreclr specific
- Add test that actually tests for COM objects
- Fix naming of test for subclass of ContextBoundObject

* Split coreclr runtime specific code into it's own coreclr specific test

* Fix Unix test failures

* Add another test for GetUninitializedObject(TypeDesc) (generic type parameter)

* Address more PR feedback

* Fix CI errors


Commit migrated from https://github.com/dotnet/corefx/commit/b6d4e5fa4bddd130fa2f95e34f5487064ff6bd1b
2017-04-05 07:17:14 -07:00
Santiago Fernandez Madero de36b4d76e Update csproj and solutions configurations (dotnet/corefx#17613)
* Update csproj and solutions configurations


Commit migrated from https://github.com/dotnet/corefx/commit/9fa0bc5de96946eb3e109f13768f1258cfaddc73
2017-03-28 14:36:26 -07:00
Eric Mellino 8fbc03fb77 Remove non-existent project.json's from project files
Commit migrated from https://github.com/dotnet/corefx/commit/56202d079c0a45f17b5b6680ac1df3e5a4f78be1
2017-02-07 12:22:10 -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
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 f01bc10825 Make Test projects compile against the Targeting pack. (1/3 of the work) (dotnet/corefx#14482)
Commit migrated from https://github.com/dotnet/corefx/commit/3403b4f6a11fd6ba53551c9d55de25fbb83bdc85
2016-12-14 11:19:06 -08:00
Alex Perovich 674bb7a0f8 Update project ToolsVersions to 14.0 (dotnet/corefx#12355)
Commit migrated from https://github.com/dotnet/corefx/commit/71de1aac5cf3e5dc87714ae0cc829e1fa98f7c5d
2016-10-05 12:50:37 -07:00
Jose Perez Rodriguez a04cc5f428 Changing test projects to default to netcoreapp1.1 instead of netcoreapp1.0
Commit migrated from https://github.com/dotnet/corefx/commit/d56046ba2a740409006dfe94f1043c5f32a0339d
2016-10-01 11:08:50 -07:00
Wes Haggard 80a46fca6b Remove IncludePerformanceTests from S.R.S.Formatters to fix Perf build
The Perf build is broken because that property is set and this project
doesn't even have any perf tests so removing the property from the
project.


Commit migrated from https://github.com/dotnet/corefx/commit/2593123103e81df1f23306a4f7458b22a345d635
2016-09-27 22:04:18 -07:00
Jose Perez Rodriguez 402de0ceda Removing pkgproj references from csprojs
Commit migrated from https://github.com/dotnet/corefx/commit/286c1be983e6dd7ef2e458494ba360d7c1423747
2016-09-09 10:07:59 -07:00
Jose Perez Rodriguez 72a0d666a2 Adding Reflection changes back after merge from master (dotnet/corefx#11386)
Adding Reflection changes back after merge from master


Commit migrated from https://github.com/dotnet/corefx/commit/65e117580923503b1e970c95798f19baff568b5e
2016-09-03 14:00:39 -07:00
Jose Perez Rodriguez 6cb037809c Revert "Expose all Reflection APIs in System.Runtime"
Commit migrated from https://github.com/dotnet/corefx/commit/1b9fa4bc4e4ed2da511374543c6460ba6b4f8c6b
2016-09-01 14:19:37 -07:00
Sepideh Khoshnood 2c5119c7e2 Expose all Reflection APIs in System.Runtime (dotnet/corefx#11099)
Expose all System.Reflection APIs

Commit migrated from https://github.com/dotnet/corefx/commit/b647c01bba129ad9194b6dee2de888c00c59f962
2016-09-01 11:31:12 -07:00
Tarek Mahmoud Sayed a13535db25 Move the Globalization and Encoding contracts to System.Runtime
This change is to add the globalization and encoding to System.Runtime and update
System.Globalization.* and System.Text.Encoding contarcts too just type forward instead of
having any implementation


Commit migrated from https://github.com/dotnet/corefx/commit/27ed033f3f3b2ad6b19db98db00c8789aed74a1b
2016-08-29 09:57:26 -07:00
Stephen Toub 8f213fd51d Separate exception serialization test into helper
Many of the serializable types in corefx are exceptions.  To make it easier to test them, I'm separating out a helper that can be used in both the BinaryFormatter tests and in each individual project's tests.


Commit migrated from https://github.com/dotnet/corefx/commit/4f4378cc325f597cd7748ba98eedb26f144e55f2
2016-08-22 09:30:15 -04:00
Jose Perez Rodriguez 240a2669cd Required changes post-merge to get a succesfull build in dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/f03238e592e63ca00a01f6fb36d2ba6d126857fe
2016-08-17 10:30:47 -07:00
Jose Perez Rodriguez fca828ff09 Merging master
Commit migrated from https://github.com/dotnet/corefx/commit/232775cf23351ccad8d538b9421d8b9640655cad
2016-08-16 12:02:31 -07:00
Jose Perez Rodriguez a464fc82aa Fixing packages of S.Runtime, S.R.S.Primitives and S.R.S.Formatters
Commit migrated from https://github.com/dotnet/corefx/commit/17aa5578d9017d10618477d7eb8dc93d1ebdece1
2016-08-15 10:09:00 -07:00
Stephen Toub 687fdc4b4f Move serialization primitives to System.Runtime
We need BinaryFormatter to be able to serialize types from coreclr that use the various serialization types (e.g. ISerializable), which means those types must have the same identity as the ones BinaryFormatter recognizes, and we need a bunch of types all across corefx to be able to use these same types to implement serialization.  As such, the types are moving down to System.Runtime, and on coreclr, are type-forwarding to the implementations there.

There are a few outstanding issues:
- SR is not currently available in System.Runtime.  The few uses of SR in the versions of the code used for corert have been replaced by hardcoded strings and TODOs.
- Debug.Assert is not currently available in System.Runtime.  Asserts have been commented out with TODOs.
- To get things to build as types are moving around, P2P references are used.


Commit migrated from https://github.com/dotnet/corefx/commit/90be35920b48820536b8740f64d565ded55d811e
2016-08-15 09:47:08 -07:00
Deepak Shankargouda e5ec24a634 fixing issue 10535 (dotnet/corefx#10536)
Commit migrated from https://github.com/dotnet/corefx/commit/b39944b8bad5d859ff1a5d9e64ec4cc23cfee142
2016-08-02 19:08:25 -07:00
Stephen Toub 63f23889e3 Add cross-process BinaryFormatter test
All of the tests I previously added serialized/deserialized to MemoryStreams handled by the same process.

This adds a test that serializes/deserializes with FileStreams that are read and written by other processes.


Commit migrated from https://github.com/dotnet/corefx/commit/33c745a0cd9ac7f4f3354279cb952d0f1d4003dc
2016-07-21 20:30:32 -07:00
Stephen Toub 87b2f2c9e1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/60660405f37543c366ad02da6ec63bc5673dd355
2016-07-19 00:33:23 -07:00
Stephen Toub 87ce158210 Add BinaryFormatter to corefx
This ports BinaryFormatter from desktop, along with all of the supporting types and general Formatter-related types.  I've added a bunch of tests, bringing code coverage up to ~80%, though there's still more that can/should be done.  I did not port remoting-specific functionality, though there are still some remnants I've left as they were enabled in the runtime even when remoting wasn't compiled in, and it wasn't clear if they were serving additional purposes.


Commit migrated from https://github.com/dotnet/corefx/commit/e45a01a4840700d75bb1dd3bf7d0e10ff6a3bc82
2016-07-19 00:33:18 -07:00
Karthik Rajasekaran 5c93b350d3 Add NugetTargetMoniker to test projects and update remaining project references to pkgproj
Commit migrated from https://github.com/dotnet/corefx/commit/13e03705ced065850dc65900fccfd930426e87d7
2016-06-29 12:30:05 -07:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Krzysztof Cwalina bdc2980429 Adding Binary Serialization Programming Model
We decided to add binary serialization programming model (ISerializable, etc.) as an out of band package.
This will allow existing code implementing the SPM to compile for .NET Core without changes.

This is the ferst in a series of commits to ease porting of code involving serialization.
In subsequent commits, we are planing to:
1. Fill in the details of SerializationInfo
2. Add Exception.set_StackTrace
3. Add FormatterServices.GetUninitializedObject
4. Add BinaryFormatter (the exact semantics TBD)


Commit migrated from https://github.com/dotnet/corefx/commit/db70c8e2ba100b2f0f8fa1ace82dd1988200b269
2016-05-04 17:14:01 -07:00