Files
mono/mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/LogicalMethodInfoTest.cs
T
Gert Driesen 1a4b80bfb4 * LogicalMethodInfoTest.cs: Fixed namespace.
* WebClientProtocolTest.cs: Fixed namespace.
* SoapHttpClientProtocolTest.cs: Fixed namespace. Added test for
bug #81886.
* SoapServerTypeTest.cs: Fixed namespace.
* SocketResponder.cs: Sync with copy in System assembly.
* Fault.cs: In SOAP 1.1, the child elements of Fault may be unqualified.
Fixed FaultReader's ReadObject_Fault to only process either unqualified
elements or elements in the SOAP 1.1 namespace, hereby fixing part of 
bug #81886 where an unqualified detail element was not processed. In 
FaultWriter, write unqualified detail element. Fixes second part of 
bug #81886.

svn path=/trunk/mcs/; revision=79855
2007-06-16 15:24:58 +00:00

62 lines
1.3 KiB
C#

//
// LogicalMethodInfoTest.cs
//
// Author:
// Atsushi Enomoto <[email protected]>
//
// Copyright (C) 2007 Novell, Inc.
//
#if NET_2_0
using NUnit.Framework;
using System;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Web.Services;
using System.Web.Services.Configuration;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace MonoTests.System.Web.Services.Protocol
{
[TestFixture]
public class LogicalMethodInfoTest
{
[Test]
public void BeginEndMethodInfo ()
{
LogicalMethodInfo [] ll = LogicalMethodInfo.Create (
new MethodInfo [] {
typeof (FooService).GetMethod ("BeginEcho"),
typeof (FooService).GetMethod ("EndEcho")});
Assert.AreEqual (1, ll.Length, "#1");
LogicalMethodInfo l = ll [0];
Assert.IsNull (l.MethodInfo, "#2");
Assert.IsNotNull (l.BeginMethodInfo, "#3");
Assert.IsNotNull (l.EndMethodInfo, "#4");
}
class FooService : WebService
{
public string Echo (string arg)
{
return arg;
}
public IAsyncResult BeginEcho (string arg, AsyncCallback cb, object state)
{
return null;
}
public string EndEcho (IAsyncResult result)
{
return null;
}
}
}
}
#endif