Пример #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));
 }