2 // ServiceDescriptionFormatExtensionCollectionTest.cs
5 // Atsushi Enomoto <atsushi@ximian.com>
7 // (C) 2006 Novell, Inc.
10 using NUnit.Framework;
13 using System.Web.Services.Description;
16 namespace MonoTests.System.Web.Services.Description
19 public class ServiceDescriptionFormatExtensionCollectionTest
22 [ExpectedException (typeof (ArgumentException))]
25 ServiceDescriptionFormatExtensionCollection c =
26 new ServiceDescriptionFormatExtensionCollection (new ServiceDescription ());
34 ServiceDescriptionFormatExtensionCollection c =
35 new ServiceDescriptionFormatExtensionCollection (new ServiceDescription ());
37 c.Add (new XmlDocument ().CreateElement ("foo"));
40 class MySoapBinding : SoapBinding
47 ServiceDescriptionFormatExtensionCollection c =
48 new ServiceDescriptionFormatExtensionCollection (new ServiceDescription ());
49 c.Add (new MySoapBinding ());
50 Assert.IsNotNull (c.Find (typeof (SoapBinding)));