Commit Graph
1 Commits
Author SHA1 Message Date
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