Xamarin Public Jenkins (auto-signing) e5cd25ff4f Imported Upstream version 4.8.0.459
Former-commit-id: 2a5b9df2014f72665850c7f885e7aed54704a53a
2017-01-19 14:22:10 +00:00

35 lines
771 B
C#

//
// HttpWebRequestElementTest.cs - NUnit Test Cases for System.Net.Configuration.HttpWebRequestElement
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2005 Novell
//
#if !MOBILE && !MONOMAC
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