ServicePoint google = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com"));\r
try { \r
ServicePoint slashdot = ServicePointManager.FindServicePoint (new Uri ("http://www.slashdot.org"));\r
- Assertion.Fail ("#1");\r
+ Assert.Fail ("#1");\r
} catch (InvalidOperationException) { }\r
ServicePointManager.MaxServicePoints = 0;\r
\r
\r
//WriteServicePoint ("google after getting a response", google);\r
ServicePoint google2 = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com/dilbert.html"));\r
- Assertion.AssertEquals ("#equals", google, google2);\r
+ Assert.AreEqual (google, google2, "#equals");\r
res.Close ();\r
\r
// in both instances property CurrentConnections is 0 according to ms.net.\r
bool called = false;\r
#if !TARGET_JVM\r
sp.BindIPEndPointDelegate = delegate {\r
- Assertion.Assert(!called);\r
+ Assert.IsTrue (!called);\r
called = true;\r
return null;\r
};\r
#endif\r
req.GetResponse ().Close ();\r
\r
- Assertion.Assert (called);\r
+ Assert.IsTrue (called);\r
\r
req = (HttpWebRequest) WebRequest.Create (uri);\r
called = false;\r
#if !TARGET_JVM\r
sp.BindIPEndPointDelegate = delegate(ServicePoint point, IPEndPoint remote, int times) {\r
- Assertion.Assert(times < 5);\r
+ Assert.IsTrue (times < 5);\r
called = true;\r
return new IPEndPoint(IPAddress.Parse("0.0.0.0"), 12345 + times);\r
};\r
#endif\r
req.GetResponse ().Close ();\r
\r
- Assertion.Assert(called);\r
+ Assert.IsTrue (called);\r
}\r
#endif\r
\r