diff options
Diffstat (limited to 'test/Mono.Linker.Tests')
-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 (); |