public void ServiceResolverExistsForAnyMethodType() { ServiceCollection services = new ServiceCollection(); services .WithService("Test", "/") .WithEndpoint("foo/{param}/bar") .Get(() => { }); ServiceResolver resolver = new ServiceResolver(services); Assert.IsTrue(resolver.ExistsForAnyMethodType("foo/baz/bar")); Assert.IsFalse(resolver.ExistsForAnyMethodType("foo/bar")); }