Imported Upstream version 4.6.0.125

Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-03 10:59:49 +00:00
parent a569aebcfd
commit e79aa3c0ed
17047 changed files with 3137615 additions and 392334 deletions

View File

@@ -1,35 +0,0 @@
2010-05-24 Atsushi Enomoto <atsushi@ximian.com>
* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
and reorganized some classes to make tests rational.
2009-10-08 Atsushi Enomoto <atsushi@ximian.com>
* JsonQueryStringConverterTest.cs : added some string deserialization
test. It just proved .NET is too lame.
2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
* JsonQueryStringConverterTest.cs : comment out one cosmetic case
that is not working under .NET.
2008-02-18 Atsushi Enomoto <atsushi@ximian.com>
* JsonQueryStringConverterTest.cs : new test.
2008-02-15 Atsushi Enomoto <atsushi@ximian.com>
* WebHttpDispatchOperationSelectorTest.cs : added couple more tests
with different contract contract case.
2008-02-15 Atsushi Enomoto <atsushi@ximian.com>
* WebHttpDispatchOperationSelectorTest.cs : new test.
2008-02-13 Atsushi Enomoto <atsushi@ximian.com>
* QueryStringConverterTest.cs : enable null-to-char conversion test.
2008-02-13 Atsushi Enomoto <atsushi@ximian.com>
* QueryStringConverterTest.cs : new test.

View File

@@ -39,6 +39,8 @@ using System.Text;
using System.Xml;
using NUnit.Framework;
using MonoTests.Helpers;
namespace MonoTests.System.ServiceModel.Dispatcher
{
[TestFixture]
@@ -257,12 +259,13 @@ namespace MonoTests.System.ServiceModel.Dispatcher
public void WebMessageFormats ()
{
var host = new WebServiceHost (typeof (Hello));
host.AddServiceEndpoint (typeof (IHello), new WebHttpBinding (), "http://localhost:37564/");
var port = NetworkHelpers.FindFreePort ();
host.AddServiceEndpoint (typeof (IHello), new WebHttpBinding (), "http://localhost:" + port + "/");
host.Description.Behaviors.Find<ServiceDebugBehavior> ().IncludeExceptionDetailInFaults = true;
host.Open ();
try {
// run client
using (ChannelFactory<IHello> factory = new ChannelFactory<IHello> (new WebHttpBinding (), "http://localhost:37564/"))
using (ChannelFactory<IHello> factory = new ChannelFactory<IHello> (new WebHttpBinding (), "http://localhost:" + port + "/"))
{
factory.Endpoint.Behaviors.Add (new WebHttpBehavior ());
IHello h = factory.CreateChannel ();