I have a very basic test controller:
public class StatusController : ApiController { [HttpGet] public bool IsAlive() { return true; } }
And the following test will throw an exception:
`
var route = "/api/Status/IsAlive";
MyWebApi
.Routes()
.ShouldMap(route)
.To<StatusController>(c => c.IsAlive());`
since it cannot convert the lambda expression to a MethodCallExpression.