public void Should_find_function_based_on_returned_delegate_and_arguments()
        {
            var methodInfo = typeof(SomeClass).GetMethod("Foo", new[] { typeof(string), typeof(int) });

            Assert.That(MethodReflector <SomeClass> .FromMethodDelegate <string, int, int>(inst => inst.Foo), Is.EqualTo(methodInfo));
        }
        public void Should_find_action_based_on_returned_delegate_and_arguments()
        {
            var methodInfo = typeof(SomeClass).GetMethod("Action");

            Assert.That(MethodReflector <SomeClass> .FromMethodDelegate <int, string, long, char, object>(inst => inst.Action), Is.EqualTo(methodInfo));
        }
        public void Should_find_function_based_on_returned_delegate()
        {
            var methodInfo = typeof(SomeClass).GetMethod("Foo", new Type[0]);

            Assert.That(MethodReflector <SomeClass> .FromMethodDelegate <int>(inst => inst.Foo), Is.EqualTo(methodInfo));
        }