public void TryCreateDelegate_ClassWithActionMethod_DelegateTypeIsWrong_ReturnsFalse()
        {
            var obj = new ActionMethods();
            var method = obj.GetType().GetMethod(nameof(obj.SomeAction));

            bool canCreate = method.TryCreateDelegate(obj, out Predicate<int> del);

            Assert.IsFalse(canCreate);
        }
        public void TryCreateDelegate_ClassWithActionMethod_ReturnsTrue()
        {
            var obj = new ActionMethods();
            var method = obj.GetType().GetMethod(nameof(obj.SomeAction));

            bool canCreate = method.TryCreateDelegate(obj, out Action del);

            Assert.IsTrue(canCreate);
        }