//Test for Bug 324362 - SoapFormatter cannot deserialize the same MBR twice
[TestFixture]
publicclassBug324362
{
[Test]
// [Category ("NotWorking")] // the assertion fails, and if it's removed, there's an exception
[Ignore ("This test somehow keeps http channel registered and then blocks any further http tests working. This also happens under .NET, so this test itself is wrong with nunit 2.4.8.")]
publicvoidTest()
{
newHttpChannel(8086);
RemotingServices.Marshal(newService(),"test");
ServiceremObj=(Service)RemotingServices.Connect(
typeof(Service),"http://localhost:8086/test");
ArrayListlist;
remObj.Test(outlist);
// it's of type 'ObjRef' instead of 'Service':
Assert.IsTrue(list[0]isService);
Service[]array;
remObj.Test(outarray);
}
publicclassService:MarshalByRefObject
{
publicServiceTest(outService[]a)
{
Serviceobj=newService();
a=newService[]{obj};
returnobj;
// return null or return otherObj works
}
publicServiceTest(outArrayLista)
{
a=newArrayList();
Serviceobj=newService();
a.Add(obj);
returnobj;
// return null or return otherObj works
}
}
}
//Bug 321420 - SoapReader fails to deserialize some method calls
//Bug 315570 - Remoting over HTTP fails when returning a null reference.
[TestFixture]
publicclassBug315570
{
Serverserver;
[Test]
[Ignore ("This test somehow keeps http channel registered and then blocks any further http tests working. This also happens under .NET, so this test itself is wrong with nunit 2.4.8.")]