2 // MonoTests.System.Web.Services.Description.BindingCollectionTest.cs
5 // Erik LeBel <eriklebel@yahoo.ca>
10 using NUnit.Framework;
13 using System.Web.Services.Description;
15 namespace MonoTests.System.Web.Services.Description
18 public class BindingCollectionTest
23 public void InitializeBindingCollection ()
25 // workaround for internal constructor
26 ServiceDescription desc = new ServiceDescription ();
31 public void TestDefaultProperties()
33 Assert.IsNull (bc["hello"]);
34 Assert.AreEqual (0, bc.Count);
38 public void TestAddBinding ()
40 const string bindingName = "testBinding";
42 Binding b = new Binding ();
47 Assert.AreEqual (1, bc.Count);
48 Assert.AreEqual (b, bc[bindingName]);