diff options
author | Michael Voorhees <michaelv@unity3d.com> | 2020-03-31 17:20:23 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2020-03-31 19:20:18 +0300 |
commit | ec2cbdb894e11065f42b1223f664d9688b749323 (patch) | |
tree | 42de7cce6ea1dee8034f7dbbdbf7e240a28b280c | |
parent | 33b245c47551754e8664832df1c2a4bf72920f05 (diff) |
Fix for PR #1027
-rw-r--r-- | test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs index 5e2964897..9b8ddac22 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs @@ -99,7 +99,7 @@ namespace Mono.Linker.Tests.TestCasesRunner { && _testCaseTypeDefinition.NestedTypes.Any (nestedType => nestedType.CustomAttributes.Any (attr => attr.AttributeType.Name == nameof (VerifyAllReflectionAccessPatternsAreValidatedAttribute) - || _testCaseTypeDefinition.AllMethods ().Any (method => method.CustomAttributes.Any (attr => + || nestedType.AllMethods ().Any (method => method.CustomAttributes.Any (attr => attr.AttributeType.Name == nameof (RecognizedReflectionAccessPatternAttribute) || attr.AttributeType.Name == nameof (UnrecognizedReflectionAccessPatternAttribute)))))) { customizations.ReflectionPatternRecorder = new TestReflectionPatternRecorder (); |