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:
authorMarek Safar <marek.safar@gmail.com>2016-11-18 19:58:05 +0300
committerMarek Safar <marek.safar@gmail.com>2016-11-18 19:59:32 +0300
commit4f2a9766b1fed702edc912309a54af7378612098 (patch)
tree97c345236d14511507796f7167308da060ffdc51 /mcs/class/System/Test
parent095e791273a2020c4199575d1b6fee9a2b73e3cf (diff)
[System] Add range check for empty URI prefix when it also contains unicode character. Fixes #47205
Diffstat (limited to 'mcs/class/System/Test')
-rw-r--r--mcs/class/System/Test/System/UriTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System/Test/System/UriTest.cs b/mcs/class/System/Test/System/UriTest.cs
index 52815f273a5..b6bc2b8f15b 100644
--- a/mcs/class/System/Test/System/UriTest.cs
+++ b/mcs/class/System/Test/System/UriTest.cs
@@ -2060,9 +2060,9 @@ namespace MonoTests.System
if (isWin32)
Assert.Ignore ();
- string value = "/Library/Frameworks/System.Runtim…ee";
Uri uri;
- Assert.IsTrue (Uri.TryCreate (value, UriKind.Absolute, out uri));
+ Assert.IsTrue (Uri.TryCreate ("/Library/Frameworks/System.Runtim…ee", UriKind.Absolute, out uri), "#1");
+ Assert.IsTrue (Uri.TryCreate (" /A/…", UriKind.Absolute, out uri), "#2");
}
[Test]