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 Assertion
.AssertNull (bc
["hello"]);
34 Assertion
.AssertEquals (0, bc
.Count
);
38 public void TestAddBinding ()
40 const string bindingName
= "testBinding";
42 Binding b
= new Binding ();
47 Assertion
.AssertEquals (1, bc
.Count
);
48 Assertion
.AssertEquals (b
, bc
[bindingName
]);