Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
* ConnectionManagementSectionTest.cs,
WebRequestModulesSectionTest.cs : new tests.
2005-10-18 Gert Driesen <drieseng@users.sourceforge.net>
* HttpWebRequestElementTest.cs: Added test for default values.

View File

@@ -0,0 +1,61 @@
//
// ConnectionManagementSectionTest.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2006 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
#if !MOBILE
using System;
using System.Configuration;
using System.Net.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Net.Configuration
{
[TestFixture]
public class ConnectionManagementSectionTest
{
[Test]
public void GetConfigSection ()
{
object cfg = ConfigurationManager.GetSection ("system.net/connectionManagement");
Assert.IsTrue (cfg is ConnectionManagementSection, "config type was " + cfg);
}
/*
[Test]
public void CollectionCreateNewElement ()
{
Assert.IsTrue (new ConnectionManagementElementCollection ().CreateNewElement () is ConnectionManagementElement);
}
*/
}
}
#endif

View File

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

View File

@@ -0,0 +1,61 @@
//
// WebRequestModulesSectionTest.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2006 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
#if !MOBILE
using System;
using System.Configuration;
using System.Net.Configuration;
using NUnit.Framework;
namespace MonoTests.System.Net.Configuration
{
[TestFixture]
public class WebRequestModulesSectionTest
{
[Test]
public void GetConfigSection ()
{
object cfg = ConfigurationManager.GetSection ("system.net/webRequestModules");
Assert.IsTrue (cfg is WebRequestModulesSection, "section type was " + cfg);
}
/*
[Test]
public void CollectionCreateNewElement ()
{
Assert.IsTrue (new WebRequestModuleElementCollection ().CreateNewElement () is WebRequestModuleElement);
}
*/
}
}
#endif