diff options
author | Antonius Riha <antoniusriha@gmail.com> | 2012-11-13 23:03:10 +0400 |
---|---|---|
committer | Antonius Riha <antoniusriha@gmail.com> | 2012-11-16 21:19:40 +0400 |
commit | c63b7eba2ddb19ad0b66fa08c14ca37554531343 (patch) | |
tree | 2fdb1b9e432ac4ca0920f3b6d9b984c2a5a7348c /mcs/class/System.ServiceModel.Web | |
parent | 8c7c1ff5f325ad34d38341c93e80b81ce9c553ae (diff) |
Add a test for UriTemplate.Match
Diffstat (limited to 'mcs/class/System.ServiceModel.Web')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/Test/System/UriTemplateTest.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel.Web/Test/System/UriTemplateTest.cs b/mcs/class/System.ServiceModel.Web/Test/System/UriTemplateTest.cs index f27a2d9d27b..a41802469eb 100644 --- a/mcs/class/System.ServiceModel.Web/Test/System/UriTemplateTest.cs +++ b/mcs/class/System.ServiceModel.Web/Test/System/UriTemplateTest.cs @@ -412,6 +412,16 @@ namespace MonoTests.System } [Test] + public void Match3 () + { + var template = new UriTemplate ("test"); + var match1 = template.Match (new Uri ("http://something"), new Uri ("http://something/test")); + var match2 = template.Match (new Uri ("http://something/something2"), new Uri ("http://something/something2/test")); + Assert.IsNotNull (match1, "#1"); + Assert.IsNotNull (match2, "#2"); + } + + [Test] public void MatchWildcard () { var t = new UriTemplate ("/hoge/*?p1={foo}"); |