コード例 #1
0
ファイル: ServerTests.cs プロジェクト: NickLydon/Anna
        public void CanUseAsteriskInUrl()
        {
            using (var server = new HttpServer("http://*:1234/"))
            {
                server.OnExactPathAndMethod("/wildcarded-*","GET")
                      .Subscribe(ctx => ctx.Respond("hello world"));

                Browser.ExecuteGet("http://localhost:1234/wildcarded-*")
                       .ReadAllContent()
                       .Should().Be.EqualTo("hello world");
            }
        }