From 3e14642490ed54545955ce9cf79416be7fb25aaf Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 23 Apr 2024 21:04:29 +1000 Subject: [PATCH] refs and cleanup --- .../Reflection/ReflectionUtilitiesTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApprovalUtilities.Tests/Reflection/ReflectionUtilitiesTest.cs b/src/ApprovalUtilities.Tests/Reflection/ReflectionUtilitiesTest.cs index 65b95acd..a32102d4 100644 --- a/src/ApprovalUtilities.Tests/Reflection/ReflectionUtilitiesTest.cs +++ b/src/ApprovalUtilities.Tests/Reflection/ReflectionUtilitiesTest.cs @@ -73,7 +73,7 @@ public void GetNonPublicInstanceFields() => [Fact] public void GetNonPublicInstanceFieldsAssignableTo() { - Func selector = fi => typeof(MulticastDelegate).IsAssignableFrom(fi.FieldType); + Func selector = fi => fi.FieldType.IsAssignableTo(); Approvals.VerifyAll( new TestingEventPoco().GetInstanceFields(selector),