Add hot reload test that adds custom attributes (#53387)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Wed, 2 Jun 2021 14:25:05 +0000 (10:25 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Jun 2021 14:25:05 +0000 (10:25 -0400)
commit6d576ba3a64aaf5f568f5ff81c30dc3f9646c8a3
tree7ed9b48fbfc64847d7b879d689f036f3e8618781
parentc103e2a445a1e2a523f14936ecadf521f56f182f
Add hot reload test that adds custom attributes (#53387)

* Add hot reload test that adds custom attributes

   This test adds new rows to the CustomAttribute table with both new a class and a new method as parents.  That should result in an unsorted table, which CoreCLR should be able to handle.

* rework the test not to rely on Assembly.GetType

   Looking up the new class using System.Reflection.Assembly.GetType wasn't working.

* clear reflection caches
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributes/ClassWithCustomAttributes.cs [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributes/ClassWithCustomAttributes_v1.cs [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributes/System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributes.csproj [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributes/deltascript.json [new file with mode: 0644]
src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs
src/libraries/System.Runtime.Loader/tests/ApplyUpdateUtil.cs
src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj