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:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-23 15:12:14 +0300
committerGitHub <noreply@github.com>2019-05-23 15:12:14 +0300
commit9606a8f18071ebc56211434972fe024a819a118c (patch)
tree27af6aa73fb982291020dae6d05d84a71237281a /mcs/class/System
parentd96fa3ab317ec0ebf5fa26d0efab24c3142b8e29 (diff)
[bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)
Use example.com and example.org instead. Fixes https://github.com/mono/mono/issues/14585 Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
Diffstat (limited to 'mcs/class/System')
-rw-r--r--mcs/class/System/System.Net/SocketPermission.cs4
-rw-r--r--mcs/class/System/Test/Microsoft.Win32/IntranetZoneCredentialPolicyTest.cs2
-rw-r--r--mcs/class/System/Test/System.ComponentModel.Design.Serialization/InstanceDescriptorTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs2
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/SocketCas.cs2
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs6
-rw-r--r--mcs/class/System/Test/System.Net/DnsCas.cs2
-rw-r--r--mcs/class/System/Test/System.Net/HttpListener2Test.cs6
-rw-r--r--mcs/class/System/Test/System.Net/HttpWebRequestCas.cs2
-rw-r--r--mcs/class/System/Test/System.Net/HttpWebRequestTest.cs46
-rw-r--r--mcs/class/System/Test/System.Net/IPAddressTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net/NetworkCredentialTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net/ServicePointManagerTest.cs32
-rw-r--r--mcs/class/System/Test/System.Net/ServicePointTest.cs36
-rw-r--r--mcs/class/System/Test/System.Net/SocketPermissionAttributeTest.cs2
-rw-r--r--mcs/class/System/Test/System.Net/SocketPermissionTest.cs4
-rw-r--r--mcs/class/System/Test/System.Net/WebClientTest.cs20
-rw-r--r--mcs/class/System/Test/System.Net/WebClientTestAsync.cs14
-rw-r--r--mcs/class/System/Test/System.Net/WebProxyTest.cs20
-rw-r--r--mcs/class/System/Test/System.Net/WebRequestTest.cs6
-rw-r--r--mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs4
-rw-r--r--mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs10
-rw-r--r--mcs/class/System/Test/System.Text.RegularExpressions/MatchTest.cs2
-rw-r--r--mcs/class/System/Test/System.Text.RegularExpressions/RegexTest.cs8
-rw-r--r--mcs/class/System/Test/System/FtpStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/GenericUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/GopherStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/HttpStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/LdapStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/NetPipeStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/NetTcpStyleUriParserTest.cs6
-rw-r--r--mcs/class/System/Test/System/NewsStyleUriParserTest.cs8
-rw-r--r--mcs/class/System/Test/System/UriBuilderTest.cs12
-rw-r--r--mcs/class/System/Test/System/UriCas.cs2
-rw-r--r--mcs/class/System/Test/System/UriParserTest.cs72
-rw-r--r--mcs/class/System/Test/System/UriTest.cs70
-rw-r--r--mcs/class/System/Test/System/UriTest2.cs62
-rw-r--r--mcs/class/System/Test/System/UriTest3.cs84
-rw-r--r--mcs/class/System/Test/System/UriTypeConverterTest.cs2
-rw-r--r--mcs/class/System/Test/System/test-uri-relative-props.txt256
-rw-r--r--mcs/class/System/Test/System/uri-test-generator.cs2
42 files changed, 421 insertions, 429 deletions
diff --git a/mcs/class/System/System.Net/SocketPermission.cs b/mcs/class/System/System.Net/SocketPermission.cs
index d4fe9750181..d3aa2a0d785 100644
--- a/mcs/class/System/System.Net/SocketPermission.cs
+++ b/mcs/class/System/System.Net/SocketPermission.cs
@@ -199,7 +199,7 @@ namespace System.Net {
/*
- SocketPermission s = new SocketPermission (NetworkAccess.Connect, TransportType.Tcp, "www.google.com", 80);
+ SocketPermission s = new SocketPermission (NetworkAccess.Connect, TransportType.Tcp, "www.example.com", 80);
s.AddPermission (NetworkAccess.Accept, TransportType.All, "localhost", 8080);
s.AddPermission (NetworkAccess.Accept, TransportType.All, "localhost", SocketPermission.AllPorts);
// s = new SocketPermission (PermissionState.None);
@@ -211,7 +211,7 @@ namespace System.Net {
<IPermission class="System.Net.SocketPermission, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1">
<ConnectAccess>
- <ENDPOINT host="www.google.com"
+ <ENDPOINT host="www.example.com"
transport="Tcp"
port="80"/>
</ConnectAccess>
diff --git a/mcs/class/System/Test/Microsoft.Win32/IntranetZoneCredentialPolicyTest.cs b/mcs/class/System/Test/Microsoft.Win32/IntranetZoneCredentialPolicyTest.cs
index f6947709c95..f250890ac51 100644
--- a/mcs/class/System/Test/Microsoft.Win32/IntranetZoneCredentialPolicyTest.cs
+++ b/mcs/class/System/Test/Microsoft.Win32/IntranetZoneCredentialPolicyTest.cs
@@ -81,7 +81,7 @@ namespace MonoTests.Microsoft.Win32 {
public void FixtureSetUp ()
{
policy = new IntranetZoneCredentialPolicy ();
- uri = new Uri ("http://www.mono-project.com");
+ uri = new Uri ("http://www.example.com");
request = WebRequest.Create (uri);
credential = new NetworkCredential ("me", "mine");
module = new Module ("type", true, "token");
diff --git a/mcs/class/System/Test/System.ComponentModel.Design.Serialization/InstanceDescriptorTest.cs b/mcs/class/System/Test/System.ComponentModel.Design.Serialization/InstanceDescriptorTest.cs
index 70b9cfdf649..48cea59937c 100644
--- a/mcs/class/System/Test/System.ComponentModel.Design.Serialization/InstanceDescriptorTest.cs
+++ b/mcs/class/System/Test/System.ComponentModel.Design.Serialization/InstanceDescriptorTest.cs
@@ -41,7 +41,7 @@ namespace MonoTests.System.ComponentModel.Design.Serialization {
[TestFixture]
public class InstanceDescriptorTest {
- private const string url = "http://www.mono-project.com/";
+ private const string url = "http://www.example.com/";
private ConstructorInfo ci;
[TestFixtureSetUp]
diff --git a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
index 6747a263a6c..6198be7578f 100644
--- a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamCas.cs
@@ -55,7 +55,7 @@ namespace MonoCasTests.System.Net.Sockets {
{
reset = new ManualResetEvent (false);
- IPHostEntry host = Dns.Resolve ("www.google.com");
+ IPHostEntry host = Dns.Resolve ("www.example.com");
IPAddress ip = host.AddressList[0];
socket = new Socket (ip.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
socket.Connect (new IPEndPoint (ip, 80));
diff --git a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
index 37295cf49c7..0d132dff18f 100644
--- a/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/NetworkStreamTest.cs
@@ -29,7 +29,7 @@ namespace MonoTests.System.Net.Sockets
#endif
public void NetworkStreamConnection ()
{
- IPEndPoint ipe = new IPEndPoint(Dns.GetHostEntry ("www.google.com").AddressList [0], 80);
+ IPEndPoint ipe = new IPEndPoint(Dns.GetHostEntry ("www.example.com").AddressList [0], 80);
Socket s = new Socket(ipe.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
s.Close ();
NetworkStream ns = new NetworkStream (s);
diff --git a/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs b/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
index 6319d3e7b94..526b80c2d8d 100644
--- a/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/SocketCas.cs
@@ -38,7 +38,7 @@ namespace MonoCasTests.System.Net.Sockets {
{
reset = new ManualResetEvent (false);
- IPHostEntry host = Dns.Resolve ("www.google.com");
+ IPHostEntry host = Dns.Resolve ("www.example.com");
IPAddress ip = host.AddressList[0];
ep = new IPEndPoint (ip, 80);
socket = new Socket (ip.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
diff --git a/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs b/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
index a1db66c9e64..17c4379e959 100644
--- a/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/TcpClientCas.cs
@@ -76,7 +76,7 @@ namespace MonoCasTests.System.Net.Sockets {
TcpClient s = new TcpClient ();
message = "AsyncConnect";
reset.Reset ();
- IAsyncResult r = s.BeginConnect ("www.google.com", 80, new AsyncCallback (ConnectCallback), s);
+ IAsyncResult r = s.BeginConnect ("www.example.com", 80, new AsyncCallback (ConnectCallback), s);
Assert.IsNotNull (r, "IAsyncResult");
if (!reset.WaitOne (timeout, true))
Assert.Ignore ("Timeout");
@@ -88,7 +88,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Category ("InetAccess")]
public void AsyncConnect_IPAddressIntAsyncCallbackObject ()
{
- IPHostEntry host = Dns.Resolve ("www.google.com");
+ IPHostEntry host = Dns.Resolve ("www.example.com");
TcpClient s = new TcpClient ();
message = "AsyncConnect";
reset.Reset ();
@@ -104,7 +104,7 @@ namespace MonoCasTests.System.Net.Sockets {
[Category ("InetAccess")]
public void AsyncConnect_IPAddressArrayIntAsyncCallbackObject ()
{
- IPHostEntry host = Dns.Resolve ("www.google.com");
+ IPHostEntry host = Dns.Resolve ("www.example.com");
TcpClient s = new TcpClient ();
message = "AsyncConnect";
reset.Reset ();
diff --git a/mcs/class/System/Test/System.Net/DnsCas.cs b/mcs/class/System/Test/System.Net/DnsCas.cs
index d984553e17b..2a0598e8028 100644
--- a/mcs/class/System/Test/System.Net/DnsCas.cs
+++ b/mcs/class/System/Test/System.Net/DnsCas.cs
@@ -24,7 +24,7 @@ namespace MonoCasTests.System.Net {
[Category ("NotWorking")] // compiler (CSC) issue (on Windows)
public class DnsCas {
- private const string site = "www.go-mono.com";
+ private const string site = "www.example.com";
private const int timeout = 30000;
static ManualResetEvent reset;
diff --git a/mcs/class/System/Test/System.Net/HttpListener2Test.cs b/mcs/class/System/Test/System.Net/HttpListener2Test.cs
index 44abade69ce..c3d3822f95a 100644
--- a/mcs/class/System/Test/System.Net/HttpListener2Test.cs
+++ b/mcs/class/System/Test/System.Net/HttpListener2Test.cs
@@ -775,7 +775,7 @@ namespace MonoTests.System.Net {
wait.WaitOne ();
NetworkStream ns = HttpListener2Test.CreateNS (port);
- HttpListener2Test.Send (ns, "GET http://www.google.com/ HTTP/1.1\r\nHost: www.google.com\r\nContent-Length: 3\r\n\r\n123456");
+ HttpListener2Test.Send (ns, "GET http://www.example.com/ HTTP/1.1\r\nHost: www.example.com\r\nContent-Length: 3\r\n\r\n123456");
wait2.WaitOne ();
ns.Close ();
@@ -786,8 +786,8 @@ namespace MonoTests.System.Net {
wait.Set ();
HttpListenerContext ctx = listener.GetContext ();
- Assert.AreEqual ("http://www.google.com:" + port + "/", ctx.Request.Url.ToString ());
- Assert.AreEqual ("http://www.google.com/", ctx.Request.RawUrl);
+ Assert.AreEqual ("http://www.example.com:" + port + "/", ctx.Request.Url.ToString ());
+ Assert.AreEqual ("http://www.example.com/", ctx.Request.RawUrl);
wait2.Set ();
listener.Close ();
diff --git a/mcs/class/System/Test/System.Net/HttpWebRequestCas.cs b/mcs/class/System/Test/System.Net/HttpWebRequestCas.cs
index 800dd292111..12be8ac26aa 100644
--- a/mcs/class/System/Test/System.Net/HttpWebRequestCas.cs
+++ b/mcs/class/System/Test/System.Net/HttpWebRequestCas.cs
@@ -26,7 +26,7 @@ namespace MonoCasTests.System.Net {
static ManualResetEvent reset;
private string message;
- private string uri = "http://www.google.com";
+ private string uri = "http://www.example.com";
[TestFixtureSetUp]
public void FixtureSetUp ()
diff --git a/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs b/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
index befcc4eda76..e9cabd0eff4 100644
--- a/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
+++ b/mcs/class/System/Test/System.Net/HttpWebRequestTest.cs
@@ -53,7 +53,7 @@ namespace MonoTests.System.Net
#endif
public void Proxy_Null ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
Assert.IsNotNull (req.Proxy, "#1");
req.Proxy = null;
Assert.IsNull (req.Proxy, "#2");
@@ -66,7 +66,7 @@ namespace MonoTests.System.Net
#endif
public void Sync ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
Assert.IsNotNull (req.IfModifiedSince, "req:If Modified Since: ");
req.UserAgent = "MonoClient v1.0";
@@ -90,7 +90,7 @@ namespace MonoTests.System.Net
#endif
public void AddRange ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
req.AddRange (10);
req.AddRange (50, 90);
req.AddRange ("bytes", 100);
@@ -2308,7 +2308,7 @@ namespace MonoTests.System.Net
#endif
public void NullHost ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
req.Host = null;
}
@@ -2318,8 +2318,8 @@ namespace MonoTests.System.Net
#endif
public void NoHost ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
- Assert.AreEqual (req.Host, "go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
+ Assert.AreEqual (req.Host, "example.com");
}
[Test]
@@ -2330,7 +2330,7 @@ namespace MonoTests.System.Net
#endif
public void EmptyHost ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
req.Host = "";
}
@@ -2340,10 +2340,10 @@ namespace MonoTests.System.Net
#endif
public void HostAndPort ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com:80");
- Assert.AreEqual ("go-mono.com", req.Host, "#01");
- req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com:9000");
- Assert.AreEqual ("go-mono.com:9000", req.Host, "#02");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com:80");
+ Assert.AreEqual ("example.com", req.Host, "#01");
+ req = (HttpWebRequest) WebRequest.Create ("http://example.com:9000");
+ Assert.AreEqual ("example.com:9000", req.Host, "#02");
}
[Test]
@@ -2356,8 +2356,8 @@ namespace MonoTests.System.Net
if (i == 80)
continue;
string s = i.ToString ();
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com:" + s);
- Assert.AreEqual ("go-mono.com:" + s, req.Host, "#" + s);
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com:" + s);
+ Assert.AreEqual ("example.com:" + s, req.Host, "#" + s);
}
}
@@ -2369,8 +2369,8 @@ namespace MonoTests.System.Net
#endif
public void PortBelow ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
- req.Host = "go-mono.com:-1";
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
+ req.Host = "example.com:-1";
}
[Test]
@@ -2381,8 +2381,8 @@ namespace MonoTests.System.Net
#endif
public void PortAbove ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
- req.Host = "go-mono.com:65536";
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
+ req.Host = "example.com:65536";
}
[Test]
@@ -2393,7 +2393,7 @@ namespace MonoTests.System.Net
#endif
public void HostTooLong ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
string s = new string ('a', 100);
req.Host = s + "." + s + "." + s + "." + s + "." + s + "." + s; // Over 255 bytes
}
@@ -2402,7 +2402,7 @@ namespace MonoTests.System.Net
[Category ("NotWorking")] // #5490
public void InvalidNamesThatWork ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
req.Host = "-";
req.Host = "-.-";
req.Host = "á";
@@ -2415,7 +2415,7 @@ namespace MonoTests.System.Net
#endif
public void NoDate ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
Assert.AreEqual (DateTime.MinValue, req.Date);
}
@@ -2425,7 +2425,7 @@ namespace MonoTests.System.Net
#endif
public void UtcDate ()
{
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://go-mono.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://example.com");
req.Date = DateTime.UtcNow;
DateTime date = req.Date;
Assert.AreEqual (DateTimeKind.Local, date.Kind);
@@ -2443,7 +2443,7 @@ namespace MonoTests.System.Net
var unspecified = new DateTime (1969, 7, 21, 2, 56, 0);
var local = landing.ToLocalTime ();
- var req = (HttpWebRequest)WebRequest.Create ("http://www.mono-project.com/");
+ var req = (HttpWebRequest)WebRequest.Create ("http://www.example.com/");
req.Date = landing;
Assert.AreEqual (DateTimeKind.Local, req.Date.Kind);
Assert.AreEqual (local.Ticks, req.Date.Ticks);
@@ -3223,7 +3223,7 @@ namespace MonoTests.System.Net
// This test is supposed to fail prior to .NET 4.0
public void Post_EmptyRequestStream ()
{
- var wr = HttpWebRequest.Create ("http://google.com");
+ var wr = HttpWebRequest.Create ("http://example.com");
wr.Method = "POST";
wr.GetRequestStream ();
diff --git a/mcs/class/System/Test/System.Net/IPAddressTest.cs b/mcs/class/System/Test/System.Net/IPAddressTest.cs
index 57ed7bc9956..9caa79e6d68 100644
--- a/mcs/class/System/Test/System.Net/IPAddressTest.cs
+++ b/mcs/class/System/Test/System.Net/IPAddressTest.cs
@@ -534,7 +534,7 @@ public class IPAddressTest
IPAddress i;
Assert.IsTrue (IPAddress.TryParse ("0.0.0.0", out i), "#1");
Assert.IsTrue (IPAddress.TryParse ("127.0.0.1", out i), "#2");
- Assert.IsFalse (IPAddress.TryParse ("www.mono-project.com", out i), "#3");
+ Assert.IsFalse (IPAddress.TryParse ("www.example.com", out i), "#3");
Assert.IsTrue (IPAddress.TryParse ("0001:0002:0003:0004:0005:0006:0007:0008", out i), "#4");
Assert.IsTrue (IPAddress.TryParse ("1:2:3:4:5:6:7:8", out i), "#5");
Assert.IsTrue (IPAddress.TryParse ("1::8", out i), "#6");
diff --git a/mcs/class/System/Test/System.Net/NetworkCredentialTest.cs b/mcs/class/System/Test/System.Net/NetworkCredentialTest.cs
index e5c46f8f901..a4b1243bfdd 100644
--- a/mcs/class/System/Test/System.Net/NetworkCredentialTest.cs
+++ b/mcs/class/System/Test/System.Net/NetworkCredentialTest.cs
@@ -50,7 +50,7 @@ namespace MonoTests.System.Net {
Assert.AreEqual ("dom", nc.Domain, "Domain");
Assert.AreEqual ("********", nc.Password, "Password");
Assert.AreEqual ("user", nc.UserName, "UserName");
- Assert.AreSame (nc, nc.GetCredential (new Uri ("http://www.mono-project.com"), "basic"), "GetCredential");
+ Assert.AreSame (nc, nc.GetCredential (new Uri ("http://www.example.com"), "basic"), "GetCredential");
}
[Test]
diff --git a/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs b/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
index a7762218306..f3fe8efae2e 100644
--- a/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
+++ b/mcs/class/System/Test/System.Net/ServicePointManagerTest.cs
@@ -21,9 +21,8 @@ namespace MonoTests.System.Net
[TestFixture]
public class ServicePointManagerTest
{
- private Uri googleUri;
- private Uri yahooUri;
- private Uri apacheUri;
+ private Uri exampleComUri;
+ private Uri exampleOrgUri;
private int maxIdle;
[SetUp]
@@ -33,9 +32,8 @@ public class ServicePointManagerTest
maxIdle = ServicePointManager.MaxServicePointIdleTime;
ServicePointManager.MaxServicePointIdleTime = 10;
#endif
- googleUri = new Uri ("http://www.google.com");
- yahooUri = new Uri ("http://www.yahoo.com");
- apacheUri = new Uri ("http://www.apache.org");
+ exampleComUri = new Uri ("http://www.example.com");
+ exampleOrgUri = new Uri ("http://www.example.org");
}
[TearDown]
@@ -53,27 +51,21 @@ public class ServicePointManagerTest
{
Assert.AreEqual (0, ServicePointManager.MaxServicePoints, "#1");
- DoWebRequest (googleUri);
+ DoWebRequest (exampleComUri);
Thread.Sleep (100);
- DoWebRequest (yahooUri);
- Thread.Sleep (100);
- DoWebRequest (apacheUri);
+ DoWebRequest (exampleOrgUri);
Thread.Sleep (100);
- ServicePoint sp = ServicePointManager.FindServicePoint (googleUri);
- //WriteServicePoint (sp);
- sp = ServicePointManager.FindServicePoint (yahooUri);
+ ServicePoint sp = ServicePointManager.FindServicePoint (exampleComUri);
//WriteServicePoint (sp);
- sp = ServicePointManager.FindServicePoint (apacheUri);
+ sp = ServicePointManager.FindServicePoint (exampleOrgUri);
//WriteServicePoint (sp);
ServicePointManager.MaxServicePoints = 1;
- sp = ServicePointManager.FindServicePoint (googleUri);
- //WriteServicePoint (sp);
- sp = ServicePointManager.FindServicePoint (yahooUri);
+ sp = ServicePointManager.FindServicePoint (exampleComUri);
//WriteServicePoint (sp);
- sp = ServicePointManager.FindServicePoint (apacheUri);
+ sp = ServicePointManager.FindServicePoint (exampleOrgUri);
//WriteServicePoint (sp);
GC.Collect ();
@@ -94,8 +86,8 @@ public class ServicePointManagerTest
public void FindServicePoint ()
{
ServicePointManager.MaxServicePoints = 0;
- ServicePoint sp = ServicePointManager.FindServicePoint (googleUri, new WebProxy (apacheUri));
- Assert.AreEqual (apacheUri, sp.Address, "#1");
+ ServicePoint sp = ServicePointManager.FindServicePoint (exampleComUri, new WebProxy (exampleOrgUri));
+ Assert.AreEqual (exampleOrgUri, sp.Address, "#1");
#if MOBILE
Assert.AreEqual (10, sp.ConnectionLimit, "#2");
#else
diff --git a/mcs/class/System/Test/System.Net/ServicePointTest.cs b/mcs/class/System/Test/System.Net/ServicePointTest.cs
index e0de739a626..506d87a0bf9 100644
--- a/mcs/class/System/Test/System.Net/ServicePointTest.cs
+++ b/mcs/class/System/Test/System.Net/ServicePointTest.cs
@@ -45,45 +45,45 @@ public class ServicePointTest
//WriteServicePoint ("A servicepoint that isn't really", p);
ServicePointManager.MaxServicePoints = 2;
- ServicePoint google = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com"));
+ ServicePoint exampleCom = ServicePointManager.FindServicePoint (new Uri ("http://www.example.com"));
try {
- ServicePoint slashdot = ServicePointManager.FindServicePoint (new Uri ("http://www.slashdot.org"));
+ ServicePoint exampleOrg = ServicePointManager.FindServicePoint (new Uri ("http://www.example.org"));
Assert.Fail ("#1");
} catch (InvalidOperationException) { }
ServicePointManager.MaxServicePoints = 0;
- //WriteServicePoint ("google before getting a webrequest", google);
+ //WriteServicePoint ("example before getting a webrequest", example);
- HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
HttpWebResponse res = (HttpWebResponse) req.GetResponse ();
#if FOUND_SOME_OTHER_URL
// URL is no longer found, disabled the test until a more reliable URL is found :P
- //WriteServicePoint ("google after getting a response", google);
- ServicePoint google2 = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com/dilbert.html"));
- Assert.AreEqual (google, google2, "#equals");
+ //WriteServicePoint ("example after getting a response", example);
+ ServicePoint example2 = ServicePointManager.FindServicePoint (new Uri ("http://www.example.com/dilbert.html"));
+ Assert.AreEqual (example, example2, "#equals");
res.Close ();
#endif
// in both instances property CurrentConnections is 0 according to ms.net.
// let's see what it says when we do async operations...
- HttpWebRequest req2 = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ HttpWebRequest req2 = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
req2.Method = "PUT";
IAsyncResult async = req2.BeginGetRequestStream (null, null);
- //WriteServicePoint ("after async BeginGetRequestStream", google);
+ //WriteServicePoint ("after async BeginGetRequestStream", example);
// CurrentConnections: 1
Stream stream2 = req2.EndGetRequestStream (async);
- //WriteServicePoint ("after async EndGetRequestStream", google);
+ //WriteServicePoint ("after async EndGetRequestStream", example);
// CurrentConnections: 1
stream2.Close ();
- req2 = (HttpWebRequest) WebRequest.Create ("http://www.google.com");
+ req2 = (HttpWebRequest) WebRequest.Create ("http://www.example.com");
async = req2.BeginGetResponse (null, null);
- //WriteServicePoint ("after async BeginGetResponse", google);
+ //WriteServicePoint ("after async BeginGetResponse", example);
// CurrentConnections: 2
WebResponse res2 = req2.EndGetResponse (async);
- //WriteServicePoint ("after async EndGetResponse", google);
+ //WriteServicePoint ("after async EndGetResponse", example);
// CurrentConnections: 0
// curious that after you get the webresponse object CurrentConnections is set to 0.
// you'd think that you'd still be connected until you close the webresponse..
@@ -109,10 +109,10 @@ public class ServicePointTest
// what's the limit of the cache?
- req2 = (HttpWebRequest) WebRequest.Create ("http://www.apache.org/");
+ req2 = (HttpWebRequest) WebRequest.Create ("http://www.example.org/");
res2 = req2.GetResponse ();
- sp2 = ServicePointManager.FindServicePoint (new Uri("http://www.apache.org/"));
- //WriteServicePoint ("apache", sp2);
+ sp2 = ServicePointManager.FindServicePoint (new Uri("http://www.example.org/"));
+ //WriteServicePoint ("example", sp2);
//Console.WriteLine ("ContentLength: " + res2.ContentLength);
// CurrentConnections: 1
res2.Close ();
@@ -130,7 +130,7 @@ public class ServicePointTest
// the default is already 2, just in case it isn't..
ServicePointManager.DefaultConnectionLimit = 5;
- Uri uri = new Uri ("http://www.go-mono.com/");
+ Uri uri = new Uri ("http://www.example.com/");
ServicePoint sp = ServicePointManager.FindServicePoint (uri);
WebResponse [] res = new WebResponse [5];
for (int i = 0; i < 5; i++) {
@@ -159,7 +159,7 @@ public class ServicePointTest
[Category ("NotWorking")] // #A1 fails
public void EndPointBind ()
{
- Uri uri = new Uri ("http://www.go-mono.com/");
+ Uri uri = new Uri ("http://www.example.com/");
ServicePoint sp = ServicePointManager.FindServicePoint (uri);
HttpWebRequest req = (HttpWebRequest) WebRequest.Create (uri);
diff --git a/mcs/class/System/Test/System.Net/SocketPermissionAttributeTest.cs b/mcs/class/System/Test/System.Net/SocketPermissionAttributeTest.cs
index 71f21aea903..0a54d88836c 100644
--- a/mcs/class/System/Test/System.Net/SocketPermissionAttributeTest.cs
+++ b/mcs/class/System/Test/System.Net/SocketPermissionAttributeTest.cs
@@ -188,7 +188,7 @@ namespace MonoTests.System.Net {
public void Host ()
{
SocketPermissionAttribute a = new SocketPermissionAttribute (SecurityAction.Assert);
- a.Host = "www.mono-project.com";
+ a.Host = "www.example.com";
}
[Test]
diff --git a/mcs/class/System/Test/System.Net/SocketPermissionTest.cs b/mcs/class/System/Test/System.Net/SocketPermissionTest.cs
index 29f10e11a8c..9c770deea80 100644
--- a/mcs/class/System/Test/System.Net/SocketPermissionTest.cs
+++ b/mcs/class/System/Test/System.Net/SocketPermissionTest.cs
@@ -34,7 +34,7 @@ public class SocketPermissionTest
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "123", SocketPermission.AllPorts);
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "www.ximian.com", SocketPermission.AllPorts);
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "120.4.3.2", SocketPermission.AllPorts);
- //s1.AddPermission(NetworkAccess.Accept, TransportType.Tcp, "www.google.com", 80);
+ //s1.AddPermission(NetworkAccess.Accept, TransportType.Tcp, "www.example.com", 80);
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "1.*.10.*.99", SocketPermission.AllPorts);
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "128.0.0.1", SocketPermission.AllPorts);
//s1.AddPermission(NetworkAccess.Accept, TransportType.All, "0.0.0.0", SocketPermission.AllPorts);
@@ -43,7 +43,7 @@ public class SocketPermissionTest
s2 = new SocketPermission(NetworkAccess.Connect, TransportType.All, "12.13.14.15", 80);
//s2.AddPermission(NetworkAccess.Accept, TransportType.All, "localhost", 8080);
//s2.AddPermission(NetworkAccess.Accept, TransportType.All, "123", 8080);
- //s2.AddPermission(NetworkAccess.Accept, TransportType.Tcp, "www.google.com", SocketPermission.AllPorts);
+ //s2.AddPermission(NetworkAccess.Accept, TransportType.Tcp, "www.example.com", SocketPermission.AllPorts);
s2.AddPermission(NetworkAccess.Accept, TransportType.All, "213.*.*.*", SocketPermission.AllPorts);
//s2.AddPermission(NetworkAccess.Accept, TransportType.All, "128.0.0.1", 9090);
s2.AddPermission(NetworkAccess.Accept, TransportType.Tcp, "216.239.*.*", SocketPermission.AllPorts);
diff --git a/mcs/class/System/Test/System.Net/WebClientTest.cs b/mcs/class/System/Test/System.Net/WebClientTest.cs
index 3b02c1551fc..0f51c41833f 100644
--- a/mcs/class/System/Test/System.Net/WebClientTest.cs
+++ b/mcs/class/System/Test/System.Net/WebClientTest.cs
@@ -35,11 +35,11 @@ namespace MonoTests.System.Net
// A new, but empty file has been created. This is a test case
// for bug 81005
- wc.DownloadFile("http://google.com/", filename);
+ wc.DownloadFile("http://example.com/", filename);
// Now, remove the file and attempt to download again.
File.Delete(filename);
- wc.DownloadFile("http://google.com/", filename);
+ wc.DownloadFile("http://example.com/", filename);
}
[Test]
@@ -651,7 +651,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadData ("http://www.mono-project.com",
+ wc.UploadData ("http://www.example.com",
(byte []) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -709,7 +709,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadData (new Uri ("http://www.mono-project.com"),
+ wc.UploadData (new Uri ("http://www.example.com"),
(byte []) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -768,7 +768,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadData ("http://www.mono-project.com",
+ wc.UploadData ("http://www.example.com",
"POST", (byte []) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -826,7 +826,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadData (new Uri ("http://www.mono-project.com"),
+ wc.UploadData (new Uri ("http://www.example.com"),
"POST", (byte []) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -1529,7 +1529,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadValues ("http://www.mono-project.com",
+ wc.UploadValues ("http://www.example.com",
(NameValueCollection) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -1589,7 +1589,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadValues (new Uri ("http://www.mono-project.com"),
+ wc.UploadValues (new Uri ("http://www.example.com"),
(NameValueCollection) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -1649,7 +1649,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadValues ("http://www.mono-project.com",
+ wc.UploadValues ("http://www.example.com",
"POST", (NameValueCollection) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
@@ -1710,7 +1710,7 @@ namespace MonoTests.System.Net
{
WebClient wc = new WebClient ();
try {
- wc.UploadValues (new Uri ("http://www.mono-project.com"),
+ wc.UploadValues (new Uri ("http://www.example.com"),
"POST", (NameValueCollection) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
diff --git a/mcs/class/System/Test/System.Net/WebClientTestAsync.cs b/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
index 24569cbb307..549929304ad 100644
--- a/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
+++ b/mcs/class/System/Test/System.Net/WebClientTestAsync.cs
@@ -130,15 +130,15 @@ namespace MonoTests.System.Net
public void DownloadMultiple ()
{
WebClient wc = new WebClient ();
- var t1 = wc.OpenReadTaskAsync ("http://www.google.com/");
+ var t1 = wc.OpenReadTaskAsync ("http://www.example.org/");
Assert.That (t1.Wait (15000));
Assert.IsTrue (t1.IsCompleted, "#1");
- var t2 = wc.OpenReadTaskAsync ("http://www.mono-project.com/");
+ var t2 = wc.OpenReadTaskAsync ("http://www.example.com/");
Assert.That (t2.Wait (15000));
Assert.IsTrue (t2.IsCompleted, "#2");
- var t3 = wc.DownloadStringTaskAsync ("http://www.google.com/");
+ var t3 = wc.DownloadStringTaskAsync ("http://www.example.org/");
Assert.That (t3.Wait (15000));
Assert.IsTrue (t3.IsCompleted, "#3");
}
@@ -151,8 +151,8 @@ namespace MonoTests.System.Net
WebClient wc = new WebClient ();
MessagePumpSyncContext.Run (async () => {
- await wc.DownloadStringTaskAsync ("http://www.google.com/");
- await wc.DownloadDataTaskAsync ("http://www.mono-project.com/");
+ await wc.DownloadStringTaskAsync ("http://www.example.org/");
+ await wc.DownloadDataTaskAsync ("http://www.example.com/");
}, null, 15000);
}
@@ -179,8 +179,8 @@ namespace MonoTests.System.Net
};
MessagePumpSyncContext.Run (async () => {
- await wc.DownloadStringTaskAsync ("http://www.google.com/");
- await wc.DownloadDataTaskAsync ("http://www.mono-project.com/");
+ await wc.DownloadStringTaskAsync ("http://www.example.org/");
+ await wc.DownloadDataTaskAsync ("http://www.example.com/");
}, () => data_completed && string_completed, 15000);
Assert.IsTrue (data_completed, "#1");
diff --git a/mcs/class/System/Test/System.Net/WebProxyTest.cs b/mcs/class/System/Test/System.Net/WebProxyTest.cs
index 0257ff50fec..4fa3b0bfb25 100644
--- a/mcs/class/System/Test/System.Net/WebProxyTest.cs
+++ b/mcs/class/System/Test/System.Net/WebProxyTest.cs
@@ -75,7 +75,7 @@ namespace MonoTests.System.Net
p.BypassArrayList.Add ("http://proxy2.contoso.com");
p.BypassArrayList.Add ("http://proxy2.contoso.com");
Assert.AreEqual (2, p.BypassList.Length, "#1");
- Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.google.com")), "#2");
+ Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.example.com")), "#2");
Assert.IsTrue (p.IsBypassed (proxy2), "#3");
Assert.AreEqual (proxy2, p.GetProxy (proxy2), "#4");
@@ -127,7 +127,7 @@ namespace MonoTests.System.Net
public void IsByPassed ()
{
WebProxy p = new WebProxy ("http://proxy.contoso.com", true);
- Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.google.com")), "#1");
+ Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.example.com")), "#1");
Assert.IsTrue (p.IsBypassed (new Uri ("http://localhost/index.html")), "#2");
Assert.IsTrue (p.IsBypassed (new Uri ("http://localhost:8080/index.html")), "#3");
Assert.IsTrue (p.IsBypassed (new Uri ("http://loopback:8080/index.html")), "#4");
@@ -136,33 +136,33 @@ namespace MonoTests.System.Net
Assert.IsTrue (!p.IsBypassed (new Uri ("http://webserver.com/index.html")), "#7");
p = new WebProxy ("http://proxy.contoso.com", false);
- Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.google.com")), "#11");
+ Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.example.com")), "#11");
Assert.IsTrue (p.IsBypassed (new Uri ("http://localhost/index.html")), "#12: lamespec of ms.net");
Assert.IsTrue (p.IsBypassed (new Uri ("http://localhost:8080/index.html")), "#13: lamespec of ms.net");
Assert.IsTrue (p.IsBypassed (new Uri ("http://loopback:8080/index.html")), "#14: lamespec of ms.net");
Assert.IsTrue (p.IsBypassed (new Uri ("http://127.0.0.01:8080/index.html")), "#15: lamespec of ms.net");
Assert.IsTrue (!p.IsBypassed (new Uri ("http://webserver/index.html")), "#16");
- p.BypassList = new string [] { "google.com", "contoso.com" };
- Assert.IsTrue (p.IsBypassed (new Uri ("http://www.google.com")), "#20");
- Assert.IsTrue (p.IsBypassed (new Uri ("http://www.GOOGLE.com")), "#21");
+ p.BypassList = new string [] { "example.com", "contoso.com" };
+ Assert.IsTrue (p.IsBypassed (new Uri ("http://www.example.com")), "#20");
+ Assert.IsTrue (p.IsBypassed (new Uri ("http://www.EXAMPLE.com")), "#21");
Assert.IsTrue (p.IsBypassed (new Uri ("http://www.contoso.com:8080/foo/bar/index.html")), "#22");
Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.contoso2.com:8080/foo/bar/index.html")), "#23");
Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.foo.com:8080/contoso.com.html")), "#24");
p.BypassList = new string [] { "https" };
- Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.google.com")), "#30");
- Assert.IsTrue (p.IsBypassed (new Uri ("https://www.google.com")), "#31");
+ Assert.IsTrue (!p.IsBypassed (new Uri ("http://www.example.com")), "#30");
+ Assert.IsTrue (p.IsBypassed (new Uri ("https://www.example.com")), "#31");
}
[Test]
public void IsByPassed_Address_Null ()
{
WebProxy p = new WebProxy ((Uri) null, false);
- Assert.IsTrue (p.IsBypassed (new Uri ("http://www.google.com")), "#1");
+ Assert.IsTrue (p.IsBypassed (new Uri ("http://www.example.com")), "#1");
p = new WebProxy ((Uri) null, true);
- Assert.IsTrue (p.IsBypassed (new Uri ("http://www.google.com")), "#2");
+ Assert.IsTrue (p.IsBypassed (new Uri ("http://www.example.com")), "#2");
}
[Test]
diff --git a/mcs/class/System/Test/System.Net/WebRequestTest.cs b/mcs/class/System/Test/System.Net/WebRequestTest.cs
index 35120754c09..57115d810bb 100644
--- a/mcs/class/System/Test/System.Net/WebRequestTest.cs
+++ b/mcs/class/System/Test/System.Net/WebRequestTest.cs
@@ -279,7 +279,7 @@ namespace MonoTests.System.Net {
Assert.AreSame (proxy, WebRequest.DefaultWebProxy, "#A2");
HttpWebRequest req = (HttpWebRequest) WebRequest.CreateDefault (
- new Uri ("http://www.mono-project.com"));
+ new Uri ("http://www.example.com"));
Assert.IsNotNull (req.Proxy, "#B1");
Assert.AreSame (proxy, req.Proxy, "#B2");
@@ -289,7 +289,7 @@ namespace MonoTests.System.Net {
Assert.AreSame (proxy, req.Proxy, "#C3");
req = (HttpWebRequest) WebRequest.CreateDefault (
- new Uri ("http://www.mono-project.com"));
+ new Uri ("http://www.example.com"));
Assert.IsNull (req.Proxy, "#D");
}
@@ -297,7 +297,7 @@ namespace MonoTests.System.Net {
public void RegisterPrefix_Creator_Null ()
{
try {
- WebRequest.RegisterPrefix ("http://www.mono-project.com", (IWebRequestCreate) null);
+ WebRequest.RegisterPrefix ("http://www.example.com", (IWebRequestCreate) null);
Assert.Fail ("#1");
} catch (ArgumentNullException ex) {
Assert.AreEqual (typeof (ArgumentNullException), ex.GetType (), "#2");
diff --git a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
index 90bf8c8928f..b3c98efaa8b 100644
--- a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
+++ b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtensionTest.cs
@@ -329,7 +329,7 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
public void WrongExtension_X509Extension ()
{
X509Extension ex = new X509Extension ("1.2.3", new byte[0], true);
- X509SubjectKeyIdentifierExtension ski = new X509SubjectKeyIdentifierExtension ("www.go-mono.com", false); // odd length
+ X509SubjectKeyIdentifierExtension ski = new X509SubjectKeyIdentifierExtension ("www.example.com", false); // odd length
Assert.IsFalse (ski.Critical, "Critical");
Assert.AreEqual ("FFFFFFFFFFFFFF", ski.SubjectKeyIdentifier, "SubjectKeyIdentifier");
Assert.AreEqual ("ff ff ff ff ff ff ff" + Environment.NewLine, ski.Format (true), "Format(true)");
@@ -360,7 +360,7 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
public void WrongAsnEncodedData ()
{
AsnEncodedData aed = new AsnEncodedData (new byte[0]);
- X509SubjectKeyIdentifierExtension ski = new X509SubjectKeyIdentifierExtension ("www.mono-project.com", false);
+ X509SubjectKeyIdentifierExtension ski = new X509SubjectKeyIdentifierExtension ("www.example.com", false);
ski.CopyFrom (aed); // note: not the same behaviour than using the constructor!
}
diff --git a/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs b/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs
index 1c80aa29140..db93389976c 100644
--- a/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs
+++ b/mcs/class/System/Test/System.Security.Cryptography/AsnEncodedDataTest.cs
@@ -266,13 +266,13 @@ namespace MonoTests.System.Security.Cryptography {
// note: important to emulate in Mono because we need it for SSL/TLS
public void Build_SubjectAltNameExtension ()
{
- AsnEncodedData aed = new AsnEncodedData (new byte[] { 0x30, 0x16, 0x82, 0x14, 0x77, 0x77, 0x77, 0x2E, 0x6D, 0x6F, 0x6E, 0x6F, 0x2D, 0x70, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x2E, 0x63, 0x6F, 0x6D });
- Assert.AreEqual ("30 16 82 14 77 77 77 2e 6d 6f 6e 6f 2d 70 72 6f 6a 65 63 74 2e 63 6f 6d", aed.Format (true), "Format(true)");
- Assert.AreEqual ("30 16 82 14 77 77 77 2e 6d 6f 6e 6f 2d 70 72 6f 6a 65 63 74 2e 63 6f 6d", aed.Format (false), "Format(false)");
+ AsnEncodedData aed = new AsnEncodedData (new byte[] { 0x30, 0x11, 0x82, 0x0F, 0x77, 0x77, 0x77, 0x2E, 0x65, 0x78, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x2E, 0x63, 0x6F, 0x6D });
+ Assert.AreEqual ("30 11 82 0f 77 77 77 2e 65 78 61 6d 70 6c 65 2e 63 6f 6d", aed.Format (true), "Format(true)");
+ Assert.AreEqual ("30 11 82 0f 77 77 77 2e 65 78 61 6d 70 6c 65 2e 63 6f 6d", aed.Format (false), "Format(false)");
aed.Oid = new Oid ("2.5.29.17");
// and now "AsnEncodedData" knows how to (magically) decode the data without involving the class
- Assert.AreEqual ("DNS Name=www.mono-project.com" + Environment.NewLine, aed.Format (true), "aed.Format(true)");
- Assert.AreEqual ("DNS Name=www.mono-project.com", aed.Format (false), "aed.Format(false)");
+ Assert.AreEqual ("DNS Name=www.example.com" + Environment.NewLine, aed.Format (true), "aed.Format(true)");
+ Assert.AreEqual ("DNS Name=www.example.com", aed.Format (false), "aed.Format(false)");
// note that the Fx doesn't "really" support this extension
// finally this also means that the Oid "knowns" about oid not used in the Fx itself
// FIXME: Don't expect that FriendlyName is English. This test fails under non-English Windows.
diff --git a/mcs/class/System/Test/System.Text.RegularExpressions/MatchTest.cs b/mcs/class/System/Test/System.Text.RegularExpressions/MatchTest.cs
index 58a9744adb3..b45879e9ea1 100644
--- a/mcs/class/System/Test/System.Text.RegularExpressions/MatchTest.cs
+++ b/mcs/class/System/Test/System.Text.RegularExpressions/MatchTest.cs
@@ -78,7 +78,7 @@ namespace MonoTests.System.Text.RegularExpressions
public void Result_Replacement_Empty ()
{
Regex email = new Regex ("(?<user>[^@]+)@(?<domain>.+)");
- Match m = email.Match ("mono@go-mono.com");
+ Match m = email.Match ("mono@example.com");
string exp = m.Result (string.Empty);
Assert.AreEqual (string.Empty, exp);
}
diff --git a/mcs/class/System/Test/System.Text.RegularExpressions/RegexTest.cs b/mcs/class/System/Test/System.Text.RegularExpressions/RegexTest.cs
index 79ad728c5bf..374e9c65551 100644
--- a/mcs/class/System/Test/System.Text.RegularExpressions/RegexTest.cs
+++ b/mcs/class/System/Test/System.Text.RegularExpressions/RegexTest.cs
@@ -120,16 +120,16 @@ namespace MonoTests.System.Text.RegularExpressions
AddOptions( RegexOptions.None ));
Match m;
- m = email.Match ("mono@go-mono.com");
+ m = email.Match ("mono@example.com");
Assert.IsTrue (m.Success, "#m01");
Assert.AreEqual ("mono", m.Groups ["user"].Value, "#m02");
- Assert.AreEqual ("go-mono.com", m.Groups ["domain"].Value, "#m03");
+ Assert.AreEqual ("example.com", m.Groups ["domain"].Value, "#m03");
- m = email.Match ("mono.bugs@go-mono.com");
+ m = email.Match ("mono.bugs@example.com");
Assert.IsTrue (m.Success, "m04");
Assert.AreEqual ("mono.bugs", m.Groups ["user"].Value, "#m05");
- Assert.AreEqual ("go-mono.com", m.Groups ["domain"].Value, "#m06");
+ Assert.AreEqual ("example.com", m.Groups ["domain"].Value, "#m06");
}
[Test]
diff --git a/mcs/class/System/Test/System/FtpStyleUriParserTest.cs b/mcs/class/System/Test/System/FtpStyleUriParserTest.cs
index 6ccee59e9e9..5af6ff1e180 100644
--- a/mcs/class/System/Test/System/FtpStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/FtpStyleUriParserTest.cs
@@ -107,7 +107,7 @@ namespace MonoTests.System {
[Test]
public void Ftpx ()
{
- Uri uri = new Uri ("ftpx://go-mono.com/download/");
+ Uri uri = new Uri ("ftpx://example.com/download/");
Assert.AreEqual (2121, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -116,7 +116,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void Ftpx_Methods ()
{
- Uri uri = new Uri ("ftpx://go-mono.com/download/");
+ Uri uri = new Uri ("ftpx://example.com/download/");
Assert.AreEqual ("download/", uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -126,7 +126,7 @@ namespace MonoTests.System {
[Test]
public void SecureFtpx ()
{
- Uri uri = new Uri ("sftpx://www.mono-project.com/CAS");
+ Uri uri = new Uri ("sftpx://www.example.com/CAS");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/GenericUriParserTest.cs b/mcs/class/System/Test/System/GenericUriParserTest.cs
index 1944ab9c654..34237aa3f44 100644
--- a/mcs/class/System/Test/System/GenericUriParserTest.cs
+++ b/mcs/class/System/Test/System/GenericUriParserTest.cs
@@ -107,7 +107,7 @@ namespace MonoTests.System {
[Test]
public void Generic ()
{
- Uri uri = new Uri ("generic://www.mono-project.com/");
+ Uri uri = new Uri ("generic://www.example.com/");
Assert.AreEqual (1, uri.Port, "Port");
}
@@ -115,7 +115,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void Generic_Methods ()
{
- Uri uri = new Uri ("generic://www.mono-project.com/");
+ Uri uri = new Uri ("generic://www.example.com/");
Assert.AreEqual (String.Empty, uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -124,7 +124,7 @@ namespace MonoTests.System {
[Test]
public void SecureGeneric ()
{
- Uri uri = new Uri ("sgenericx://www.mono-project.com/");
+ Uri uri = new Uri ("sgenericx://www.example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/GopherStyleUriParserTest.cs b/mcs/class/System/Test/System/GopherStyleUriParserTest.cs
index 5a5426471c0..594d70cb463 100644
--- a/mcs/class/System/Test/System/GopherStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/GopherStyleUriParserTest.cs
@@ -108,7 +108,7 @@ namespace MonoTests.System {
[Test]
public void Gopherx ()
{
- Uri uri = new Uri ("gopherx://go-mono.com/");
+ Uri uri = new Uri ("gopherx://example.com/");
Assert.AreEqual (7070, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -117,7 +117,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void Gopherx_Methods ()
{
- Uri uri = new Uri ("gopherx://go-mono.com/");
+ Uri uri = new Uri ("gopherx://example.com/");
Assert.AreEqual (String.Empty, uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -127,7 +127,7 @@ namespace MonoTests.System {
[Test]
public void SecureGopherx ()
{
- Uri uri = new Uri ("sgopherx://go-mono.com/");
+ Uri uri = new Uri ("sgopherx://example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/HttpStyleUriParserTest.cs b/mcs/class/System/Test/System/HttpStyleUriParserTest.cs
index 6e631dcef73..d5fa8f84365 100644
--- a/mcs/class/System/Test/System/HttpStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/HttpStyleUriParserTest.cs
@@ -119,7 +119,7 @@ namespace MonoTests.System {
[Test]
public void Httpx ()
{
- Uri uri = new Uri ("httpx://www.mono-project.com/CAS");
+ Uri uri = new Uri ("httpx://www.example.com/CAS");
Assert.AreEqual (8080, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -127,7 +127,7 @@ namespace MonoTests.System {
[Test]
public void Httpx_Methods ()
{
- Uri uri = new Uri ("httpx://www.mono-project.com/CAS");
+ Uri uri = new Uri ("httpx://www.example.com/CAS");
Assert.AreEqual ("CAS", uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -137,7 +137,7 @@ namespace MonoTests.System {
[Test]
public void SecureHttpx ()
{
- Uri uri = new Uri ("shttpx://www.mono-project.com/CAS");
+ Uri uri = new Uri ("shttpx://www.example.com/CAS");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/LdapStyleUriParserTest.cs b/mcs/class/System/Test/System/LdapStyleUriParserTest.cs
index 5caf2e0d6bc..ae4da09df4d 100644
--- a/mcs/class/System/Test/System/LdapStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/LdapStyleUriParserTest.cs
@@ -108,7 +108,7 @@ namespace MonoTests.System {
[Test]
public void Ldapx ()
{
- Uri uri = new Uri ("ldapx://www.mono-project.com/");
+ Uri uri = new Uri ("ldapx://www.example.com/");
Assert.AreEqual (3890, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -117,7 +117,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void Ldapx_Methods ()
{
- Uri uri = new Uri ("ldapx://www.mono-project.com/");
+ Uri uri = new Uri ("ldapx://www.example.com/");
Assert.AreEqual (String.Empty, uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -127,7 +127,7 @@ namespace MonoTests.System {
[Test]
public void SecureLdapx ()
{
- Uri uri = new Uri ("sldapx://www.mono-project.com/");
+ Uri uri = new Uri ("sldapx://www.example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/NetPipeStyleUriParserTest.cs b/mcs/class/System/Test/System/NetPipeStyleUriParserTest.cs
index a581b20cd53..c4ba95384fe 100644
--- a/mcs/class/System/Test/System/NetPipeStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/NetPipeStyleUriParserTest.cs
@@ -107,7 +107,7 @@ namespace MonoTests.System {
[Test]
public void NetPipeX ()
{
- Uri uri = new Uri ("net.pipex://www.mono-project.com/");
+ Uri uri = new Uri ("net.pipex://www.example.com/");
Assert.AreEqual (2, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -116,7 +116,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void NetPipeX_Methods ()
{
- Uri uri = new Uri ("net.pipex://www.mono-project.com/");
+ Uri uri = new Uri ("net.pipex://www.example.com/");
Assert.AreEqual (String.Empty, uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -126,7 +126,7 @@ namespace MonoTests.System {
[Test]
public void SecureNetPipeX ()
{
- Uri uri = new Uri ("snet.pipex://www.mono-project.com/");
+ Uri uri = new Uri ("snet.pipex://www.example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/NetTcpStyleUriParserTest.cs b/mcs/class/System/Test/System/NetTcpStyleUriParserTest.cs
index 9a0de8434d9..ebd66a22dc8 100644
--- a/mcs/class/System/Test/System/NetTcpStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/NetTcpStyleUriParserTest.cs
@@ -107,7 +107,7 @@ namespace MonoTests.System {
[Test]
public void NetTcpX ()
{
- Uri uri = new Uri ("net.tcpx://www.mono-project.com/");
+ Uri uri = new Uri ("net.tcpx://www.example.com/");
Assert.AreEqual (2, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -116,7 +116,7 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void NetTcpX_Methods ()
{
- Uri uri = new Uri ("net.tcpx://www.mono-project.com/");
+ Uri uri = new Uri ("net.tcpx://www.example.com/");
Assert.AreEqual (String.Empty, uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
@@ -126,7 +126,7 @@ namespace MonoTests.System {
[Test]
public void SecureNetTcpX ()
{
- Uri uri = new Uri ("snet.tcpx://www.mono-project.com/");
+ Uri uri = new Uri ("snet.tcpx://www.example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/NewsStyleUriParserTest.cs b/mcs/class/System/Test/System/NewsStyleUriParserTest.cs
index 9ef327aaca0..818f07976d3 100644
--- a/mcs/class/System/Test/System/NewsStyleUriParserTest.cs
+++ b/mcs/class/System/Test/System/NewsStyleUriParserTest.cs
@@ -107,7 +107,7 @@ namespace MonoTests.System {
[Test]
public void NewsX ()
{
- Uri uri = new Uri ("newsx://go-mono.com/");
+ Uri uri = new Uri ("newsx://example.com/");
Assert.AreEqual (2, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
@@ -116,8 +116,8 @@ namespace MonoTests.System {
[Category ("NotWorking")]
public void NewsX_Methods ()
{
- Uri uri = new Uri ("newsx://go-mono.com/");
- Assert.AreEqual ("//go-mono.com/", uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
+ Uri uri = new Uri ("newsx://example.com/");
+ Assert.AreEqual ("//example.com/", uri.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped), "GetComponents");
Assert.IsTrue (uri.IsBaseOf (uri), "IsBaseOf");
Assert.IsTrue (uri.IsWellFormedOriginalString (), "IsWellFormedOriginalString");
// ??? our parser doesn't seems to be called :(
@@ -126,7 +126,7 @@ namespace MonoTests.System {
[Test]
public void SecureNewsX ()
{
- Uri uri = new Uri ("snewsx://go-mono.com/");
+ Uri uri = new Uri ("snewsx://example.com/");
Assert.AreEqual (-1, uri.Port, "Port");
// OnRegister cannot be used to change the registering informations
}
diff --git a/mcs/class/System/Test/System/UriBuilderTest.cs b/mcs/class/System/Test/System/UriBuilderTest.cs
index 5db45f56b3e..976db087b35 100644
--- a/mcs/class/System/Test/System/UriBuilderTest.cs
+++ b/mcs/class/System/Test/System/UriBuilderTest.cs
@@ -111,8 +111,8 @@ namespace MonoTests.System
[Test]
public void Constructor_StringStringInt ()
{
- UriBuilder ub = new UriBuilder ("http", "www.mono-project.com", 80);
- Assert.AreEqual ("http://www.mono-project.com/", ub.Uri.AbsoluteUri, "Uri.AbsoluteUri");
+ UriBuilder ub = new UriBuilder ("http", "www.example.com", 80);
+ Assert.AreEqual ("http://www.example.com/", ub.Uri.AbsoluteUri, "Uri.AbsoluteUri");
}
[Test]
@@ -281,10 +281,10 @@ namespace MonoTests.System
[Test]
public void TestAppendFragment ()
{
- UriBuilder uri = new UriBuilder ("http://www.mono-project.com/Main_Page");
+ UriBuilder uri = new UriBuilder ("http://www.example.com/Main_Page");
uri.Fragment = "Features";
Assert.AreEqual ("#Features", uri.Fragment, "#1");
- Assert.AreEqual ("http://www.mono-project.com/Main_Page#Features", uri.Uri.ToString (), "#2");
+ Assert.AreEqual ("http://www.example.com/Main_Page#Features", uri.Uri.ToString (), "#2");
}
[Test]
@@ -336,10 +336,10 @@ namespace MonoTests.System
{
// some URI can't be parsed by System.Uri but are accepted by UriBuilder
Uri u = null;
- string uri = "www.mono-project.com";
+ string uri = "www.example.com";
Assert.IsFalse (Uri.TryCreate (uri, UriKind.Absolute, out u), "1.Uri.TryCreate");
UriBuilder ub = new UriBuilder (uri);
- Assert.AreEqual ("www.mono-project.com", ub.Host, "1.Host");
+ Assert.AreEqual ("www.example.com", ub.Host, "1.Host");
Assert.AreEqual ("http", ub.Scheme, "1.Scheme");
Assert.AreEqual (80, ub.Port, "1.Port");
Assert.AreEqual ("/", ub.Path, "1.Path");
diff --git a/mcs/class/System/Test/System/UriCas.cs b/mcs/class/System/Test/System/UriCas.cs
index 7ff3662f7fb..7f767c9911b 100644
--- a/mcs/class/System/Test/System/UriCas.cs
+++ b/mcs/class/System/Test/System/UriCas.cs
@@ -124,7 +124,7 @@ namespace MonoCasTests.System {
Type[] types = new Type[1] { typeof (string) };
ConstructorInfo ci = typeof (Uri).GetConstructor (types);
Assert.IsNotNull (ci, ".ctor(string)");
- Assert.IsNotNull (ci.Invoke (new object[1] { "http://www.mono-project.com/" }), "invoke");
+ Assert.IsNotNull (ci.Invoke (new object[1] { "http://www.example.com/" }), "invoke");
}
}
}
diff --git a/mcs/class/System/Test/System/UriParserTest.cs b/mcs/class/System/Test/System/UriParserTest.cs
index 6cffcb02105..a068a012963 100644
--- a/mcs/class/System/Test/System/UriParserTest.cs
+++ b/mcs/class/System/Test/System/UriParserTest.cs
@@ -128,7 +128,7 @@ namespace MonoTests.System {
[TestFixture]
public class UriParserTest {
- private const string full_http = "http://www.mono-project.com/Main_Page#FAQ?Edit";
+ private const string full_http = "http://www.example.com/Main_Page#FAQ?Edit";
private string prefix;
private Uri http;
@@ -139,10 +139,10 @@ namespace MonoTests.System {
{
prefix = "unit.test.";
http = new Uri (full_http);
- ftp = new Uri ("ftp://username:password@ftp.go-mono.com:21/with some spaces/mono.tgz");
+ ftp = new Uri ("ftp://username:password@ftp.example.com:21/with some spaces/mono.tgz");
// Uses percent encoding on the username and password
- ftp2 = new Uri ("ftp://%75sername%3a%70assword@ftp.go-mono.com:21/with some spaces/mono.tgz");
+ ftp2 = new Uri ("ftp://%75sername%3a%70assword@ftp.example.com:21/with some spaces/mono.tgz");
}
public string Prefix
@@ -163,23 +163,23 @@ namespace MonoTests.System {
UnitTestUriParser p = new UnitTestUriParser ();
Assert.AreEqual ("http", p._GetComponents (http, UriComponents.Scheme, UriFormat.SafeUnescaped), "http.Scheme");
Assert.AreEqual (String.Empty, p._GetComponents (http, UriComponents.UserInfo, UriFormat.SafeUnescaped), "http.UserInfo");
- Assert.AreEqual ("www.mono-project.com", p._GetComponents (http, UriComponents.Host, UriFormat.SafeUnescaped), "http.Host");
+ Assert.AreEqual ("www.example.com", p._GetComponents (http, UriComponents.Host, UriFormat.SafeUnescaped), "http.Host");
Assert.AreEqual (String.Empty, p._GetComponents (http, UriComponents.Port, UriFormat.SafeUnescaped), "http.Port");
Assert.AreEqual ("Main_Page", p._GetComponents (http, UriComponents.Path, UriFormat.SafeUnescaped), "http.Path");
Assert.AreEqual (String.Empty, p._GetComponents (http, UriComponents.Query, UriFormat.SafeUnescaped), "http.Query");
Assert.AreEqual ("FAQ?Edit", p._GetComponents (http, UriComponents.Fragment, UriFormat.SafeUnescaped), "http.Fragment");
Assert.AreEqual ("80", p._GetComponents (http, UriComponents.StrongPort, UriFormat.SafeUnescaped), "http.StrongPort");
Assert.AreEqual (String.Empty, p._GetComponents (http, UriComponents.KeepDelimiter, UriFormat.SafeUnescaped), "http.KeepDelimiter");
- Assert.AreEqual ("www.mono-project.com:80", p._GetComponents (http, UriComponents.HostAndPort, UriFormat.SafeUnescaped), "http.HostAndPort");
- Assert.AreEqual ("www.mono-project.com:80", p._GetComponents (http, UriComponents.StrongAuthority, UriFormat.SafeUnescaped), "http.StrongAuthority");
+ Assert.AreEqual ("www.example.com:80", p._GetComponents (http, UriComponents.HostAndPort, UriFormat.SafeUnescaped), "http.HostAndPort");
+ Assert.AreEqual ("www.example.com:80", p._GetComponents (http, UriComponents.StrongAuthority, UriFormat.SafeUnescaped), "http.StrongAuthority");
Assert.AreEqual (full_http, p._GetComponents (http, UriComponents.AbsoluteUri, UriFormat.SafeUnescaped), "http.AbsoluteUri");
Assert.AreEqual ("/Main_Page", p._GetComponents (http, UriComponents.PathAndQuery, UriFormat.SafeUnescaped), "http.PathAndQuery");
- Assert.AreEqual ("http://www.mono-project.com/Main_Page", p._GetComponents (http, UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped), "http.HttpRequestUrl");
- Assert.AreEqual ("http://www.mono-project.com", p._GetComponents (http, UriComponents.SchemeAndServer, UriFormat.SafeUnescaped), "http.SchemeAndServer");
+ Assert.AreEqual ("http://www.example.com/Main_Page", p._GetComponents (http, UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped), "http.HttpRequestUrl");
+ Assert.AreEqual ("http://www.example.com", p._GetComponents (http, UriComponents.SchemeAndServer, UriFormat.SafeUnescaped), "http.SchemeAndServer");
Assert.AreEqual (full_http, p._GetComponents (http, UriComponents.SerializationInfoString, UriFormat.SafeUnescaped), "http.SerializationInfoString");
// strange mixup
Assert.AreEqual ("http://", p._GetComponents (http, UriComponents.Scheme | UriComponents.Port, UriFormat.SafeUnescaped), "http.Scheme+Port");
- Assert.AreEqual ("www.mono-project.com#FAQ?Edit", p._GetComponents (http, UriComponents.Host | UriComponents.Fragment, UriFormat.SafeUnescaped), "http.Scheme+Port");
+ Assert.AreEqual ("www.example.com#FAQ?Edit", p._GetComponents (http, UriComponents.Host | UriComponents.Fragment, UriFormat.SafeUnescaped), "http.Scheme+Port");
Assert.AreEqual ("/Main_Page", p._GetComponents (http, UriComponents.Port | UriComponents.Path, UriFormat.SafeUnescaped), "http.Scheme+Port");
Assert.AreSame (p, p._OnNewUri (), "OnNewUri");
}
@@ -190,7 +190,7 @@ namespace MonoTests.System {
UnitTestUriParser p = new UnitTestUriParser ();
Assert.AreEqual ("ftp", p._GetComponents (ftp, UriComponents.Scheme, UriFormat.Unescaped), "ftp.Scheme");
Assert.AreEqual ("username:password", p._GetComponents (ftp, UriComponents.UserInfo, UriFormat.Unescaped), "ftp.UserInfo");
- Assert.AreEqual ("ftp.go-mono.com", p._GetComponents (ftp, UriComponents.Host, UriFormat.Unescaped), "ftp.Host");
+ Assert.AreEqual ("ftp.example.com", p._GetComponents (ftp, UriComponents.Host, UriFormat.Unescaped), "ftp.Host");
Assert.AreEqual (String.Empty, p._GetComponents (ftp, UriComponents.Port, UriFormat.Unescaped), "ftp.Port");
Assert.AreEqual ("with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.Path, UriFormat.Unescaped), "ftp.Path");
Assert.AreEqual ("with%20some%20spaces/mono.tgz", p._GetComponents (ftp, UriComponents.Path, UriFormat.UriEscaped), "ftp.Path-UriEscaped");
@@ -199,13 +199,13 @@ namespace MonoTests.System {
Assert.AreEqual (String.Empty, p._GetComponents (ftp, UriComponents.Fragment, UriFormat.Unescaped), "ftp.Fragment");
Assert.AreEqual ("21", p._GetComponents (ftp, UriComponents.StrongPort, UriFormat.Unescaped), "ftp.StrongPort");
Assert.AreEqual (String.Empty, p._GetComponents (ftp, UriComponents.KeepDelimiter, UriFormat.Unescaped), "http.KeepDelimiter");
- Assert.AreEqual ("ftp.go-mono.com:21", p._GetComponents (ftp, UriComponents.HostAndPort, UriFormat.Unescaped), "http.HostAndPort");
- Assert.AreEqual ("username:password@ftp.go-mono.com:21", p._GetComponents (ftp, UriComponents.StrongAuthority, UriFormat.Unescaped), "http.StrongAuthority");
- Assert.AreEqual ("ftp://username:password@ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.AbsoluteUri, UriFormat.Unescaped), "http.AbsoluteUri");
+ Assert.AreEqual ("ftp.example.com:21", p._GetComponents (ftp, UriComponents.HostAndPort, UriFormat.Unescaped), "http.HostAndPort");
+ Assert.AreEqual ("username:password@ftp.example.com:21", p._GetComponents (ftp, UriComponents.StrongAuthority, UriFormat.Unescaped), "http.StrongAuthority");
+ Assert.AreEqual ("ftp://username:password@ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.AbsoluteUri, UriFormat.Unescaped), "http.AbsoluteUri");
Assert.AreEqual ("/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.PathAndQuery, UriFormat.Unescaped), "http.PathAndQuery");
- Assert.AreEqual ("ftp://ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.HttpRequestUrl, UriFormat.Unescaped), "http.HttpRequestUrl");
- Assert.AreEqual ("ftp://ftp.go-mono.com", p._GetComponents (ftp, UriComponents.SchemeAndServer, UriFormat.Unescaped), "http.SchemeAndServer");
- Assert.AreEqual ("ftp://username:password@ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.SerializationInfoString, UriFormat.Unescaped), "http.SerializationInfoString");
+ Assert.AreEqual ("ftp://ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.HttpRequestUrl, UriFormat.Unescaped), "http.HttpRequestUrl");
+ Assert.AreEqual ("ftp://ftp.example.com", p._GetComponents (ftp, UriComponents.SchemeAndServer, UriFormat.Unescaped), "http.SchemeAndServer");
+ Assert.AreEqual ("ftp://username:password@ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp, UriComponents.SerializationInfoString, UriFormat.Unescaped), "http.SerializationInfoString");
Assert.AreSame (p, p._OnNewUri (), "OnNewUri");
// strange mixup
Assert.AreEqual ("ftp://username:password@", p._GetComponents (ftp, UriComponents.Scheme | UriComponents.UserInfo, UriFormat.Unescaped), "ftp.Scheme+UserInfo");
@@ -218,7 +218,7 @@ namespace MonoTests.System {
UnitTestUriParser p = new UnitTestUriParser ();
Assert.AreEqual ("ftp", p._GetComponents (ftp2, UriComponents.Scheme, UriFormat.Unescaped), "ftp.Scheme");
Assert.AreEqual ("username:password", p._GetComponents (ftp2, UriComponents.UserInfo, UriFormat.Unescaped), "ftp.UserInfo");
- Assert.AreEqual ("ftp.go-mono.com", p._GetComponents (ftp2, UriComponents.Host, UriFormat.Unescaped), "ftp.Host");
+ Assert.AreEqual ("ftp.example.com", p._GetComponents (ftp2, UriComponents.Host, UriFormat.Unescaped), "ftp.Host");
Assert.AreEqual (String.Empty, p._GetComponents (ftp2, UriComponents.Port, UriFormat.Unescaped), "ftp.Port");
Assert.AreEqual ("with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.Path, UriFormat.Unescaped), "ftp.Path");
Assert.AreEqual ("with%20some%20spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.Path, UriFormat.UriEscaped), "ftp.Path-UriEscaped");
@@ -227,13 +227,13 @@ namespace MonoTests.System {
Assert.AreEqual (String.Empty, p._GetComponents (ftp2, UriComponents.Fragment, UriFormat.Unescaped), "ftp.Fragment");
Assert.AreEqual ("21", p._GetComponents (ftp2, UriComponents.StrongPort, UriFormat.Unescaped), "ftp.StrongPort");
Assert.AreEqual (String.Empty, p._GetComponents (ftp2, UriComponents.KeepDelimiter, UriFormat.Unescaped), "http.KeepDelimiter");
- Assert.AreEqual ("ftp.go-mono.com:21", p._GetComponents (ftp2, UriComponents.HostAndPort, UriFormat.Unescaped), "http.HostAndPort");
- Assert.AreEqual ("username:password@ftp.go-mono.com:21", p._GetComponents (ftp2, UriComponents.StrongAuthority, UriFormat.Unescaped), "http.StrongAuthority");
- Assert.AreEqual ("ftp://username:password@ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.AbsoluteUri, UriFormat.Unescaped), "http.AbsoluteUri");
+ Assert.AreEqual ("ftp.example.com:21", p._GetComponents (ftp2, UriComponents.HostAndPort, UriFormat.Unescaped), "http.HostAndPort");
+ Assert.AreEqual ("username:password@ftp.example.com:21", p._GetComponents (ftp2, UriComponents.StrongAuthority, UriFormat.Unescaped), "http.StrongAuthority");
+ Assert.AreEqual ("ftp://username:password@ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.AbsoluteUri, UriFormat.Unescaped), "http.AbsoluteUri");
Assert.AreEqual ("/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.PathAndQuery, UriFormat.Unescaped), "http.PathAndQuery");
- Assert.AreEqual ("ftp://ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.HttpRequestUrl, UriFormat.Unescaped), "http.HttpRequestUrl");
- Assert.AreEqual ("ftp://ftp.go-mono.com", p._GetComponents (ftp2, UriComponents.SchemeAndServer, UriFormat.Unescaped), "http.SchemeAndServer");
- Assert.AreEqual ("ftp://username:password@ftp.go-mono.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.SerializationInfoString, UriFormat.Unescaped), "http.SerializationInfoString");
+ Assert.AreEqual ("ftp://ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.HttpRequestUrl, UriFormat.Unescaped), "http.HttpRequestUrl");
+ Assert.AreEqual ("ftp://ftp.example.com", p._GetComponents (ftp2, UriComponents.SchemeAndServer, UriFormat.Unescaped), "http.SchemeAndServer");
+ Assert.AreEqual ("ftp://username:password@ftp.example.com/with some spaces/mono.tgz", p._GetComponents (ftp2, UriComponents.SerializationInfoString, UriFormat.Unescaped), "http.SerializationInfoString");
Assert.AreSame (p, p._OnNewUri (), "OnNewUri");
// strange mixup
Assert.AreEqual ("ftp://username:password@", p._GetComponents (ftp2, UriComponents.Scheme | UriComponents.UserInfo, UriFormat.Unescaped), "ftp.Scheme+UserInfo");
@@ -298,59 +298,59 @@ namespace MonoTests.System {
UnitTestUriParser p = new UnitTestUriParser ();
Assert.IsTrue (p._IsBaseOf (http, http), "http-http");
- Uri u = new Uri ("http://www.mono-project.com/Main_Page#FAQ");
+ Uri u = new Uri ("http://www.example.com/Main_Page#FAQ");
Assert.IsTrue (p._IsBaseOf (u, http), "http-1a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-1b");
- u = new Uri ("http://www.mono-project.com/Main_Page");
+ u = new Uri ("http://www.example.com/Main_Page");
Assert.IsTrue (p._IsBaseOf (u, http), "http-2a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-2b");
- u = new Uri ("http://www.mono-project.com/");
+ u = new Uri ("http://www.example.com/");
Assert.IsTrue (p._IsBaseOf (u, http), "http-3a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-3b");
- u = new Uri ("http://www.mono-project.com/Main_Page/");
+ u = new Uri ("http://www.example.com/Main_Page/");
Assert.IsFalse (p._IsBaseOf (u, http), "http-4a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-4b");
// docs says the UserInfo isn't evaluated, but...
- u = new Uri ("http://username:password@www.mono-project.com/Main_Page");
+ u = new Uri ("http://username:password@www.example.com/Main_Page");
Assert.IsFalse (p._IsBaseOf (u, http), "http-5a");
Assert.IsFalse (p._IsBaseOf (http, u), "http-5b");
// scheme case sensitive ? no
- u = new Uri ("HTTP://www.mono-project.com/Main_Page");
+ u = new Uri ("HTTP://www.example.com/Main_Page");
Assert.IsTrue (p._IsBaseOf (u, http), "http-6a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-6b");
// host case sensitive ? no
- u = new Uri ("http://www.Mono-Project.com/Main_Page");
+ u = new Uri ("http://www.Example.com/Main_Page");
Assert.IsTrue (p._IsBaseOf (u, http), "http-7a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-7b");
// path case sensitive ? no
- u = new Uri ("http://www.Mono-Project.com/MAIN_Page");
+ u = new Uri ("http://www.Example.com/MAIN_Page");
Assert.IsTrue (p._IsBaseOf (u, http), "http-8a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-8b");
// different scheme
- u = new Uri ("ftp://www.mono-project.com/Main_Page");
+ u = new Uri ("ftp://www.example.com/Main_Page");
Assert.IsFalse (p._IsBaseOf (u, http), "http-9a");
Assert.IsFalse (p._IsBaseOf (http, u), "http-9b");
// different host
- u = new Uri ("http://www.go-mono.com/Main_Page");
+ u = new Uri ("http://www.example.org/Main_Page");
Assert.IsFalse (p._IsBaseOf (u, http), "http-10a");
Assert.IsFalse (p._IsBaseOf (http, u), "http-10b");
// different port
- u = new Uri ("http://www.mono-project.com:8080/");
+ u = new Uri ("http://www.example.com:8080/");
Assert.IsFalse (p._IsBaseOf (u, http), "http-11a");
Assert.IsFalse (p._IsBaseOf (http, u), "http-11b");
// specify default port
- u = new Uri ("http://www.mono-project.com:80/");
+ u = new Uri ("http://www.example.com:80/");
Assert.IsTrue (p._IsBaseOf (u, http), "http-12a");
Assert.IsTrue (p._IsBaseOf (http, u), "http-12b");
}
@@ -396,7 +396,7 @@ namespace MonoTests.System {
UriParser.Register (p, scheme, 1999);
Assert.IsFalse (p.OnNewUriCalled, "!Called");
- Uri uri = new Uri (scheme + "://www.mono-project.com");
+ Uri uri = new Uri (scheme + "://www.example.com");
Assert.IsTrue (p.OnNewUriCalled, "Called");
}
diff --git a/mcs/class/System/Test/System/UriTest.cs b/mcs/class/System/Test/System/UriTest.cs
index 2cabd42af7b..3697bbba5d1 100644
--- a/mcs/class/System/Test/System/UriTest.cs
+++ b/mcs/class/System/Test/System/UriTest.cs
@@ -922,8 +922,8 @@ namespace MonoTests.System
Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName (":"), "#44");
Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("*"), "#45");
- Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("*.go-mono.com"), "#46");
- Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www*.go-mono.com"), "#47");
+ Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("*.example.com"), "#46");
+ Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www*.example.com"), "#47");
}
[Test]
@@ -1016,20 +1016,20 @@ namespace MonoTests.System
[Test]
public void TestEquals2 ()
{
- Uri a = new Uri ("http://www.go-mono.com");
- Uri b = new Uri ("http://www.go-mono.com");
+ Uri a = new Uri ("http://www.example.com");
+ Uri b = new Uri ("http://www.example.com");
Assert.AreEqual (a, b, "#1");
- a = new Uri ("mailto:user:pwd@go-mono.com?subject=uri");
- b = new Uri ("MAILTO:USER:PWD@GO-MONO.COM?SUBJECT=URI");
+ a = new Uri ("mailto:user:pwd@example.com?subject=uri");
+ b = new Uri ("MAILTO:USER:PWD@EXAMPLE.COM?SUBJECT=URI");
Assert.IsTrue (a != b, "#2");
- Assert.AreEqual ("mailto:user:pwd@go-mono.com?subject=uri", a.ToString (), "#2a");
- Assert.AreEqual ("mailto:USER:PWD@go-mono.com?SUBJECT=URI", b.ToString (), "#2b");
+ Assert.AreEqual ("mailto:user:pwd@example.com?subject=uri", a.ToString (), "#2a");
+ Assert.AreEqual ("mailto:USER:PWD@example.com?SUBJECT=URI", b.ToString (), "#2b");
- a = new Uri ("http://www.go-mono.com/ports/");
- b = new Uri ("http://www.go-mono.com/PORTS/");
+ a = new Uri ("http://www.example.com/ports/");
+ b = new Uri ("http://www.example.com/PORTS/");
Assert.IsTrue (!a.Equals (b), "#3");
}
@@ -1037,15 +1037,15 @@ namespace MonoTests.System
[Test]
public void CaseSensitivity ()
{
- Uri mailto = new Uri ("MAILTO:USER:PWD@GO-MONO.COM?SUBJECT=URI");
+ Uri mailto = new Uri ("MAILTO:USER:PWD@EXAMPLE.COM?SUBJECT=URI");
Assert.AreEqual ("mailto", mailto.Scheme, "#1");
- Assert.AreEqual ("go-mono.com", mailto.Host, "#2");
- Assert.AreEqual ("mailto:USER:PWD@go-mono.com?SUBJECT=URI", mailto.ToString (), "#3");
+ Assert.AreEqual ("example.com", mailto.Host, "#2");
+ Assert.AreEqual ("mailto:USER:PWD@example.com?SUBJECT=URI", mailto.ToString (), "#3");
- Uri http = new Uri ("HTTP://GO-MONO.COM/INDEX.HTML");
+ Uri http = new Uri ("HTTP://EXAMPLE.COM/INDEX.HTML");
Assert.AreEqual ("http", http.Scheme, "#4");
- Assert.AreEqual ("go-mono.com", http.Host, "#5");
- Assert.AreEqual ("http://go-mono.com/INDEX.HTML", http.ToString (), "#6");
+ Assert.AreEqual ("example.com", http.Host, "#5");
+ Assert.AreEqual ("http://example.com/INDEX.HTML", http.ToString (), "#6");
// IPv6 Address
Uri ftp = new Uri ("FTP://[::ffFF:169.32.14.5]/");
@@ -1736,39 +1736,39 @@ namespace MonoTests.System
[Test]
public void GetComponents_AbsoluteUri ()
{
- Uri uri = new Uri ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263");
+ Uri uri = new Uri ("http://example.com/list?id=1%262&sort=asc#fragment%263");
- Assert.AreEqual ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("http://example.com/list?id=1%262&sort=asc#fragment%263", uri.AbsoluteUri, "AbsoluteUri");
string safe = uri.GetComponents (UriComponents.AbsoluteUri, UriFormat.SafeUnescaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263", safe, "SafeUnescaped");
+ Assert.AreEqual ("http://example.com/list?id=1%262&sort=asc#fragment%263", safe, "SafeUnescaped");
string unescaped = uri.GetComponents (UriComponents.AbsoluteUri, UriFormat.Unescaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1&2&sort=asc#fragment&3", unescaped, "Unescaped");
+ Assert.AreEqual ("http://example.com/list?id=1&2&sort=asc#fragment&3", unescaped, "Unescaped");
string escaped = uri.GetComponents (UriComponents.AbsoluteUri, UriFormat.UriEscaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263", escaped, "UriEscaped");
+ Assert.AreEqual ("http://example.com/list?id=1%262&sort=asc#fragment%263", escaped, "UriEscaped");
}
[Test]
public void GetComponents_HttpRequestUrl ()
{
- Uri uri = new Uri ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263");
+ Uri uri = new Uri ("http://example.com/list?id=1%262&sort=asc#fragment%263");
string safe = uri.GetComponents (UriComponents.HttpRequestUrl, UriFormat.SafeUnescaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1%262&sort=asc", safe, "SafeUnescaped");
+ Assert.AreEqual ("http://example.com/list?id=1%262&sort=asc", safe, "SafeUnescaped");
string unescaped = uri.GetComponents (UriComponents.HttpRequestUrl, UriFormat.Unescaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1&2&sort=asc", unescaped, "Unescaped");
+ Assert.AreEqual ("http://example.com/list?id=1&2&sort=asc", unescaped, "Unescaped");
string escaped = uri.GetComponents (UriComponents.HttpRequestUrl, UriFormat.UriEscaped);
- Assert.AreEqual ("http://mono-project.com/list?id=1%262&sort=asc", escaped, "UriEscaped");
+ Assert.AreEqual ("http://example.com/list?id=1%262&sort=asc", escaped, "UriEscaped");
}
[Test]
public void GetComponents_KeepDelimiter ()
{
- Uri uri = new Uri ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263");
+ Uri uri = new Uri ("http://example.com/list?id=1%262&sort=asc#fragment%263");
string safe = uri.GetComponents (UriComponents.KeepDelimiter, UriFormat.SafeUnescaped);
Assert.AreEqual (String.Empty, safe, "SafeUnescaped");
@@ -1783,22 +1783,22 @@ namespace MonoTests.System
[Test]
public void GetComponents_StrongAuthority ()
{
- Uri uri = new Uri ("http://mono-project.com/list?id=1%262&sort=asc#fragment%263");
+ Uri uri = new Uri ("http://example.com/list?id=1%262&sort=asc#fragment%263");
string safe = uri.GetComponents (UriComponents.StrongAuthority, UriFormat.SafeUnescaped);
- Assert.AreEqual ("mono-project.com:80", safe, "SafeUnescaped");
+ Assert.AreEqual ("example.com:80", safe, "SafeUnescaped");
string unescaped = uri.GetComponents (UriComponents.StrongAuthority, UriFormat.Unescaped);
- Assert.AreEqual ("mono-project.com:80", unescaped, "Unescaped");
+ Assert.AreEqual ("example.com:80", unescaped, "Unescaped");
string escaped = uri.GetComponents (UriComponents.StrongAuthority, UriFormat.UriEscaped);
- Assert.AreEqual ("mono-project.com:80", escaped, "UriEscaped");
+ Assert.AreEqual ("example.com:80", escaped, "UriEscaped");
}
[Test]
public void GetComponents_Path ()
{
- Uri uri1 = new Uri ("http://mono-project.com/Main%20Page");
+ Uri uri1 = new Uri ("http://example.com/Main%20Page");
Assert.AreEqual ("/Main Page", uri1.LocalPath, "Path1");
string safe = uri1.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped);
@@ -1811,7 +1811,7 @@ namespace MonoTests.System
Assert.AreEqual ("Main%20Page", escaped, "UriEscaped1");
// same result is unescaped original string
- Uri uri2 = new Uri ("http://mono-project.com/Main Page");
+ Uri uri2 = new Uri ("http://example.com/Main Page");
Assert.AreEqual ("/Main Page", uri2.LocalPath, "Path2");
safe = uri2.GetComponents (UriComponents.Path, UriFormat.SafeUnescaped);
@@ -1827,7 +1827,7 @@ namespace MonoTests.System
[Test]
public void GetComponents_PathAndQuery ()
{
- Uri uri = new Uri ("http://mono-project.com/MåÏn Påge?id=1%262&sort=asc");
+ Uri uri = new Uri ("http://example.com/MåÏn Påge?id=1%262&sort=asc");
Assert.AreEqual ("/M%C3%A5%C3%8Fn%20P%C3%A5ge?id=1%262&sort=asc", uri.PathAndQuery, "PathAndQuery");
@@ -1844,7 +1844,7 @@ namespace MonoTests.System
[Test]
public void GetComponents_Query ()
{
- Uri uri = new Uri ("http://mono-project.com/list?id=1%262&sort=asc");
+ Uri uri = new Uri ("http://example.com/list?id=1%262&sort=asc");
Assert.AreEqual ("?id=1%262&sort=asc", uri.Query, "Query");
@@ -1861,7 +1861,7 @@ namespace MonoTests.System
[Test]
public void GetComponents_Fragment ()
{
- Uri uri = new Uri ("http://mono-project.com/list#id=1%262&sort=asc");
+ Uri uri = new Uri ("http://example.com/list#id=1%262&sort=asc");
Assert.AreEqual ("#id=1%262&sort=asc", uri.Fragment, "Fragment");
diff --git a/mcs/class/System/Test/System/UriTest2.cs b/mcs/class/System/Test/System/UriTest2.cs
index 8fccc8bab64..fbbc68918d5 100644
--- a/mcs/class/System/Test/System/UriTest2.cs
+++ b/mcs/class/System/Test/System/UriTest2.cs
@@ -127,7 +127,7 @@ namespace MonoTests.System
[Ignore ("Tests needs to be updated for 2.0")]
public void RelativeUriFromFile ()
{
- FromResource ("Test/System/test-uri-relative-props.txt", new Uri ("http://www.go-mono.com"));
+ FromResource ("Test/System/test-uri-relative-props.txt", new Uri ("http://www.example.com"));
}
private void FromResource (string res, Uri baseUri)
@@ -219,7 +219,7 @@ TextWriter sw = Console.Out;
[ExpectedException (typeof (UriFormatException))]
public void StarsInHost ()
{
- new Uri ("http://w*w*w.go-mono.com");
+ new Uri ("http://w*w*w.example.com");
}
[Test]
@@ -795,14 +795,14 @@ TextWriter sw = Console.Out;
[Test]
public void NntpScheme ()
{
- Uri uri = new Uri ("nntp://news.mono-project.com/novell.mono.moonlight/uri?query");
+ Uri uri = new Uri ("nntp://news.example.com/novell.mono.moonlight/uri?query");
Assert.AreEqual ("/novell.mono.moonlight/uri%3Fquery", uri.AbsolutePath, "AbsolutePath");
- Assert.AreEqual ("nntp://news.mono-project.com/novell.mono.moonlight/uri%3Fquery", uri.AbsoluteUri, "AbsoluteUri");
- Assert.AreEqual ("news.mono-project.com", uri.Authority, "Authority");
- Assert.AreEqual ("news.mono-project.com", uri.DnsSafeHost, "DnsSafeHost");
+ Assert.AreEqual ("nntp://news.example.com/novell.mono.moonlight/uri%3Fquery", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("news.example.com", uri.Authority, "Authority");
+ Assert.AreEqual ("news.example.com", uri.DnsSafeHost, "DnsSafeHost");
Assert.AreEqual (String.Empty, uri.Fragment, "Fragment");
- Assert.AreEqual ("news.mono-project.com", uri.Host, "Host");
+ Assert.AreEqual ("news.example.com", uri.Host, "Host");
Assert.AreEqual (UriHostNameType.Dns, uri.HostNameType, "HostNameType");
Assert.IsTrue (uri.IsAbsoluteUri, "IsAbsoluteUri");
Assert.IsTrue (uri.IsDefaultPort, "IsDefaultPort");
@@ -810,7 +810,7 @@ TextWriter sw = Console.Out;
Assert.IsFalse (uri.IsLoopback, "IsLoopback");
Assert.IsFalse (uri.IsUnc, "IsUnc");
Assert.AreEqual ("/novell.mono.moonlight/uri?query", uri.LocalPath, "LocalPath");
- Assert.AreEqual ("nntp://news.mono-project.com/novell.mono.moonlight/uri?query", uri.OriginalString, "OriginalString");
+ Assert.AreEqual ("nntp://news.example.com/novell.mono.moonlight/uri?query", uri.OriginalString, "OriginalString");
Assert.AreEqual ("/novell.mono.moonlight/uri%3Fquery", uri.PathAndQuery, "PathAndQuery");
Assert.AreEqual (119, uri.Port, "Port");
Assert.AreEqual (String.Empty, uri.Query, "Query");
@@ -822,7 +822,7 @@ TextWriter sw = Console.Out;
Assert.AreEqual (String.Empty, uri.UserInfo, "UserInfo");
// special escaped characters - they differs a bit from other URI
- uri = new Uri ("nntp://news.mono-project.com/novell.mono.moonlight/<>%\"{}|\\^`;/?:@&=+$,[]#abc");
+ uri = new Uri ("nntp://news.example.com/novell.mono.moonlight/<>%\"{}|\\^`;/?:@&=+$,[]#abc");
Assert.AreEqual ("#abc", uri.Fragment, "Special/Fragment");
if (IriParsing)
Assert.AreEqual ("/novell.mono.moonlight/%3C%3E%25%22%7B%7D%7C%5C%5E%60;/%3F:@&=+$,[]", uri.AbsolutePath, "Special");
@@ -834,13 +834,13 @@ TextWriter sw = Console.Out;
public void FtpScheme ()
{
// user, password, custom port and a "query"
- Uri uri = new Uri ("ftp://user:password@ftp.mono-project.com:2121/mono.zip?latest-n-greatest");
+ Uri uri = new Uri ("ftp://user:password@ftp.example.com:2121/mono.zip?latest-n-greatest");
Assert.AreEqual ("/mono.zip%3Flatest-n-greatest", uri.AbsolutePath, "AbsolutePath");
- Assert.AreEqual ("ftp://user:password@ftp.mono-project.com:2121/mono.zip%3Flatest-n-greatest", uri.AbsoluteUri, "AbsoluteUri");
- Assert.AreEqual ("ftp.mono-project.com:2121", uri.Authority, "Authority");
- Assert.AreEqual ("ftp.mono-project.com", uri.DnsSafeHost, "DnsSafeHost");
+ Assert.AreEqual ("ftp://user:password@ftp.example.com:2121/mono.zip%3Flatest-n-greatest", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("ftp.example.com:2121", uri.Authority, "Authority");
+ Assert.AreEqual ("ftp.example.com", uri.DnsSafeHost, "DnsSafeHost");
Assert.AreEqual (String.Empty, uri.Fragment, "Fragment");
- Assert.AreEqual ("ftp.mono-project.com", uri.Host, "Host");
+ Assert.AreEqual ("ftp.example.com", uri.Host, "Host");
Assert.AreEqual (UriHostNameType.Dns, uri.HostNameType, "HostNameType");
Assert.IsTrue (uri.IsAbsoluteUri, "IsAbsoluteUri");
Assert.IsFalse (uri.IsDefaultPort, "IsDefaultPort");
@@ -848,7 +848,7 @@ TextWriter sw = Console.Out;
Assert.IsFalse (uri.IsLoopback, "IsLoopback");
Assert.IsFalse (uri.IsUnc, "IsUnc");
Assert.AreEqual ("/mono.zip?latest-n-greatest", uri.LocalPath, "LocalPath");
- Assert.AreEqual ("ftp://user:password@ftp.mono-project.com:2121/mono.zip?latest-n-greatest", uri.OriginalString, "OriginalString");
+ Assert.AreEqual ("ftp://user:password@ftp.example.com:2121/mono.zip?latest-n-greatest", uri.OriginalString, "OriginalString");
Assert.AreEqual ("/mono.zip%3Flatest-n-greatest", uri.PathAndQuery, "PathAndQuery");
Assert.AreEqual (2121, uri.Port, "Port");
Assert.AreEqual (String.Empty, uri.Query, "Query");
@@ -859,7 +859,7 @@ TextWriter sw = Console.Out;
Assert.AreEqual ("user:password", uri.UserInfo, "UserInfo");
// special characters and fragment
- uri = new Uri ("ftp://ftp.mono-project.com/<>%\"{}|\\^`;/?:@&=+$,[]#abc");
+ uri = new Uri ("ftp://ftp.example.com/<>%\"{}|\\^`;/?:@&=+$,[]#abc");
Assert.AreEqual ("#abc", uri.Fragment, "Special/Fragment");
if (IriParsing)
Assert.AreEqual ("/%3C%3E%25%22%7B%7D%7C/%5E%60;/%3F:@&=+$,[]", uri.AbsolutePath, "Special");
@@ -1094,24 +1094,24 @@ TextWriter sw = Console.Out;
Uri abs = new Uri ("http://novell.com", UriKind.Absolute);
// note: invalid scheme
- string srel = "http@ftp://mono-project.com/dir/file";
+ string srel = "http@ftp://example.com/dir/file";
Uri uri = new Uri (abs, srel);
- Assert.AreEqual ("http://novell.com/http@ftp://mono-project.com/dir/file", uri.ToString (), "1.ToString");
+ Assert.AreEqual ("http://novell.com/http@ftp://example.com/dir/file", uri.ToString (), "1.ToString");
Uri rel = new Uri (srel, UriKind.Relative);
- Assert.AreEqual ("http@ftp://mono-project.com/dir/file", rel.ToString (), "2.ToString");
+ Assert.AreEqual ("http@ftp://example.com/dir/file", rel.ToString (), "2.ToString");
uri = new Uri (abs, rel);
- Assert.AreEqual ("http://novell.com/http@ftp://mono-project.com/dir/file", uri.ToString (), "3.ToString");
+ Assert.AreEqual ("http://novell.com/http@ftp://example.com/dir/file", uri.ToString (), "3.ToString");
}
[Test]
public void EmptyUserInfo ()
{
- Uri uri = new Uri ("http://@www.mono-project.com");
- Assert.AreEqual ("http://@www.mono-project.com/", uri.AbsoluteUri, "AbsoluteUri");
- Assert.AreEqual ("http://@www.mono-project.com", uri.GetLeftPart (UriPartial.Authority), "UriPartial.Authority");
- Assert.AreEqual ("http://@www.mono-project.com/", uri.GetLeftPart (UriPartial.Path), "UriPartial.Path");
+ Uri uri = new Uri ("http://@www.example.com");
+ Assert.AreEqual ("http://@www.example.com/", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("http://@www.example.com", uri.GetLeftPart (UriPartial.Authority), "UriPartial.Authority");
+ Assert.AreEqual ("http://@www.example.com/", uri.GetLeftPart (UriPartial.Path), "UriPartial.Path");
Assert.AreEqual (String.Empty, uri.UserInfo, "UserInfo");
}
@@ -1140,16 +1140,16 @@ TextWriter sw = Console.Out;
[Test]
public void OriginalPathEscaped ()
{
- Uri uri = new Uri ("http://www.mono-project.com/%41/%42/%43", UriKind.Absolute);
+ Uri uri = new Uri ("http://www.example.com/%41/%42/%43", UriKind.Absolute);
Assert.AreEqual ("/A/B/C", uri.LocalPath, "LocalPath");
if (IriParsing) {
- Assert.AreEqual ("http://www.mono-project.com/A/B/C", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("http://www.example.com/A/B/C", uri.AbsoluteUri, "AbsoluteUri");
Assert.AreEqual ("/A/B/C", uri.AbsolutePath, "AbsolutePath");
- Assert.AreEqual ("http://www.mono-project.com/A/B/C", uri.GetLeftPart (UriPartial.Path), "GetLeftPart(Path)");
+ Assert.AreEqual ("http://www.example.com/A/B/C", uri.GetLeftPart (UriPartial.Path), "GetLeftPart(Path)");
} else {
- Assert.AreEqual ("http://www.mono-project.com/%41/%42/%43", uri.AbsoluteUri, "AbsoluteUri");
+ Assert.AreEqual ("http://www.example.com/%41/%42/%43", uri.AbsoluteUri, "AbsoluteUri");
Assert.AreEqual ("/%41/%42/%43", uri.AbsolutePath, "AbsolutePath");
- Assert.AreEqual ("http://www.mono-project.com/%41/%42/%43", uri.GetLeftPart (UriPartial.Path), "GetLeftPart(Path)");
+ Assert.AreEqual ("http://www.example.com/%41/%42/%43", uri.GetLeftPart (UriPartial.Path), "GetLeftPart(Path)");
}
}
@@ -1157,8 +1157,8 @@ TextWriter sw = Console.Out;
public void CheckHostName ()
{
Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("host;machine"), "CheckHostName ;");
- Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www..mono-project.com"), "CheckHostName ..");
- Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www.mono-project.com\\"), "CheckHostName \\");
+ Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www..example.com"), "CheckHostName ..");
+ Assert.AreEqual (UriHostNameType.Unknown, Uri.CheckHostName ("www.example.com\\"), "CheckHostName \\");
}
[Test]
diff --git a/mcs/class/System/Test/System/UriTest3.cs b/mcs/class/System/Test/System/UriTest3.cs
index f83ec1c62d1..f5ac7a54cbd 100644
--- a/mcs/class/System/Test/System/UriTest3.cs
+++ b/mcs/class/System/Test/System/UriTest3.cs
@@ -35,7 +35,7 @@ namespace MonoTests.System
[TestFixture]
public class UriTest3
{
- private const string absolute = "http://www.mono-project.com/CAS";
+ private const string absolute = "http://www.example.com/CAS";
private const string relative = "server.com/directory/";
[Test] // .ctor (String, UriKind)
@@ -92,7 +92,7 @@ namespace MonoTests.System
public void Absolute_UriKind_Absolute ()
{
Uri uri = new Uri (absolute, UriKind.Absolute);
- Assert.AreEqual ("www.mono-project.com", uri.DnsSafeHost, "#1");
+ Assert.AreEqual ("www.example.com", uri.DnsSafeHost, "#1");
Assert.IsTrue (uri.IsAbsoluteUri, "#2");
Assert.AreEqual (absolute, uri.OriginalString, "#3");
Assert.AreEqual (absolute, uri.ToString (), "#4");
@@ -182,10 +182,10 @@ namespace MonoTests.System
Assert.IsTrue (Uri.TryCreate (relative, UriKind.Relative, out uri), "relative-Relative");
Assert.AreEqual (relative, uri.OriginalString, "relative-RelativeOrAbsolute-OriginalString");
- Assert.IsTrue (Uri.TryCreate ("http://mono-project.com/☕", UriKind.Absolute, out uri), "highunicode-Absolute");
- Assert.AreEqual("http://mono-project.com/%E2%98%95", uri.AbsoluteUri, "highunicode-Absolute-AbsoluteUri");
+ Assert.IsTrue (Uri.TryCreate ("http://example.com/☕", UriKind.Absolute, out uri), "highunicode-Absolute");
+ Assert.AreEqual("http://example.com/%E2%98%95", uri.AbsoluteUri, "highunicode-Absolute-AbsoluteUri");
- string mixedCaseUri = "http://mOnO-proJECT.com";
+ string mixedCaseUri = "http://eXaMpLe.com";
uri = new Uri (mixedCaseUri);
Uri uri2;
Assert.IsTrue (Uri.TryCreate (mixedCaseUri, UriKind.Absolute, out uri2), "mixedcasehost-absolute");
@@ -227,8 +227,8 @@ namespace MonoTests.System
uri = new Uri ("http://dummy.com");
Assert.IsTrue (Uri.TryCreate (baseUri, relative, out uri), "baseUri+relative");
- Assert.AreEqual ("http://www.mono-project.com/server.com/directory/", uri.AbsoluteUri, "baseUri+relative+AbsoluteUri");
- Assert.AreEqual ("http://www.mono-project.com/server.com/directory/", uri.OriginalString, "baseUri+relative+OriginalString");
+ Assert.AreEqual ("http://www.example.com/server.com/directory/", uri.AbsoluteUri, "baseUri+relative+AbsoluteUri");
+ Assert.AreEqual ("http://www.example.com/server.com/directory/", uri.OriginalString, "baseUri+relative+OriginalString");
uri = new Uri ("http://dummy.com");
Assert.IsTrue (Uri.TryCreate (baseUri, absolute, out uri), "baseUri+absolute");
@@ -267,8 +267,8 @@ namespace MonoTests.System
uri = new Uri ("http://dummy.com");
Assert.IsTrue (Uri.TryCreate (baseUri, relativeUri, out uri), "baseUri+relativeUri");
- Assert.AreEqual ("http://www.mono-project.com/server.com/directory/", uri.AbsoluteUri, "baseUri+relativeUri+AbsoluteUri");
- Assert.AreEqual ("http://www.mono-project.com/server.com/directory/", uri.OriginalString, "baseUri+relativeUri+OriginalString");
+ Assert.AreEqual ("http://www.example.com/server.com/directory/", uri.AbsoluteUri, "baseUri+relativeUri+AbsoluteUri");
+ Assert.AreEqual ("http://www.example.com/server.com/directory/", uri.OriginalString, "baseUri+relativeUri+OriginalString");
uri = new Uri ("http://dummy.com");
Assert.IsTrue (Uri.TryCreate (baseUri, baseUri, out uri), "baseUri+baseUri");
@@ -307,11 +307,11 @@ namespace MonoTests.System
[Test]
public void IsWellFormedUriString ()
{
- Assert.IsFalse (Uri.IsWellFormedUriString ("http://www.go-mono.com/Main Page", UriKind.Absolute), "http/space");
- Assert.IsTrue (Uri.IsWellFormedUriString ("http://www.go-mono.com/Main%20Page", UriKind.Absolute), "http/%20");
+ Assert.IsFalse (Uri.IsWellFormedUriString ("http://www.example.com/Main Page", UriKind.Absolute), "http/space");
+ Assert.IsTrue (Uri.IsWellFormedUriString ("http://www.example.com/Main%20Page", UriKind.Absolute), "http/%20");
Assert.IsFalse (Uri.IsWellFormedUriString (null, UriKind.Absolute), "null");
Assert.IsFalse (Uri.IsWellFormedUriString ("data", UriKind.Absolute), "data");
- Assert.IsTrue (Uri.IsWellFormedUriString ("http://www.go-mono.com/Main_Page#1", UriKind.Absolute), "http/hex");
+ Assert.IsTrue (Uri.IsWellFormedUriString ("http://www.example.com/Main_Page#1", UriKind.Absolute), "http/hex");
Assert.IsTrue (Uri.IsWellFormedUriString ("test", UriKind.RelativeOrAbsolute), "rel1");
Assert.IsTrue (Uri.IsWellFormedUriString ("/test", UriKind.RelativeOrAbsolute), "rel2");
}
@@ -320,7 +320,7 @@ namespace MonoTests.System
public void IsWellFormedUriString_UriKind_Invalid ()
{
try {
- Uri.IsWellFormedUriString ("http://www.go-mono.com/Main Page",
+ Uri.IsWellFormedUriString ("http://www.example.com/Main Page",
(UriKind) 666);
Assert.Fail ("#1");
} catch (ArgumentException ex) {
@@ -342,15 +342,15 @@ namespace MonoTests.System
Uri u2 = null;
Assert.AreEqual (0, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.UriEscaped, StringComparison.CurrentCulture), "null-null");
- u1 = new Uri ("http://www.go-mono.com");
+ u1 = new Uri ("http://www.example.com");
Assert.AreEqual (1, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.UriEscaped, StringComparison.CurrentCulture), "non-null - null");
u1 = null;
- u2 = new Uri ("http://www.go-mono.com");
+ u2 = new Uri ("http://www.example.com");
Assert.AreEqual (-1, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.UriEscaped, StringComparison.CurrentCulture), "null - non-null");
- u1 = new Uri ("http://www.go-mono.com/Main Page");
- u2 = new Uri ("http://www.go-mono.com/Main%20Page");
+ u1 = new Uri ("http://www.example.com/Main Page");
+ u2 = new Uri ("http://www.example.com/Main%20Page");
Assert.AreEqual (0, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.Unescaped, StringComparison.CurrentCulture), "http/space-http/%20-unescaped");
Assert.AreEqual (0, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.UriEscaped, StringComparison.CurrentCulture), "http/space-http/%20-escaped");
Assert.AreEqual (0, Uri.Compare (u1, u2, UriComponents.AbsoluteUri, UriFormat.SafeUnescaped, StringComparison.CurrentCulture), "http/space-http/%20-safe");
@@ -359,62 +359,62 @@ namespace MonoTests.System
[Test]
public void IsBaseOf ()
{
- Uri http = new Uri ("http://www.mono-project.com/Main_Page#FAQ?Edit");
+ Uri http = new Uri ("http://www.example.com/Main_Page#FAQ?Edit");
Assert.IsTrue (http.IsBaseOf (http), "http-http");
- Uri u = new Uri ("http://www.mono-project.com/Main_Page#FAQ");
+ Uri u = new Uri ("http://www.example.com/Main_Page#FAQ");
Assert.IsTrue (u.IsBaseOf (http), "http-1a");
Assert.IsTrue (http.IsBaseOf (u), "http-1b");
- u = new Uri ("http://www.mono-project.com/Main_Page");
+ u = new Uri ("http://www.example.com/Main_Page");
Assert.IsTrue (u.IsBaseOf (http), "http-2a");
Assert.IsTrue (http.IsBaseOf (u), "http-2b");
- u = new Uri ("http://www.mono-project.com/");
+ u = new Uri ("http://www.example.com/");
Assert.IsTrue (u.IsBaseOf (http), "http-3a");
Assert.IsTrue (http.IsBaseOf (u), "http-3b");
- u = new Uri ("http://www.mono-project.com/Main_Page/");
+ u = new Uri ("http://www.example.com/Main_Page/");
Assert.IsFalse (u.IsBaseOf (http), "http-4a");
Assert.IsTrue (http.IsBaseOf (u), "http-4b");
// docs says the UserInfo isn't evaluated, but...
- u = new Uri ("http://username:password@www.mono-project.com/Main_Page");
+ u = new Uri ("http://username:password@www.example.com/Main_Page");
Assert.IsFalse (u.IsBaseOf (http), "http-5a");
Assert.IsFalse (http.IsBaseOf (u), "http-5b");
// scheme case sensitive ? no
- u = new Uri ("HTTP://www.mono-project.com/Main_Page");
+ u = new Uri ("HTTP://www.example.com/Main_Page");
Assert.IsTrue (u.IsBaseOf (http), "http-6a");
Assert.IsTrue (http.IsBaseOf (u), "http-6b");
// host case sensitive ? no
- u = new Uri ("http://www.Mono-Project.com/Main_Page");
+ u = new Uri ("http://www.example.com/Main_Page");
Assert.IsTrue (u.IsBaseOf (http), "http-7a");
Assert.IsTrue (http.IsBaseOf (u), "http-7b");
// path case sensitive ? no
- u = new Uri ("http://www.Mono-Project.com/MAIN_Page");
+ u = new Uri ("http://www.example.com/MAIN_Page");
Assert.IsTrue (u.IsBaseOf (http), "http-8a");
Assert.IsTrue (http.IsBaseOf (u), "http-8b");
// different scheme
- u = new Uri ("ftp://www.mono-project.com/Main_Page");
+ u = new Uri ("ftp://www.example.com/Main_Page");
Assert.IsFalse (u.IsBaseOf (http), "http-9a");
Assert.IsFalse (http.IsBaseOf (u), "http-9b");
// different host
- u = new Uri ("http://www.go-mono.com/Main_Page");
+ u = new Uri ("http://www.example.org/Main_Page");
Assert.IsFalse (u.IsBaseOf (http), "http-10a");
Assert.IsFalse (http.IsBaseOf (u), "http-10b");
// different port
- u = new Uri ("http://www.mono-project.com:8080/");
+ u = new Uri ("http://www.example.com:8080/");
Assert.IsFalse (u.IsBaseOf (http), "http-11a");
Assert.IsFalse (http.IsBaseOf (u), "http-11b");
// specify default port
- u = new Uri ("http://www.mono-project.com:80/");
+ u = new Uri ("http://www.example.com:80/");
Assert.IsTrue (u.IsBaseOf (http), "http-12a");
Assert.IsTrue (http.IsBaseOf (u), "http-12b");
}
@@ -422,7 +422,7 @@ namespace MonoTests.System
[Test]
public void IsBaseOf_Null ()
{
- Uri http = new Uri ("http://www.mono-project.com/Main_Page#FAQ?Edit");
+ Uri http = new Uri ("http://www.example.com/Main_Page#FAQ?Edit");
try {
http.IsBaseOf (null);
Assert.Fail ();
@@ -557,27 +557,27 @@ namespace MonoTests.System
[Test] // LAMESPEC: see bug #321113
public void OriginalStringRelative ()
{
- Uri k1 = new Uri ("http://www.mono-project.com");
+ Uri k1 = new Uri ("http://www.example.com");
Uri k2 = new Uri (k1, "docs");
- Assert.AreEqual ("http://www.mono-project.com/docs", k2.OriginalString, "#1");
+ Assert.AreEqual ("http://www.example.com/docs", k2.OriginalString, "#1");
- Uri a = new Uri ("http://www.mono-project.com:808/foo");
+ Uri a = new Uri ("http://www.example.com:808/foo");
Uri b = new Uri (a, "../docs?queryyy#% %20%23%25bar");
- Assert.AreEqual ("http://www.mono-project.com:808/docs?queryyy#% %20%23%25bar", b.OriginalString, "#2");
+ Assert.AreEqual ("http://www.example.com:808/docs?queryyy#% %20%23%25bar", b.OriginalString, "#2");
- Uri c = new Uri ("http://www.mono-project.com:808/foo");
+ Uri c = new Uri ("http://www.example.com:808/foo");
Uri d = new Uri (a, "../docs?queryyy#%20%23%25bar");
- Assert.AreEqual ("http://www.mono-project.com:808/docs?queryyy#%20%23%25bar", d.OriginalString, "#3");
+ Assert.AreEqual ("http://www.example.com:808/docs?queryyy#%20%23%25bar", d.OriginalString, "#3");
- Uri e = new Uri ("http://www.mono-project.com:909");
- Uri f = new Uri (e, "http://www.mono-project.com:606/docs");
- Assert.AreEqual ("http://www.mono-project.com:606/docs", f.OriginalString, "#4");
+ Uri e = new Uri ("http://www.example.com:909");
+ Uri f = new Uri (e, "http://www.example.com:606/docs");
+ Assert.AreEqual ("http://www.example.com:606/docs", f.OriginalString, "#4");
- Uri g = new Uri ("http://www.mono-project.com:303/foo");
+ Uri g = new Uri ("http://www.example.com:303/foo");
Uri h = new Uri (g, "?query");
// it doesn't work. MS.NET also returns incorrect URI: ..303/?query
// https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=412604
- //Assert.AreEqual ("http://www.mono-project.com:303/foo?query", h.OriginalString, "#5");
+ //Assert.AreEqual ("http://www.example.com:303/foo?query", h.OriginalString, "#5");
}
[Test]
diff --git a/mcs/class/System/Test/System/UriTypeConverterTest.cs b/mcs/class/System/Test/System/UriTypeConverterTest.cs
index c444a7916f0..ce5371439b8 100644
--- a/mcs/class/System/Test/System/UriTypeConverterTest.cs
+++ b/mcs/class/System/Test/System/UriTypeConverterTest.cs
@@ -70,7 +70,7 @@ namespace MonoTests.System {
[TestFixture]
public class UriTypeConverterTest {
- private const string url = "http://www.mono-project.com/";
+ private const string url = "http://www.example.com/";
private static Uri uri = new Uri (url);
private UriTypeConverter converter;
diff --git a/mcs/class/System/Test/System/test-uri-relative-props.txt b/mcs/class/System/Test/System/test-uri-relative-props.txt
index 0bf6c10a596..a8897d53239 100644
--- a/mcs/class/System/Test/System/test-uri-relative-props.txt
+++ b/mcs/class/System/Test/System/test-uri-relative-props.txt
@@ -1,9 +1,9 @@
-------------------------
server
-http://www.go-mono.com/server
-http://www.go-mono.com/server
+http://www.example.com/server
+http://www.example.com/server
http
-www.go-mono.com
+www.example.com
/server
80
@@ -14,15 +14,15 @@ False
Dns
/server
/server
-www.go-mono.com
+www.example.com
-------------------------
server/
-http://www.go-mono.com/server/
-http://www.go-mono.com/server/
+http://www.example.com/server/
+http://www.example.com/server/
http
-www.go-mono.com
+www.example.com
/server/
80
@@ -33,15 +33,15 @@ False
Dns
/server/
/server/
-www.go-mono.com
+www.example.com
-------------------------
server/maybe_file
-http://www.go-mono.com/server/maybe_file
-http://www.go-mono.com/server/maybe_file
+http://www.example.com/server/maybe_file
+http://www.example.com/server/maybe_file
http
-www.go-mono.com
+www.example.com
/server/maybe_file
80
@@ -52,15 +52,15 @@ False
Dns
/server/maybe_file
/server/maybe_file
-www.go-mono.com
+www.example.com
-------------------------
server/directory/
-http://www.go-mono.com/server/directory/
-http://www.go-mono.com/server/directory/
+http://www.example.com/server/directory/
+http://www.example.com/server/directory/
http
-www.go-mono.com
+www.example.com
/server/directory/
80
@@ -71,15 +71,15 @@ False
Dns
/server/directory/
/server/directory/
-www.go-mono.com
+www.example.com
-------------------------
server.com
-http://www.go-mono.com/server.com
-http://www.go-mono.com/server.com
+http://www.example.com/server.com
+http://www.example.com/server.com
http
-www.go-mono.com
+www.example.com
/server.com
80
@@ -90,15 +90,15 @@ False
Dns
/server.com
/server.com
-www.go-mono.com
+www.example.com
-------------------------
server.com/
-http://www.go-mono.com/server.com/
-http://www.go-mono.com/server.com/
+http://www.example.com/server.com/
+http://www.example.com/server.com/
http
-www.go-mono.com
+www.example.com
/server.com/
80
@@ -109,15 +109,15 @@ False
Dns
/server.com/
/server.com/
-www.go-mono.com
+www.example.com
-------------------------
server.com/maybe_file
-http://www.go-mono.com/server.com/maybe_file
-http://www.go-mono.com/server.com/maybe_file
+http://www.example.com/server.com/maybe_file
+http://www.example.com/server.com/maybe_file
http
-www.go-mono.com
+www.example.com
/server.com/maybe_file
80
@@ -128,15 +128,15 @@ False
Dns
/server.com/maybe_file
/server.com/maybe_file
-www.go-mono.com
+www.example.com
-------------------------
server.com/directory/
-http://www.go-mono.com/server.com/directory/
-http://www.go-mono.com/server.com/directory/
+http://www.example.com/server.com/directory/
+http://www.example.com/server.com/directory/
http
-www.go-mono.com
+www.example.com
/server.com/directory/
80
@@ -147,7 +147,7 @@ False
Dns
/server.com/directory/
/server.com/directory/
-www.go-mono.com
+www.example.com
-------------------------
@@ -228,10 +228,10 @@ server
-------------------------
server
-http://www.go-mono.com/server
-http://www.go-mono.com/server
+http://www.example.com/server
+http://www.example.com/server
http
-www.go-mono.com
+www.example.com
/server
80
@@ -242,15 +242,15 @@ False
Dns
/server
/server
-www.go-mono.com
+www.example.com
-------------------------
server/
-http://www.go-mono.com/server/
-http://www.go-mono.com/server/
+http://www.example.com/server/
+http://www.example.com/server/
http
-www.go-mono.com
+www.example.com
/server/
80
@@ -261,15 +261,15 @@ False
Dns
/server/
/server/
-www.go-mono.com
+www.example.com
-------------------------
server/maybe_file
-http://www.go-mono.com/server/maybe_file
-http://www.go-mono.com/server/maybe_file
+http://www.example.com/server/maybe_file
+http://www.example.com/server/maybe_file
http
-www.go-mono.com
+www.example.com
/server/maybe_file
80
@@ -280,15 +280,15 @@ False
Dns
/server/maybe_file
/server/maybe_file
-www.go-mono.com
+www.example.com
-------------------------
server/directory/
-http://www.go-mono.com/server/directory/
-http://www.go-mono.com/server/directory/
+http://www.example.com/server/directory/
+http://www.example.com/server/directory/
http
-www.go-mono.com
+www.example.com
/server/directory/
80
@@ -299,15 +299,15 @@ False
Dns
/server/directory/
/server/directory/
-www.go-mono.com
+www.example.com
-------------------------
server.com
-http://www.go-mono.com/server.com
-http://www.go-mono.com/server.com
+http://www.example.com/server.com
+http://www.example.com/server.com
http
-www.go-mono.com
+www.example.com
/server.com
80
@@ -318,15 +318,15 @@ False
Dns
/server.com
/server.com
-www.go-mono.com
+www.example.com
-------------------------
readme.txt
-http://www.go-mono.com/readme.txt
-http://www.go-mono.com/readme.txt
+http://www.example.com/readme.txt
+http://www.example.com/readme.txt
http
-www.go-mono.com
+www.example.com
/readme.txt
80
@@ -337,15 +337,15 @@ False
Dns
/readme.txt
/readme.txt
-www.go-mono.com
+www.example.com
-------------------------
server.com/
-http://www.go-mono.com/server.com/
-http://www.go-mono.com/server.com/
+http://www.example.com/server.com/
+http://www.example.com/server.com/
http
-www.go-mono.com
+www.example.com
/server.com/
80
@@ -356,15 +356,15 @@ False
Dns
/server.com/
/server.com/
-www.go-mono.com
+www.example.com
-------------------------
server.com/maybe_file
-http://www.go-mono.com/server.com/maybe_file
-http://www.go-mono.com/server.com/maybe_file
+http://www.example.com/server.com/maybe_file
+http://www.example.com/server.com/maybe_file
http
-www.go-mono.com
+www.example.com
/server.com/maybe_file
80
@@ -375,15 +375,15 @@ False
Dns
/server.com/maybe_file
/server.com/maybe_file
-www.go-mono.com
+www.example.com
-------------------------
server.com/directory/
-http://www.go-mono.com/server.com/directory/
-http://www.go-mono.com/server.com/directory/
+http://www.example.com/server.com/directory/
+http://www.example.com/server.com/directory/
http
-www.go-mono.com
+www.example.com
/server.com/directory/
80
@@ -394,15 +394,15 @@ False
Dns
/server.com/directory/
/server.com/directory/
-www.go-mono.com
+www.example.com
-------------------------
contoso.com?subject=uri
-http://www.go-mono.com/contoso.com?subject=uri
-http://www.go-mono.com/contoso.com?subject=uri
+http://www.example.com/contoso.com?subject=uri
+http://www.example.com/contoso.com?subject=uri
http
-www.go-mono.com
+www.example.com
/contoso.com
?subject=uri
80
@@ -413,7 +413,7 @@ False
Dns
/contoso.com
/contoso.com?subject=uri
-www.go-mono.com
+www.example.com
-------------------------
@@ -456,10 +456,10 @@ myserver
-------------------------
www.contoso.com
-http://www.go-mono.com/www.contoso.com
-http://www.go-mono.com/www.contoso.com
+http://www.example.com/www.contoso.com
+http://www.example.com/www.contoso.com
http
-www.go-mono.com
+www.example.com
/www.contoso.com
80
@@ -470,15 +470,15 @@ False
Dns
/www.contoso.com
/www.contoso.com
-www.go-mono.com
+www.example.com
-------------------------
www.contoso.com/foo/bar/index.html?x=0
-http://www.go-mono.com/www.contoso.com/foo/bar/index.html?x=0
-http://www.go-mono.com/www.contoso.com/foo/bar/index.html?x=0
+http://www.example.com/www.contoso.com/foo/bar/index.html?x=0
+http://www.example.com/www.contoso.com/foo/bar/index.html?x=0
http
-www.go-mono.com
+www.example.com
/www.contoso.com/foo/bar/index.html
?x=0
80
@@ -489,7 +489,7 @@ False
Dns
/www.contoso.com/foo/bar/index.html
/www.contoso.com/foo/bar/index.html?x=0
-www.go-mono.com
+www.example.com
-------------------------
@@ -513,10 +513,10 @@ c:/tmp/hello.txt
-------------------------
mymachine/cygwin/tmp/hello.txt
-http://www.go-mono.com/mymachine/cygwin/tmp/hello.txt
-http://www.go-mono.com/mymachine/cygwin/tmp/hello.txt
+http://www.example.com/mymachine/cygwin/tmp/hello.txt
+http://www.example.com/mymachine/cygwin/tmp/hello.txt
http
-www.go-mono.com
+www.example.com
/mymachine/cygwin/tmp/hello.txt
80
@@ -527,15 +527,15 @@ False
Dns
/mymachine/cygwin/tmp/hello.txt
/mymachine/cygwin/tmp/hello.txt
-www.go-mono.com
+www.example.com
-------------------------
one_file.txt
-http://www.go-mono.com/one_file.txt
-http://www.go-mono.com/one_file.txt
+http://www.example.com/one_file.txt
+http://www.example.com/one_file.txt
http
-www.go-mono.com
+www.example.com
/one_file.txt
80
@@ -546,15 +546,15 @@ False
Dns
/one_file.txt
/one_file.txt
-www.go-mono.com
+www.example.com
-------------------------
cygwin/tmp/hello.txt
-http://www.go-mono.com/cygwin/tmp/hello.txt
-http://www.go-mono.com/cygwin/tmp/hello.txt
+http://www.example.com/cygwin/tmp/hello.txt
+http://www.example.com/cygwin/tmp/hello.txt
http
-www.go-mono.com
+www.example.com
/cygwin/tmp/hello.txt
80
@@ -565,15 +565,15 @@ False
Dns
/cygwin/tmp/hello.txt
/cygwin/tmp/hello.txt
-www.go-mono.com
+www.example.com
-------------------------
server/filename.ext
-http://www.go-mono.com/server/filename.ext
-http://www.go-mono.com/server/filename.ext
+http://www.example.com/server/filename.ext
+http://www.example.com/server/filename.ext
http
-www.go-mono.com
+www.example.com
/server/filename.ext
80
@@ -584,7 +584,7 @@ False
Dns
/server/filename.ext
/server/filename.ext
-www.go-mono.com
+www.example.com
-------------------------
@@ -608,10 +608,10 @@ server
-------------------------
1.2.3.4
-http://www.go-mono.com/1.2.3.4
-http://www.go-mono.com/1.2.3.4
+http://www.example.com/1.2.3.4
+http://www.example.com/1.2.3.4
http
-www.go-mono.com
+www.example.com
/1.2.3.4
80
@@ -622,15 +622,15 @@ False
Dns
/1.2.3.4
/1.2.3.4
-www.go-mono.com
+www.example.com
-------------------------
1.2.3.4
-http://www.go-mono.com/1.2.3.4
-http://www.go-mono.com/1.2.3.4
+http://www.example.com/1.2.3.4
+http://www.example.com/1.2.3.4
http
-www.go-mono.com
+www.example.com
/1.2.3.4
80
@@ -641,15 +641,15 @@ False
Dns
/1.2.3.4
/1.2.3.4
-www.go-mono.com
+www.example.com
-------------------------
localhost/c#
-http://www.go-mono.com/localhost/c#
-http://www.go-mono.com/localhost/c#
+http://www.example.com/localhost/c#
+http://www.example.com/localhost/c#
http
-www.go-mono.com
+www.example.com
/localhost/c
80
@@ -660,15 +660,15 @@ False
Dns
/localhost/c
/localhost/c
-www.go-mono.com
+www.example.com
#
-------------------------
localhost/c#bookmark
-http://www.go-mono.com/localhost/c#bookmark
-http://www.go-mono.com/localhost/c#bookmark
+http://www.example.com/localhost/c#bookmark
+http://www.example.com/localhost/c#bookmark
http
-www.go-mono.com
+www.example.com
/localhost/c
80
@@ -679,15 +679,15 @@ False
Dns
/localhost/c
/localhost/c
-www.go-mono.com
+www.example.com
#bookmark
-------------------------
localhost/c#
-http://www.go-mono.com/localhost/c#
-http://www.go-mono.com/localhost/c#
+http://www.example.com/localhost/c#
+http://www.example.com/localhost/c#
http
-www.go-mono.com
+www.example.com
/localhost/c
80
@@ -698,15 +698,15 @@ False
Dns
/localhost/c
/localhost/c
-www.go-mono.com
+www.example.com
#
-------------------------
c#
-http://www.go-mono.com/c#
-http://www.go-mono.com/c#
+http://www.example.com/c#
+http://www.example.com/c#
http
-www.go-mono.com
+www.example.com
/c
80
@@ -717,7 +717,7 @@ False
Dns
/c
/c
-www.go-mono.com
+www.example.com
#
-------------------------
@@ -741,10 +741,10 @@ c
-------------------------
c#bookmark
-http://www.go-mono.com/c#bookmark
-http://www.go-mono.com/c#bookmark
+http://www.example.com/c#bookmark
+http://www.example.com/c#bookmark
http
-www.go-mono.com
+www.example.com
/c
80
@@ -755,7 +755,7 @@ False
Dns
/c
/c
-www.go-mono.com
+www.example.com
#bookmark
-------------------------
@@ -874,10 +874,10 @@ cn_to_ja
-------------------------
web.app.com/test.cgi?value=あいうえお
-http://www.go-mono.com/web.app.com/test.cgi?value=あいうえお
-http://www.go-mono.com/web.app.com/test.cgi?value=%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A
+http://www.example.com/web.app.com/test.cgi?value=あいうえお
+http://www.example.com/web.app.com/test.cgi?value=%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A
http
-www.go-mono.com
+www.example.com
/web.app.com/test.cgi
?value=%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A
80
@@ -888,7 +888,7 @@ False
Dns
/web.app.com/test.cgi
/web.app.com/test.cgi?value=%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A
-www.go-mono.com
+www.example.com
-------------------------
diff --git a/mcs/class/System/Test/System/uri-test-generator.cs b/mcs/class/System/Test/System/uri-test-generator.cs
index fe7bb2cc19a..a223d91f74f 100644
--- a/mcs/class/System/Test/System/uri-test-generator.cs
+++ b/mcs/class/System/Test/System/uri-test-generator.cs
@@ -26,7 +26,7 @@ namespace MonoTests.System
sr = new StreamReader ("test-uri-relative-list.txt", Encoding.UTF8);
sw = new StreamWriter ("test-uri-relative-props.txt", false, Encoding.UTF8);
- Uri baseUri = new Uri ("http://www.go-mono.com");
+ Uri baseUri = new Uri ("http://www.example.com");
GenerateResult (sr, sw, baseUri);
}