2014-08-13 10:39:27 +01:00
|
|
|
//
|
|
|
|
// HttpWebRequestElementTest.cs - NUnit Test Cases for System.Net.Configuration.HttpWebRequestElement
|
|
|
|
//
|
|
|
|
// Authors:
|
|
|
|
// Gert Driesen (drieseng@users.sourceforge.net)
|
|
|
|
//
|
|
|
|
// (C) 2005 Novell
|
|
|
|
//
|
|
|
|
|
2017-01-19 14:22:10 +00:00
|
|
|
#if !MOBILE && !MONOMAC
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
using System.Net.Configuration;
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
namespace MonoTests.System.Net
|
|
|
|
{
|
|
|
|
[TestFixture]
|
|
|
|
public class HttpWebRequestElementTest
|
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void DefaultValues ()
|
|
|
|
{
|
|
|
|
HttpWebRequestElement element = new HttpWebRequestElement ();
|
|
|
|
|
|
|
|
Assert.AreEqual (64, element.MaximumErrorResponseLength, "#1");
|
|
|
|
Assert.AreEqual (64, element.MaximumResponseHeadersLength, "#2");
|
|
|
|
Assert.AreEqual (-1, element.MaximumUnauthorizedUploadLength, "#3");
|
|
|
|
Assert.AreEqual (false, element.UseUnsafeHeaderParsing, "#4");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|