public void GetMethodInfoShouldReturnMethodInfoForStaticMethodOnStaticClass() { var methodInfo = Reflector.GetMethod(() => StaticFoo.StaticMethod()); methodInfo.Name.Should().Be("StaticMethod"); methodInfo.IsStatic.Should().BeTrue(); }
public double Add(double a, double b) { return(StaticFoo.Add(a, b)); }