//\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
}\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
}\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
{\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
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
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