ServiceStack.WebHost.Endpoints.Tests.AppHostListenerBaseTests.Can_infer_handler_path_from_listener_uris C# (CSharp) Method

Can_infer_handler_path_from_listener_uris() private method

private Can_infer_handler_path_from_listener_uris ( ) : void
return void
        public void Can_infer_handler_path_from_listener_uris()
        {
            var map = new Dictionary<string, string> {
                {"http://*:1337/",null},
                {"http://localhost:1337/",null},
                {"http://127.0.0.1:1337/",null},
                {"http://*/",null},
                {"http://localhost/",null},
                {"http://localhost:1337/subdir/","subdir"},
                {"http://localhost:1337/subdir/subdir2/","subdir/subdir2"},
            };

            foreach (var entry in map)
            {
                var handlerPath = ListenerRequest.GetHandlerPathIfAny(entry.Key);
                Assert.That(handlerPath, Is.EqualTo(entry.Value));
            }
        }
#endif