diff --git a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs index 91cc9e5ac..99be50e05 100644 --- a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs +++ b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs @@ -164,7 +164,7 @@ private static void VerifyClassHasNotBeenPassedAsAnAdditionalInterface(Type[]? a } } - private static bool HasItems(T[]? array) => array?.Length != 0; + private static bool HasItems(T[]? array) => array?.Length > 0; private class AllMethodsExceptCallRouterCallsHook : AllMethodsHook {