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
* 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
* 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
* Use stackalloc directly into Span
We have a few places in corefx where we were stackalloc'ing into a temporary pointer and then creating a Span from that. Now that we're using a C# compiler which supports stackalloc'ing directly into span, use that feature instead.
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/a7f6f470cb2c4cdaafdc3ad85e2520992a8db265
* 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
* 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
* 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
* Implement argument pasting in RemoteInvoke
* Add tests for RemoteInvoke fixes
* Update RemoteInvoke tests now that quoting is unecessary
* Fix netfx tests
The extra parameter is empty in netfx so was pasted to ""
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/232f48884efed22d228ae4a9450b37fbfa92b861
* Reenable sanity check
* Avoid different blobs for CookieContainer dependent on machine configuration
* Fixing diffent blobs for CompareInfo as it used machine config depdent values
* Fixing different in DataTable and DataSet
* Fixing CookieCollection missing field in serialization
Commit migrated from https://github.com/dotnet/corefx/commit/3ba241487054331c32ca5c1c13426de37ddd97c3
* Adding TypeForward to PathListComparer, CookieCollection member, full-mode tests, SizeF publickeytoken fix
* Making FormatterAssemblyStyle explicit
* Update blobs after CompareInfo culture field added to serialization payload
* Added blob integrity check
* Remove unnecessary operation which has no impact on netfx serialization
* Putting pragma around the unused field...
* Setting m_version value to include it in the serialization payload. Remove static versions for blob comparison
* Update compare logic
* update blobs
* disable checking if blob has changed
Commit migrated from https://github.com/dotnet/corefx/commit/fe3678109c8897854f7c943d2a0e44a127852d54
* 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
This change to enable remote execution of all corefx tests in UAP. Because the remote execution code for UAP is using WinRT APIs and to avoid forcing adding UAP configuration to all test projects, we factor the remote execution code into its own test library (called TestHelper) which is cross compiled.
Commit migrated from https://github.com/dotnet/corefx/commit/eb2f543b189e8f7f9ae4c31e832ac9d3c22bb41a
We initially left SerializationFieldInfo out of corefx as it wasn't necessary given previous goals around BinaryFormatter; but now it is. I've ported the code almost as-is from desktop, with some minor style tweaks, and a few necessary changes, e.g. using FieldInfo instead of RuntimeFieldInfo, as the latter isn't accessible. I've not done anything to minimize allocations / improve perf, etc., as that can be done in the future, and the results of all of this gets cached.
Changing this required regenerating a few of the serialization blobs in the tests. I also added a test for a case we didn't previously cover, a [Serializable] type derived from a non-serializable type.
Commit migrated from https://github.com/dotnet/corefx/commit/82e327c0e947b4e3537d1189ce44025b8b868da1
* Fix byreflike test for UAPAOT
* More fixes for UAP AOT BinaryFormatter tests:
* Making Cookie serialize correctly (I'm not sure why this wasn't needed for CoreCLR)
* More rd.xml
* Avoid private reflection in the test Comparer comparison
Commit migrated from https://github.com/dotnet/corefx/commit/c1fe8a8352ba633abfad979ea2be6ade428f505b