* UriTest.cs: Added test for Fragment with relative URI. Fixed line
[mono.git] / mcs / class / System / Test / System / UriTest2.cs
index 6738006fbc9b7eac0848a04478d820caf2932d54..c6956a811bffb578a6605a48f385167595a7b929 100644 (file)
@@ -1,9 +1,9 @@
 //\r
 // UriTest2.cs - More NUnit Test Cases for System.Uri\r
-//
+//\r
 \r
 using System;\r
-using System.IO;
+using System.IO;\r
 using System.Reflection;\r
 using System.Text;\r
 using NUnit.Framework;\r
@@ -83,8 +83,8 @@ namespace MonoTests.System
                }\r
                \r
                private void FromResource (string res, Uri baseUri)\r
-               {
-                       Assembly a = Assembly.GetExecutingAssembly ();
+               {\r
+                       Assembly a = Assembly.GetExecutingAssembly ();\r
                        Stream s = a.GetManifestResourceStream (res);\r
                        StreamReader sr = new StreamReader (s, Encoding.UTF8);\r
                        while (sr.Peek () > 0) {\r
@@ -143,14 +143,14 @@ TextWriter sw = Console.Out;
                                }\r
                        }\r
                }\r
-
-               [Test]
-               public void MoreUnescape () // bug 733316
-               {
-                       int index = 0;
+\r
+               [Test]\r
+               public void MoreUnescape () // bug 733316\r
+               {\r
+                       int index = 0;\r
                        char unesc = Uri.HexUnescape ("%F6", ref index);\r
                        Assert.AreEqual (3, index, "#01");\r
-                       Assert.AreEqual (0xf6, unesc, "#02");
+                       Assert.AreEqual (0xf6, unesc, "#02");\r
                }\r
 \r
                [Test]\r
@@ -177,7 +177,7 @@ TextWriter sw = Console.Out;
                {\r
                        new Uri ("http://w*w*w.go-mono.com");\r
                }\r
-
+\r
                [Test]\r
 #if ONLY_1_1\r
                [Category ("NotDotNet")] // 1.x throws an UriFormatException\r
@@ -190,7 +190,7 @@ TextWriter sw = Console.Out;
                        Assert.AreEqual (String.Empty, u.Authority, "Authority");\r
                        Assert.AreEqual (String.Empty, u.Fragment, "Fragment");\r
                        Assert.AreEqual (String.Empty, u.Host, "Host");\r
-                       // FIXME (2.0) - Normally this is never Basic without an Host name :(
+                       // FIXME (2.0) - Normally this is never Basic without an Host name :(\r
                        // Assert.AreEqual (UriHostNameType.Basic, u.HostNameType, "HostNameType");\r
                        Assert.IsTrue (u.IsDefaultPort, "IsDefaultPort");\r
                        Assert.IsFalse (u.IsFile, "IsFile");\r
@@ -214,8 +214,8 @@ TextWriter sw = Console.Out;
                        Assert.AreEqual ("foo:///bar", u.AbsoluteUri, "AbsoluteUri");\r
                        Assert.AreEqual (String.Empty, u.Authority, "Authority");\r
                        Assert.AreEqual (String.Empty, u.Fragment, "Fragment");\r
-                       Assert.AreEqual (String.Empty, u.Host, "Host");
-                       // FIXME (2.0) - Normally this is never Basic without an Host name :(
+                       Assert.AreEqual (String.Empty, u.Host, "Host");\r
+                       // FIXME (2.0) - Normally this is never Basic without an Host name :(\r
                        // Assert.AreEqual (UriHostNameType.Basic, u.HostNameType, "HostNameType");\r
                        Assert.IsTrue (u.IsDefaultPort, "IsDefaultPort");\r
                        Assert.IsFalse (u.IsFile, "IsFile");\r