2 // LogicalMethodInfoTest.cs
5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2007 Novell, Inc.
10 using NUnit.Framework;
13 using System.Globalization;
15 using System.Reflection;
16 using System.Web.Services;
17 using System.Web.Services.Configuration;
18 using System.Web.Services.Description;
19 using System.Web.Services.Protocols;
20 using System.Xml.Schema;
21 using System.Xml.Serialization;
23 namespace MonoTests.System.Web.Services.Protocol
26 public class LogicalMethodInfoTest
29 public void BeginEndMethodInfo ()
31 LogicalMethodInfo [] ll = LogicalMethodInfo.Create (
33 typeof (FooService).GetMethod ("BeginEcho"),
34 typeof (FooService).GetMethod ("EndEcho")});
35 Assert.AreEqual (1, ll.Length, "#1");
36 LogicalMethodInfo l = ll [0];
37 Assert.IsNull (l.MethodInfo, "#2");
38 Assert.IsNotNull (l.BeginMethodInfo, "#3");
39 Assert.IsNotNull (l.EndMethodInfo, "#4");
42 class FooService : WebService
44 public string Echo (string arg)
49 public IAsyncResult BeginEcho (string arg, AsyncCallback cb, object state)
54 public string EndEcho (IAsyncResult result)