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

            Assert.That(MethodReflector <SomeClass> .FromMethodCall(inst => inst.Baz(null)), Is.EqualTo(methodInfo));
        }
        public void Should_find_method_based_on_call_with_const_params()
        {
            var methodInfo = typeof(SomeClass).GetMethod("Foo", new[] { typeof(string), typeof(int) });

            Assert.That(MethodReflector <SomeClass> .FromMethodCall(inst => inst.Foo(null, 0)), Is.EqualTo(methodInfo));
        }
        public void Should_find_method_based_on_call()
        {
            var methodInfo = typeof(SomeClass).GetMethod("Foo", new Type[0]);

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