Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonius Riha <antoniusriha@gmail.com>2012-11-13 23:03:10 +0400
committerAntonius Riha <antoniusriha@gmail.com>2012-11-16 21:19:40 +0400
commitc63b7eba2ddb19ad0b66fa08c14ca37554531343 (patch)
tree2fdb1b9e432ac4ca0920f3b6d9b984c2a5a7348c /mcs/class/System.ServiceModel.Web
parent8c7c1ff5f325ad34d38341c93e80b81ce9c553ae (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.cs10
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}");