예제 #1
0
        public void GetMethodInfoShouldReturnMethodInfoForStaticMethodOnStaticClass()
        {
            var methodInfo = Reflector.GetMethod(() => StaticFoo.StaticMethod());

            methodInfo.Name.Should().Be("StaticMethod");
            methodInfo.IsStatic.Should().BeTrue();
        }
예제 #2
0
 public double Add(double a, double b)
 {
     return(StaticFoo.Add(a, b));
 }