You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
@ -46,16 +46,8 @@ namespace MonoTests.System.Net {
|
||||
[Test]
|
||||
public void SerializationConstructor ()
|
||||
{
|
||||
#if NET_2_0
|
||||
NonAbstractWebRequest w = new NonAbstractWebRequest (null, new StreamingContext ());
|
||||
Assert.IsNotNull (w);
|
||||
#else
|
||||
try {
|
||||
new NonAbstractWebRequest (null, new StreamingContext ());
|
||||
Assert.Fail ("#1");
|
||||
} catch (NotImplementedException) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// properties (only test 'get'ter)
|
||||
@ -207,10 +199,8 @@ namespace MonoTests.System.Net {
|
||||
Assert.IsTrue (req is HttpWebRequest, "#2");
|
||||
req = WebRequest.Create ("file://www.contoso.com");
|
||||
Assert.IsTrue (req is FileWebRequest, "#3");
|
||||
#if NET_2_0
|
||||
req = WebRequest.Create ("ftp://www.contoso.com");
|
||||
Assert.IsTrue (req is FtpWebRequest, "#4");
|
||||
#endif
|
||||
WebRequest.RegisterPrefix ("http://www.contoso.com", new TestWebRequestCreator ());
|
||||
bool ret = WebRequest.RegisterPrefix ("http://WWW.contoso.com", new TestWebRequestCreator ());
|
||||
Assert.AreEqual (false, ret, "#5a");
|
||||
@ -271,7 +261,6 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
}
|
||||
|
||||
#if NET_2_0
|
||||
[Test]
|
||||
public void DefaultWebProxy ()
|
||||
{
|
||||
@ -295,7 +284,6 @@ namespace MonoTests.System.Net {
|
||||
new Uri ("http://www.mono-project.com"));
|
||||
Assert.IsNull (req.Proxy, "#D");
|
||||
}
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
public void RegisterPrefix_Creator_Null ()
|
||||
|
Reference in New Issue
Block a user