mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
It was set by xamarin-macios when they were still taking the raw .cs source files but since we switched to prebuilt binaries we need to replace it with some define we're actually setting in Mono. Most cases can be replaced by just XAMMAC_4_5 since MOBILE is defined on the xammac profile.
35 lines
774 B
C#
35 lines
774 B
C#
//
|
|
// HttpWebRequestElementTest.cs - NUnit Test Cases for System.Net.Configuration.HttpWebRequestElement
|
|
//
|
|
// Authors:
|
|
// Gert Driesen ([email protected])
|
|
//
|
|
// (C) 2005 Novell
|
|
//
|
|
|
|
#if !MOBILE && !XAMMAC_4_5
|
|
|
|
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
|