diff options
author | Marek Safar <marek.safar@gmail.com> | 2020-09-17 11:35:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 11:35:07 +0300 |
commit | cc5c0f934dd37330a6e7484aced73d93771fc324 (patch) | |
tree | 9c30d68cfb7634e5c8a9edcdd5a030c2b98b2a67 /test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs | |
parent | 391d76f434873a823e4f3a0f4400636049b0327e (diff) |
Update to target .NET5 framework (#1471)
Co-authored-by: vitek-karas <vitek.karas@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Diffstat (limited to 'test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs')
-rw-r--r-- | test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs index 89af9873e..8389b9ad5 100644 --- a/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs +++ b/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs @@ -880,9 +880,9 @@ namespace Mono.Linker.Tests.TestCasesRunner // By now all verified recorded patterns were removed from the test recorder lists, so validate // that there are no remaining patterns for this type. var recognizedPatternsForType = reflectionPatternRecorder.RecognizedPatterns - .Where (pattern => pattern.Source.DeclaringType.FullName == typeToVerify.FullName); + .Where (pattern => pattern.Source.DeclaringType?.FullName == typeToVerify.FullName); var unrecognizedPatternsForType = reflectionPatternRecorder.UnrecognizedPatterns - .Where (pattern => pattern.Source.DeclaringType.FullName == typeToVerify.FullName); + .Where (pattern => pattern.Source.DeclaringType?.FullName == typeToVerify.FullName); if (recognizedPatternsForType.Any () || unrecognizedPatternsForType.Any ()) { string recognizedPatterns = string.Join (Environment.NewLine, recognizedPatternsForType |