From ec2cbdb894e11065f42b1223f664d9688b749323 Mon Sep 17 00:00:00 2001 From: Michael Voorhees Date: Tue, 31 Mar 2020 10:20:23 -0400 Subject: Fix for PR #1027 --- test/Mono.Linker.Tests/TestCasesRunner/TestCaseMetadaProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Mono.Linker.Tests') 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 (); -- cgit v1.2.3