public void NamedServiceBinding () { SoapServerType sst = new SoapServerType (typeof (EdaInterface), WebServiceProtocols.HttpSoap); new ServerType (typeof (EdaInterface)); SoapServerMethod m = sst.GetMethod ("urn:localBinding:local:LocalBindingMethod"); Assert.IsNotNull (m, "#1"); m = sst.GetMethod ("somethingFoo"); Assert.IsNull (m, "#2"); MethodInfo mi = typeof (EdaInterface).GetMethod ("BindingMethod"); Assert.IsNotNull ("#3-1"); m = sst.GetMethod (mi); // ... so, MethodInfo does not work as a key here. Assert.IsNull (m, "#3-2"); }
public void GetMethodNullKey () { SoapServerType sst = new SoapServerType (typeof (EdaInterface), WebServiceProtocols.HttpSoap); sst.GetMethod (null); }