Files
mono/mcs/class/System.Runtime.Remoting/Test/HttpCalls.cs
T
Lluis Sanchez 4b0cc69ebc 2005-02-16 Lluis Sanchez Gual <[email protected]>
* HttpCalls.cs, TcpCalls.cs: Don't use a hardcoded port number for the
	test channels, take any free port.


svn path=/trunk/mcs/; revision=40774
2005-02-16 21:03:51 +00:00

68 lines
1.3 KiB
C#

//
// MonoTests.Remoting.HttpCalls.cs
//
// Author: Lluis Sanchez Gual ([email protected])
//
// 2003 (C) Copyright, Ximian, Inc.
//
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
using NUnit.Framework;
namespace MonoTests.Remoting
{
[TestFixture]
public class HttpSyncCallTest : SyncCallTest
{
public override ChannelManager CreateChannelManager ()
{
return new HttpChannelManager ();
}
}
[TestFixture]
public class HttpAsyncCallTest : AsyncCallTest
{
public override ChannelManager CreateChannelManager ()
{
return new HttpChannelManager ();
}
}
[TestFixture]
public class HttpReflectionCallTest : ReflectionCallTest
{
public override ChannelManager CreateChannelManager ()
{
return new HttpChannelManager ();
}
}
[TestFixture]
public class HttpDelegateCallTest : DelegateCallTest
{
public override ChannelManager CreateChannelManager ()
{
return new HttpChannelManager ();
}
}
[Serializable]
public class HttpChannelManager : ChannelManager
{
public override IChannelSender CreateClientChannel ()
{
return new HttpChannel ();
}
public override IChannelReceiver CreateServerChannel ()
{
return new HttpChannel (0);
}
}
}