Commit Graph
79 Commits
Author SHA1 Message Date
Jan Kotas e1fa5d7648 Disable Bitmap round-tripping tests for old libgdiplus versions (#34354)
* Fix filename typo

* Disable Bitmap round-tripping tests for old libgdiplus versions

Old libgdiplus versions have uninitialized stack variable bug that makes Bitmap round-tripping unreliable. The bug causes Bitmap.Flags, Bitmap.HorizontalResolution and Bitmap.VerticalResolution properties to be set to bogus values if the stack happens to contain certain bit patterns. This bug was fixed for libgdiplus 6 by https://github.com/mono/libgdiplus/commit/81e45a1d5a3ac3cf035bcc3fabb2859818b6cc04#diff-c96a8261ecb168c12b44248208da21c0R118.

* Fix and simplify gdiplus library loading
2020-03-31 23:37:57 -07:00
Santiago Fernandez Madero 110282c71b Update all issues in source code to point to runtime (#32349) 2020-02-18 15:49:23 -08:00
Jan KotasandStephen Toub 0b25063ec0 More renames of full framework to .NET Framework (#1900)
* More renames of full framework to .NET Framework

* Apply suggestions from code review

Co-Authored-By: Stephen Toub <[email protected]>
2020-01-18 11:04:59 -08:00
Viktor Hofer 9b88ca1d72 Remove UAP target (dotnet/corefx#41759)
* Remove Uap target

* Remove RemoteInvokeForUap wrapper calls entirely

* Harvest S.D.SqlClient on UWP

* Disable UWP PInvoke analyzer

* Enable WindowsRuntime* tests on netcoreapp

Commit migrated from https://github.com/dotnet/corefx/commit/3b6ec2ba944fb72f921f95b99b6ebf2e7bb3dc5a
2019-10-17 15:04:39 +02:00
Eriawan Kusumawardhono 89174f25b0 Replace tfm based constants with SDK ones (dotnet/corefx#41601)
* replace DefineConstants with SDK ones

Commit migrated from https://github.com/dotnet/corefx/commit/2133679ff62222ba2734232ab8fa4c65765e82a2
2019-10-15 19:11:40 +02:00
Stephen Toub 7ff3a1100a Reduce RemoteInvoke usage in tests (dotnet/corefx#41741)
Many of our RemoteInvokes are there purely because of needing to change the current thread culture but on UAP that actually impacting the whole process.  Until that's addressed, we can at least avoid the RemoteInvoke on all platforms other than UAP. There are also some RemoteInvokes that can be avoided by just serializing all of the (small number of) tests in a test assembly. And there's some additional cleanup to be done as well around not explicitly returning an exit code unless required.

This helps measurably with test performance.  Consider the System.ComponentModel.Annotations test suite.  On my machine, prior to these changes, it took ~25 seconds; after these changes, it takes ~0.3. It helps even more when running against a checked runtime, where all of our test costs are magnified.  With a checked runtime, prior to these changes, it takes ~196 seconds; after these changes, it takes ~2.5 seconds.  This should help measurably with CI time in coreclr.

Commit migrated from https://github.com/dotnet/corefx/commit/cd18bafbabf7fe47601f6f790d157409034a2477
2019-10-15 12:09:06 -04:00
Stephen Toub 60d1224ddd Re-enable StyleCop warnings SA1028 and SA1518 (trailing whitespace and blank lines) (dotnet/corefx#40113)
Mechanical/automated change.  The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.

Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
2019-08-07 21:07:58 -04:00
Viktor Hofer 0f67ef28f8 Make CoreFx.Private.TestUtilites RID-agnostic (dotnet/corefx#36207)
* Make CoreFx.Private.TestUtilites RID-agnostic

* Add version checks for other distros

https://github.com/dotnet/corefx/commit/dotnet/corefx@4f0d10773ccbb4849b869b6a0a73d5938f1804bd
Porting fix over into PlatformDetection.

* Build test lib in advance for VS support

* Disable pretest in AllConfigurations

Commit migrated from https://github.com/dotnet/corefx/commit/d3d144fad9b600a0fc1ca6fc7d65c247fddd9f04
2019-06-29 21:53:19 +02:00
Jose Perez Rodriguez 275f6d0636 Making Exceptions serializable (dotnet/corefx#38893)
* Making Exceptions serializable

* Remove EventLog serialization exceptions from tests since they won't work on non-Windows platforms

* Fix build and add internal exceptions as well

* Add parameter-less constructor to RethrowException

* Adding PR Feedback

* Fix allConfigurations build


Commit migrated from https://github.com/dotnet/corefx/commit/7075587321a1b6b59248b1a6c7ea04fc803eab96
2019-06-26 11:59:59 -07:00
Steve Harter f33959f58e Custom converter feature for JSON serializer (dotnet/corefx#38578)
Commit migrated from https://github.com/dotnet/corefx/commit/6b41813015ad0db7740523d65acfcd6a6d7b2df5
2019-06-19 11:27:09 -07:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
dotnet-maestro[bot] fc3491e249 [master] Update dependencies from dotnet/coreclr (dotnet/corefx#37746)
* Update dependencies from https://github.com/dotnet/coreclr build 20190516.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27716-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27716-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27716-72

* Update dependencies from https://github.com/dotnet/coreclr build 20190517.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27717-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27717-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27717-72

* Update dependencies from https://github.com/dotnet/coreclr build 20190518.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27718-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27718-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27718-72

* Update dependencies from https://github.com/dotnet/coreclr build 20190519.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27719-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27719-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27719-72

* Fix ref assemblies due to change in coreclr

* Fix serialization tests after TimeZone change


Commit migrated from https://github.com/dotnet/corefx/commit/c85411a30c2c3a1d6ad3beea7be92b19b1e24df9
2019-05-20 17:15:57 -07:00
Steve Harter c41d1d7d78 Add JsonException and make JsonSerializationException derive from JsonException and be internal (dotnet/corefx#37275)
Commit migrated from https://github.com/dotnet/corefx/commit/f6762c0e37641bf31b9957dc51e74089bac5a310
2019-05-06 18:00:49 -07:00
Stephen Toub 1de0f651e4 Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing.  Also fixed the visibility on a bunch of test methods it wasn't able to access.

Commit migrated from https://github.com/dotnet/corefx/commit/475542441df2f054d5e9aa39576019775a5d2f52
2019-03-29 17:40:05 -04:00
Maryam Ariyan 226a8904e4 Expose AmbiguousImplementationException and add tests (dotnet/corefx#35632)
* Expose AmbiguousImplementationException and add tests

Fixes: dotnet/corefx#34124


Commit migrated from https://github.com/dotnet/corefx/commit/34337c3a73675aa06f09d81b15bc926889b44922
2019-03-07 13:40:50 -08:00
Viktor Hofer f18766f66f Add net472 build3260 blobs (dotnet/corefx#35448)
Commit migrated from https://github.com/dotnet/corefx/commit/b018ced265fe099679be0ec1e7afa805a154d49a
2019-02-20 18:52:01 +01:00
Maryam Ariyan 113200c30f Add SwitchExpressionException (dotnet/corefx#34954)
* Add SwitchExpressionException

Fixes: dotnet/corefx#33284

* Apply PR feedbacks

* Type just added to .net core 3.0

* quick cleanup

* Add test in BinaryFormatterTestData

* Updated the APIs for SwitchExpressionException

* Remove IsSerializable condition


Commit migrated from https://github.com/dotnet/corefx/commit/3685052201c95462f210582be9fe380baf1b902e
2019-02-07 18:49:42 -08:00
Viktor Hofer 4a649721d1 Add SyncSortedList serialization test and remove SyncRoot (dotnet/corefx#34339)
* Add SyncSortedList serialization tests and remove SyncRoot

* Disable blob comparison for SyncSortedList

On UWP we get different blobs for SyncSortedList as reflection behaves
differently as the amount of types that we tests is less than in
.NET Core and .NET Framework. The order of fields that are serialized
into the payload are different in such a case.
Therefore we just disable the blob comparison for this type entirely.


Commit migrated from https://github.com/dotnet/corefx/commit/de591233c04efa019ea2aed0a8fc5181f6d4210b
2019-01-08 17:46:36 +01:00
Stephen Toub 7097b4fc3b Add BinaryFormatter and TypedReference test involving struct with readonly field (dotnet/corefx#33690)
* Add BinaryFormatter test involving struct with readonly field

* Add MakeTypedReference test for readonly field


Commit migrated from https://github.com/dotnet/corefx/commit/1197641767c4c281ddcd38d3bf3bf6b2bb79abca
2018-11-27 12:55:21 -05:00
Viktor Hofer 976ee8955e Fix IsDrawingSupported condition and streamline code
Fix unix IsDrawingSupported & rename helper method in Drawing


Commit migrated from https://github.com/dotnet/corefx/commit/64c979d70525f7113880c1f07f6165d860f30962
2018-11-19 13:14:44 -08:00
Santiago Fernandez Madero 7124cbb852 Add missing TypeForwardedFromAttribute to System.Drawing serializable types (dotnet/corefx#33499)
Commit migrated from https://github.com/dotnet/corefx/commit/711a1040709bdb2150f5bae2ef2604755d94d10a
2018-11-15 15:09:03 -05:00
Stephen Toub 6c61c2b55c Fix BinaryFormatter serialization of arrays containing DateTimes (dotnet/corefx#33466)
* Fix EqualityExtensions handling of enumerables

The CheckSequenceEquals method is erroneously testing an enumerable against itself rather than against the intended other.  Luckily this didn't mask any failures in existing test data, but it does in new test data being added.

* Fix serialization of arrays containing DateTimes

When DateTimes are serialized individually, DateTime's serialization ctor/GetObjectData are used.  But when it's serialized as part of an array, a different path is taken that serializes it via a separate BinaryFormatter-specific "I know what this type is" mechanism, and that's currently dropping the Kind information from the DateTime, due to the necessary API on DateTime being internal and not available to BinaryFormatter.


Commit migrated from https://github.com/dotnet/corefx/commit/0b613fa6ffc60e80754346c1ea5f97a17f6aa3dd
2018-11-13 22:34:49 +01:00
Viktor Hofer e9327f501c Make Font serializable (dotnet/corefx#33445)
Commit migrated from https://github.com/dotnet/corefx/commit/6e55e0fa6711a15e1e02a6948532979a142c993b
2018-11-13 15:38:57 +01:00
Ahson Khan 714a878eb7 Add JsonUtf8Reader (for ReadOnlySpan) along with unit tests (dotnet/corefx#33216)
* Initial check-in for System.Text.Json library and solution

* Auto-generate the reference assembly

* Provide an overview README and roadmap

* Change the solution GUID to be unique

* Fix package description nit

* Change to MIT license instead of GPL

* Fix file extension of images to png

* Address PR feedback and only support netcoreapp

* Fix the configuration props and project files

* Add comments to the JsonTokenType enum

* Add an internal class for commonly used constants when reading JSON.

* Add a comment handling enum for lenient JSON reading

* Add a JsonReaderOptions struct to provide extensible customization of
JsonReader behaviour

* Add a JsonReaderException class which is thrown when we see an invalid
JSON text

* Add the skeleton for the JsonUtf8Reader ref struct and add files to
csproj

* Add JsonReaderState, ThrowHelper, and Strings resource file

* Address PR feedback, remove OS-specific configurations

* Complete the implementation of core JsonReader APIs for reading spans

* Update the reference assembly by auto-generating it

* Add unit tests and TryGet APIs

* Add XML comments to describe the JsonUtf8Reader at a high level

* Fix config and csproj to reference S.R.CS.U from Corelib

* Rename type from JsonUtf8Reader to Utf8JsonReader

* Remove remnants of ReadOnlySequeunce related fields/properties

* Add the remaining TryGetValueAsX APIs

* Change JsonReaderState ctor to accept JsonReaderOptions instead

* Seal the JsonReaderException class

* Rename LineBytePosition to BytePositionInLine

* Fix typo in ArrayEndWithinObject exception message

* Capitalize the acronym JSON within exception messages.

* Override GetObjectData and add a private deserialization ctor on
JsonReaderException

* Be explicit with lessThan in the IndexOfAny call site

* Only use ulong when Options isn't AllowComments to align stack usage

* Rename IndexOfAny helper to IndexOfOrLessThan

* Remove stray comment and fix xml comment for BytesConsumed

* Braces everywhere

* Rename localCopy to localBuffer to tie it to _buffer

* Add IsDigit and IsHexDigit helper methods

* Rename Solidus to Slash, ReverseSolidus to BackSlash, and Use Asterisk constant

* Use static encoder and avoid unnecessary allocation.

* Combine multiple TryParse calls that only differ by standardFormat

* Use SR.Format instead of string.Format and add debug.fail for default
case

* Make the exception as serializable and add test to BinaryFormatterTestData

* Fix exception messages, avoid printing control characters, and remove
unnecessary else.

* Make sure all exception messages are consistent and that they make sense
in context.

* Fix and add new comments, rename internal enum values, and remove
JsonLab

* Throw InvalidCastException from TryGetAsX if token type doesn't match

* Resolve TODOs, add issues, fix search for end of string, and remove recursive calls + add more tests.

* Use Unicode escape sequences for non-ASCII characters in tests.

* Add more tests related to skipping and consuming comments.

* Allocate the stack lazily, only when depth actually surpasses 64.

* Add a netcoreapp config to
System.Runtime.Serialization.Formatters.Tests.csproj

* Remove unnecessary DefineConstants property in test csproj

* Use Invariant Culture where necessary to avoid tests failing on es-ES
machines

* Fix up nits in the exception messages

* Add an IsTokenTypePrimitive helper method and fix comment spelling

* Use helper, use while(true) instead of goto, and change TryGet methods
to throw InvalidOperationException

* Shorten CommentHandling enum values and rename Default to Disallow

* Fix "is the stack empty" check in EndObject/EndArray

* Add previous token type to state and update it when token type is not a
comment

* Include comment delimiters as part of comment token, fix Debug.Assert
and tests.

* Add helper to avoid code duplication

* Add temporary workaround for Utf8 double parsing issue


Commit migrated from https://github.com/dotnet/corefx/commit/43759525e9a01fb9caedc0fb2281db5c65a16f65
2018-11-09 02:53:01 -08:00
Viktor Hofer 01fdc8d3d5 Make Image, Bitmap, Metafile and Icon serializable (dotnet/corefx#30817)
* Make Image, Bitmap, Metafile and Icon serializable

* Fix build error because of different namings on Unix & Windows

* Add Unix MemoryStream handling for serialization

* Simplify Icon deserialization logic

* Fix rename build break

* Fix build break again

* Add serialization tests for System.Drawing types

* Remove unnecessary null check in Icon

* Remove Debug fail invocations in Image deserialization

* Disable blob comparison for Drawing types

* Disable system.drawing.common binary formatter tests for uap since is a turd assembly

* Fix nano failures

* Fix typo in FindEncoderForFormat call

* Fix Windows test failures

* Fix unix deserialization where nativeImage pointer was not being set and update blobs

* Update metafile comment on why we skip it


Commit migrated from https://github.com/dotnet/corefx/commit/11c54f3bd947b8ceb41b51440379c49cf777248f
2018-09-13 13:45:37 -07:00
Santiago Fernandez Madero 6201f73b0d Remove ActiveIssue from serialization test (dotnet/corefx#31947)
Commit migrated from https://github.com/dotnet/corefx/commit/8f897b247a49db435e23847056e20b3d22c8cf0d
2018-08-24 15:43:32 -07:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Santiago Fernandez Madero 278e0dfc0f Prep key enums for binary serialization (dotnet/corefx#31641)
* Prep key enums for binary serialization

* Add enum blobs to formatter test data;

* Set correct blobs


Commit migrated from https://github.com/dotnet/corefx/commit/8ce7ff4f04bf288dca6d89a27e3e48cf096b7b46
2018-08-09 21:01:09 -07:00
Viktor Hofer 5a7c1ee516 Add netfx472 serialization blobs and cleanup code to fix failing PRs (dotnet/corefx#30394)
* Add netfx472 serialization blobs and cleanup code

* Add check if net472 is patched


Commit migrated from https://github.com/dotnet/corefx/commit/7c1dc969ce02cfab1dbb241800abbd7a3c9a0155
2018-06-16 00:08:28 +02:00
Anirudh Agnihotry 1cbb2edb36 Disabling just the failing object (dotnet/corefx#29000)
Commit migrated from https://github.com/dotnet/corefx/commit/3dd98d8d79ab8ed670e7fc2162bf296460ad5c4b
2018-04-18 14:53:00 -04:00
Alexander Radchenko eeda23bfed Fixed netfx System.Runtime.Serialization.Formatters.Tests fails on non-English Windows (dotnet/corefx#28386)
Commit migrated from https://github.com/dotnet/corefx/commit/f3768a7ee2726d0c070bc8c0bd8873d6cc52df7e
2018-03-22 23:01:05 -04:00
Anirudh Agnihotry 7ea972a654 Support added for 2.0 and 2.1 blobs (dotnet/corefx#27399)
Commit migrated from https://github.com/dotnet/corefx/commit/6c5a24394309297e03581cd72daefe83ea5f0903
2018-03-02 23:52:50 -08:00
Anirudh Agnihotry 7552566520 Tests for StringComparer Create(culture, CompareOptions) overload (dotnet/corefx#27051)
Commit migrated from https://github.com/dotnet/corefx/commit/e2fc82a68ba26767c2b0aa8e766573c32a422088
2018-02-23 10:38:19 -08:00
dotnet-maestro-bot 3561fd513c Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02521-03, preview2-26221-06, preview2-26221-05, preview2-26220-02, beta-26221-00, beta-26221-00, respectively (master) (dotnet/corefx#27289)
* Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02521-03, preview2-26221-06, preview2-26221-05, preview2-26220-02, beta-26221-00, beta-26221-00, respectively

* Fix test data for System.Runtime.Serialization.Formatters BinFormatTestData


Commit migrated from https://github.com/dotnet/corefx/commit/c6983b1597e0ab722082845519d3c8af9029e27f
2018-02-21 13:12:48 -08:00
Viktor Hofer 5697ca8910 Add tests for EventArgs serialization (dotnet/corefx#25940)
* Add tests for EventArgs serialization

* Add EventArgs equality check as the type doesn't provide its own check


Commit migrated from https://github.com/dotnet/corefx/commit/b1737de9d53386da84cff232304f7143b0998d47
2018-01-02 20:42:28 +01:00
Santiago Fernandez Madero f230741a96 Change PlatformDetection.GetFrameworkVersion() to use registry key value instead of minor build number (dotnet/corefx#26094)
* Change PlatformDetection.GetFrameworkVersion() to use registry key value instead of minor build number

* Address PR Feedback to do one liner getters


Commit migrated from https://github.com/dotnet/corefx/commit/0a131dd2dd4d408c47946a0928f5a9f2d709f6db
2017-12-30 02:02:03 -06:00
Jon Hanna 5ecc221cc7 Add license headers. (dotnet/corefx#26009)
Any *.cs file found without the usual license header has it added except:

1. Files that note they are auto-generated.
2. Files with a different header (unless it is very close to the usual,
in which case adjust for typos and old versions).
3. FxCopBaseline.cs files.

Commit migrated from https://github.com/dotnet/corefx/commit/e5da05d7100a64ab1d98c865436a1fb8b0ddd507
2017-12-22 12:51:37 -06:00
stukselbax d752530099 Making Win32Exception.ToString() method contain NativeErrorCode (dotnet/corefx#25216)
* Making Win32Excpetion.ToString() method more useful by adding NativeErrorCode

* Cache StackTrace to local variable

* corefx-24892 Change binary formater test data for WebSocketException and the string representation of Win32Exception

* corefx-24892 Add condition for full framework in test


Commit migrated from https://github.com/dotnet/corefx/commit/272b278727e5654f41a218779793132f92404fa1
2017-12-15 15:25:54 -08:00
Maryam Ariyan a63ea85fb5 Porting first half of the System.ComponentModel.Composition tests (dotnet/corefx#25437)
* Adding a portion of System.ComponentModel.Composition tests

Commit migrated from https://github.com/dotnet/corefx/commit/fed2d5ff6842b2ce932c70162f3e06a8d0304030
2017-11-28 20:07:39 -08:00
Viktor Hofer 6d031c559a Fix UpdateBlobs regression, reenabling ValueTuple tests on Core, add Dictionary<string,string> serialization test case (dotnet/corefx#24962)
* Fix UpdateBlobs regression, reenabling ValueTuple tests on Core

* Add Dictionary<string,string> serialization test case


Commit migrated from https://github.com/dotnet/corefx/commit/b2dcf2c4c392b228ce7a35a7d1873eab0846ab9e
2017-11-03 16:41:57 +01:00
Santiago Fernandez Madero c07313de19 Fix system formatter tests hitting netfx inbox binplace issue (dotnet/corefx#24935)
* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices.Protocols

* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices.AccountManagement

* Fix Serialization.Formatter tests hitting PNSE in DirectoryServices


Commit migrated from https://github.com/dotnet/corefx/commit/853d4c4b66d010ab430a2454c9c6fe95e6dffd78
2017-10-27 23:19:10 -07: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
Viktor Hofer b225d65a55 Adding dbnull to dbtable (dotnet/corefx#23959)
Commit migrated from https://github.com/dotnet/corefx/commit/15c191b29a5efb4d5dbc59784feb7af54ddbe8d5
2017-09-11 16:38:42 -07:00
Viktor Hofer dc54c019f7 DbNull serialization with tests and forward (dotnet/corefx#23897)
* DbNull tests and forward

* UnitySerializationHolder deserialization test added


Commit migrated from https://github.com/dotnet/corefx/commit/9ab8189268fbc6c4e98f8d10a6753d0477ef3239
2017-09-11 22:49:26 +02:00
Viktor Hofer 6704d84939 Fixing uap serialization errors for exceptions (dotnet/corefx#23808)
* Fixing uap serialization errors for exceptions

* pr changes

* Revert two updated blobs


Commit migrated from https://github.com/dotnet/corefx/commit/c89b4fb5050d9ca3de86dddce7fe3fd9dc34dc33
2017-09-06 01:34:07 +02:00
Viktor Hofer 2e4c798b3c Adding cross framework serialization and blob sanity check for serializable Exception types (dotnet/corefx#23523)
* Adding cross framework serialization and blob sanity check for serializable Exception types

* Add AggregateException equality check and check InnerException of Exception type

* Refine test data for exceptions

* Manual StackTrace override for Exception serialization tests

* Improved exception serialization data


Commit migrated from https://github.com/dotnet/corefx/commit/a534c0ebbd3c5741f97590ece32f1b31645f0994
2017-08-25 01:57:55 +02:00
Viktor Hofer 24ff7a5172 Set InvariantCulture Local explicitely and improve error logging (dotnet/corefx#23486)
* Set InvariantCulture Local explicitely and improve error logging

Commit migrated from https://github.com/dotnet/corefx/commit/dd8bc0d9e929ff4a7da368ae1c16b9b33e9c8a6a
2017-08-23 15:04:13 +02:00
Viktor Hofer b1ef95a563 Setting culture to Invariant to avoid not installed user language on test machines (dotnet/corefx#23391)
Commit migrated from https://github.com/dotnet/corefx/commit/c61981dc5b87ac3f389a4c63ed97dae9dde37c77
2017-08-18 15:44:15 -07:00
Viktor Hofer 1cd45647ed Set fixed culture for CookieContainer blob sanity check (dotnet/corefx#23285)
* Set fixed culture for CookieContainer blob sanity check

* PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/04c1a2ce4e9eb46f229038961e99702336780b06
2017-08-17 12:41:33 -04:00
Morgan Brown ec6630c262 Fix BinaryFormatter AoT test differences (dotnet/corefx#22461)
* Fix serialization tests to handle a couple of AoT differences:
1. AoT doesn't return ByteEqualityComparer from EqualityComparer<byte>.Default, so create it with reflection instead
2. CoreCLR changes the _version field of List differently than both AoT and NetFX, so pass arrays to the IEnumerable constructor of a few collections, which causes the _version fields to agree. Also updates the stored blobs to reflect this.


Commit migrated from https://github.com/dotnet/corefx/commit/7639beea9ff8be752b46bbe084093cd43bec6e35
2017-07-20 11:47:52 -07:00