public void ShouldNotGetMethodInfoWhenNameDoesntMatch() { MethodInfo result; result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook2"); Assert.IsNull(result); }
public void ShouldNotGetMethodInfoWhenRouteAttributeNotSet() { MethodInfo result; result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook3"); Assert.IsNull(result); }
public void ShouldGetMethodInfo() { MethodInfo result; result = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook"); Assert.IsNotNull(result); }
static MethodInfos() { GetBooks = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBooks"); GetBook = RouteUtils.GetMethodInfo <BooksRouteHandler>("GetBook"); }