[sgen] Make sure we don't sweep a block if we're not supposed to
[mono.git] / mcs / class / System / Test / System / UriTest.cs
index efc9027e19c0f7cefd75374bf765809f990b3b06..32c3fb0459e10829d7a0b9419f3eb99dfc72cd72 100644 (file)
@@ -2064,5 +2064,20 @@ namespace MonoTests.System
 
                        Assert.AreEqual ("http://localhost/foo", res.ToString ());
                }
+
+               [Test]
+               public void ImplicitUnixFileWithUnicode ()
+               {
+                       string value = "/Library/Frameworks/System.Runtim…ee";
+                       Uri uri;
+                       Assert.IsTrue (Uri.TryCreate (value, UriKind.Absolute, out uri));
+               }
+
+               [Test]
+               public void UncValidPath ()
+               {
+                       var uri = new Uri ("https://_foo/bar.html");
+                       Assert.AreEqual ("https", uri.Scheme);
+               }
        }
 }