Expose `Iscollectible` property on Assembly and MemberInfo (dotnet/corefx#33979)
authorJohn Salem <josalem@microsoft.com>
Wed, 12 Dec 2018 22:32:17 +0000 (14:32 -0800)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 12 Dec 2018 22:32:17 +0000 (23:32 +0100)
commitb90275f5a01f885a37387f9b5c678c16a56fb891
tree77f81f0b10d3772afc33e6b0e3cf44b6b4ee8ce0
parentbb1bb117b0095a92b45f1eba0ae77887df0ac764
Expose `Iscollectible` property on Assembly and MemberInfo (dotnet/corefx#33979)

* Expose IsCollectible on MemberInfo

* Adding skeleton for testing IsCollectible property on MemberInfo/MethodInfo

* Add test for generic tests being loaded using Assembly.LoadFrom

* Expose IsCollectible on Systme.Reflection.Assembly

* Adding tests for generics with type parameters from collectible assembly

* Rename test class to be more general

* Removing unnecessary comments

* Add test skips for uapaot

* Add missing Dispose() to tests

* Fix typos and add framework exclusion for NetFx

* Simplify TestAssemblyLoadContext.Load() per feedback

* Finish simplification of TestAssemblyLoadContext and added statics to tests

* Prevent IsCollectible tests from compiling on netfx

Commit migrated from https://github.com/dotnet/corefx/commit/d38db578d8a611f28a62de1005a9299d199bf5a9
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
src/libraries/System.Runtime/tests/System/Reflection/IsCollectibleTests.cs [new file with mode: 0644]
src/libraries/System.Runtime/tests/TestCollectibleAssembly/Configurations.props [new file with mode: 0644]
src/libraries/System.Runtime/tests/TestCollectibleAssembly/TestCollectibleAssembly.cs [new file with mode: 0644]
src/libraries/System.Runtime/tests/TestCollectibleAssembly/TestCollectibleAssembly.csproj [new file with mode: 0644]